/* Clash Grotesk, Indian Type Foundry, self-hosted under the ITF Free Font License
   (fonts/ClashGrotesk-FFL.txt), the same files as fanpagemethod.com. The licence
   forbids subsetting or converting them, so they ship exactly as downloaded. */
@font-face {
  font-family: "Clash Grotesk";
  src: url("/fonts/ClashGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("/fonts/ClashGrotesk-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAFAF7;
  --ink: #0E1113;
  --graphite: #4B5157;
  --rule: #DADDD9;
  --grid: #B4BAB4;
  --red: #E2361F;      /* lines only */
  --red-text: #9E2414; /* red that passes as text */
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); border-inline: 1px solid var(--rule); }
/* Inner rules reach the frame: pull a block out by the gutter, then pad it back in. */
.bleed { margin-inline: calc(var(--gutter) * -1); }

/* The page sits between two grid lines (.wrap's frame). Sections carry a full-width
   rule that crosses the frame, and every inner rule runs out to meet it. */
.band { border-top: 1px solid var(--rule); }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .and { font-weight: 400; color: var(--graphite); }
.nav { display: flex; gap: 28px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--graphite); padding: 10px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
@media (max-width: 640px) { .nav .wide { display: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 128px); }
h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.lead { margin: 28px 0 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--graphite); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 17px;
  border-radius: 3px;
}
.btn:hover { background: #23282C; }
.btn svg, .more svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.btn:hover svg, .more:hover svg { transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--red); }
.more:hover { color: var(--red-text); }

.drawing { width: 100%; max-width: 500px; justify-self: end; color: var(--ink); }
.drawing .gl { stroke: #9AA19A; stroke-width: 1; stroke-dasharray: 16 5 2 5; fill: none; }
.drawing .bub { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.drawing .lab { font: 600 15px/1 "Clash Grotesk", sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.drawing .pg { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.4; }
.drawing .rule { stroke: var(--rule); stroke-width: 1; fill: none; }
.drawing .ink { fill: var(--ink); }
.drawing .txt { stroke: var(--ink); stroke-width: 9; fill: none; }
.drawing .ph { stroke: var(--grid); stroke-width: 3; fill: none; }
.drawing .img { fill: none; stroke: var(--grid); stroke-width: 1; }
.drawing .dim { stroke: var(--graphite); stroke-width: 1; fill: none; }
.drawing .dimt { font: 400 12.5px/1 "Clash Grotesk", sans-serif; fill: var(--graphite); text-anchor: middle; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.drawing .so { stroke: var(--red); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.drawing .sop { fill: var(--paper); stroke: var(--red); stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .drawing .so { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.2s cubic-bezier(.65,0,.35,1) .25s forwards; }
  .drawing .sop { opacity: 0; animation: show .3s ease 1.25s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .drawing { justify-self: start; max-width: 420px; }
}

/* ---------- Section heads ---------- */
.head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.bubble {
  width: 40px; height: 40px; border-radius: 50%; border: 1.4px solid var(--ink);
  display: grid; place-items: center; font-weight: 600; font-size: 17px; line-height: 1; margin-top: 4px;
}
h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.head p { grid-column: 2; margin: 16px 0 0; color: var(--graphite); max-width: 36em; font-size: 19px; }

/* ---------- Prices ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; border-top: 1px solid var(--rule); }
.plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(40px, 5vw, 56px); }
.plan + .plan { border-left: 1px solid var(--rule); }
h3 { margin: 0; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.amount { margin: 14px 0 0; display: flex; align-items: baseline; gap: 12px; }
.figure { font-size: clamp(64px, 8vw, 104px); line-height: 0.9; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.per { font-size: 22px; color: var(--graphite); }
.list { list-style: none; margin: 32px calc(var(--gutter) * -1) 0; padding: 0; border-top: 1px solid var(--rule); align-self: start; }
.list li { padding: 15px var(--gutter); border-bottom: 1px solid var(--rule); font-size: 18px; }
.plan .btn { margin-top: 32px; justify-self: start; }
.print { border-top: 1px solid var(--rule); padding: 28px var(--gutter) clamp(48px, 6vw, 72px); color: var(--graphite); font-size: 17px; }
.print p { margin: 0 0 10px; max-width: 46em; }
.print strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; grid-template-rows: none; }
  .plan { grid-row: auto; grid-template-rows: none; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Job boards ---------- */
.boards { list-style: none; margin-block: 0; padding: 0; border-top: 1px solid var(--rule); }
.board { border-bottom: 1px solid var(--rule); }
.board a {
  display: grid; grid-template-columns: 48px minmax(180px, 3fr) minmax(0, 6fr) auto; gap: 24px; align-items: center;
  padding: 26px var(--gutter); text-decoration: none;
}
.board img { width: 48px; height: 48px; border-radius: 6px; display: block; }
.board .name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.board .domain { display: block; font-size: 15px; color: var(--graphite); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.board .desc { color: var(--graphite); font-size: 17px; }
.board .go { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.board .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.board a:hover .name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.board a:hover .go svg { transform: translateX(3px); }
.note { margin: 0; padding: 22px 0 clamp(56px, 7vw, 88px); color: var(--graphite); font-size: 17px; }
@media (max-width: 760px) {
  .board a { grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: start; padding: 22px var(--gutter); }
  .board img { width: 44px; height: 44px; grid-row: span 3; }
  .board .desc, .board .go { grid-column: 2; }
  .board .go { margin-top: 6px; }
}

/* ---------- Contact ---------- */
.contact > .wrap { padding-bottom: clamp(72px, 9vw, 120px); }
.contact .head { padding-bottom: 0; }
.email {
  display: inline-block; grid-column: 2; justify-self: start; margin-top: 36px;
  font-size: clamp(28px, 4.4vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 6px; overflow-wrap: anywhere;
}
.email:hover { color: var(--red-text); }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px 36px; font-size: 15px; color: var(--graphite); }
.foot .brand { font-size: 16px; color: var(--ink); }
.foot .brand svg { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal page ---------- */
.legal { grid-column: 2; margin-top: 20px; color: var(--graphite); font-size: 18px; }
.legal p { margin: 0 0 6px; }
.legal a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }

/* ---------- Connect page ----------
   Padding only, never margins, at the edges of a section: a margin on the
   last child escapes the .wrap and leaves a gap in the frame lines. */
.intro { padding-block: clamp(48px, 6vw, 72px); }
.intro h1 { margin: 0; }
.intro p { margin: 16px 0 0; max-width: 40em; color: var(--graphite); font-size: 19px; }
.intro h1 + p { margin-top: 16px; }
.intro p:first-child { margin-top: 0; }
.intro a, .step a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }
h1.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; max-width: none; }
.steps { list-style: none; margin-block: 0; padding: 0; }
.step + .step { border-top: 1px solid var(--rule); }
.step-head { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; padding: clamp(32px, 4vw, 44px) var(--gutter); }
.step h2 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }
.step p { margin: 10px 0 0; max-width: 40em; color: var(--graphite); }
.step strong { color: var(--ink); font-weight: 600; }
.step .bubble { margin-top: -4px; }
/* The record runs frame to frame; its first column lines up with the step text. */
.records { border-collapse: collapse; width: 100%; font-size: 18px; }
.records th, .records td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--rule); }
.records th:first-child, .records td:first-child { padding-left: calc(var(--gutter) + 60px); }
.records th { font-weight: 400; color: var(--graphite); font-size: 15px; }
.records td { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .records th, .records td { padding: 12px 8px; font-size: 16px; }
  .records th:first-child, .records td:first-child { padding-left: var(--gutter); }
}
