/* Inkferry Plans — site styles. No external requests. */
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0d2c58;
  --navy-deep: #091e3e;
  --navy-soft: #1a3f73;
  --cream: #fbf7ef;
  --cream-dark: #f3ede1;
  --paper: #fffcf6;
  --ink: #1c2430;
  --muted: #3f4b59;
  --gold: #7c5a28;
  --gold-line: #d4c19a;
  --line: rgba(13, 44, 88, 0.14);
  --shadow: 0 10px 30px rgba(13, 44, 88, 0.07);
  --radius: 14px;
  --header-h: 4.25rem;
  --measure: 42rem;
  --site: 70rem;
  --font-serif: "Lora", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.7em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-soft);
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--navy); text-decoration-color: var(--gold); }
a:focus-visible,
button:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--site), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.logo img {
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
}
.logo span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.35rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0;
}
.nav a:hover { color: var(--navy-soft); text-decoration: underline; text-decoration-color: var(--gold); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.hero h1 { margin-bottom: 0.7em; }
.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  align-items: center;
}
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mark img {
  width: min(100%, 17rem);
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover { background: var(--navy-soft); color: var(--cream); }
.btn-ghost {
  color: var(--navy);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--paper); }
.btn-disabled,
a.btn-disabled {
  background: var(--cream-dark);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin-bottom: 0.45em; }
.section-head p { color: var(--ink); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.cards-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 1.35rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card .thumb { background: var(--cream-dark); }
.card .thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}
.card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.card-body h3 { margin: 0; font-size: 1.3rem; }
.price {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: 0;
}
.card-body p { font-size: 1.02rem; color: var(--ink); margin: 0; }
.card-body .btn { margin-top: auto; }

.bundles {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.bundle {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.bundle h3 {
  color: var(--cream);
  margin: 0 0 0.3em;
  font-size: 1.35rem;
}
.bundle p { margin: 0; color: #f3ede1; font-size: 1.05rem; }
.bundle .price { color: var(--cream); font-size: 1.35rem; }
.bundle-note { font-size: 0.95rem; color: #e8d9b8; }
.bundle-alt {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bundle-alt h3 { color: var(--navy); }
.bundle-alt p { color: var(--ink); }
.bundle-alt .price { color: var(--navy); }
.bundle-alt .bundle-note { color: var(--muted); }

/* Blog teaser */
.post-teaser {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.post-teaser:hover { border-color: rgba(13, 44, 88, 0.28); }
.post-date {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 6.5rem;
  padding-top: 0.35rem;
}
.post-teaser h3 {
  margin: 0 0 0.4em;
  font-size: 1.45rem;
}
.post-teaser p { margin: 0; color: var(--ink); }
.post-meta {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.read-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.post-teaser:hover .read-link { text-decoration: underline; text-decoration-color: var(--gold); }

/* About */
.about-block {
  max-width: 42rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  font-size: 0.98rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.55em;
}
.site-footer p { margin: 0 0 0.6em; }
.legal { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }

/* Article */
.article-wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.25rem) 0 4rem;
}
.crumb {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
}
.crumb a { color: var(--navy); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.article-head { margin-bottom: 2rem; }
.article-head h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.65rem);
  margin: 0.2em 0 0.65em;
}
.byline {
  color: var(--muted);
  font-size: 1.02rem;
}
.byline time { color: var(--muted); }
.article-body h2 {
  margin-top: 2.1em;
  margin-bottom: 0.6em;
}
.article-body p { margin-bottom: 1.15em; }
.article-body ul, .article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.article-body li { margin-bottom: 0.4em; }
.article-body li::marker { color: var(--navy); }

.example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.5rem;
}
.example p { margin-bottom: 0.7em; }
.example p:last-child { margin-bottom: 0; }
.caption {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.35rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0 0 0.4rem;
  background: var(--paper);
}
th, td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
}
tbody tr:nth-child(even) { background: var(--cream-dark); }
.table-scroll {
  overflow-x: auto;
  margin: 0 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-scroll table { margin: 0; }
.table-scroll th:first-child { border-top-left-radius: 7px; }
.table-scroll th:last-child { border-top-right-radius: 7px; }

.disclaimer {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin: 2.25rem 0 1.75rem;
  font-size: 1.02rem;
}
.disclaimer h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
.cta-box {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 7.5rem; }
  .cards,
  .cards-featured { grid-template-columns: 1fr; }
  .bundle { grid-template-columns: 1fr; }
  .post-teaser { grid-template-columns: 1fr; gap: 0.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .wrap, .article-wrap { width: min(var(--site), calc(100% - 1.6rem)); }
  .logo span { font-size: 1.05rem; }
  .nav { gap: 0.1rem 0.9rem; }
  .nav a { font-size: 0.95rem; }
  .hero { padding-top: 1.75rem; }
  .lead { font-size: 1.08rem; }
  th, td { padding: 0.55rem 0.55rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .hero-actions, .btn, .site-footer .footer-grid { }
  .site-header { position: static; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-wrap { width: 100%; padding: 0; }
  a { color: inherit; text-decoration: underline; }
  .disclaimer, .example { break-inside: avoid; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
