  /* Fonts are self-hosted: the site loads nothing from third parties (see fonts/README.txt) */
  @font-face { font-family: "Special Elite"; src: url(fonts/special-elite-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Courier Prime"; src: url(fonts/courier-prime-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Courier Prime"; src: url(fonts/courier-prime-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
  @font-face { font-family: Caveat; src: url(fonts/caveat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

  /* Brand palette from the app (src/style.css): ink, warm greys, teal */
  :root { --desk: #2c2c2a; --grid: #3a3a38; --on-desk: #f1efe8; --on-desk-muted: #b4b2a9; --folder: #d3d1c7; --paper: #faf9f5;
    --ink: #2c2c2a; --muted: #5f5e5a; --rule: #9c9a92; --teal: #0f6e56; --teal-light: #5dcaa5; --teal-soft: #e1f5ee;
    --type: "Special Elite", "Courier New", monospace; --mono: "Courier Prime", "Courier New", monospace; --hand: Caveat, "Segoe Print", cursive; }
  * { box-sizing: border-box; margin: 0; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { background-color: var(--desk); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px; color: var(--on-desk); font-family: var(--mono); font-size: 16px; overflow-x: clip; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  .type { font-family: var(--type); font-weight: 400; }
  .hand { font-family: var(--hand); color: var(--teal); }
  .skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px; z-index: 9; }
  :focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }

  /* paper and folders */
  .paper { position: relative; background: var(--paper); color: var(--ink); padding: clamp(24px, 5vw, 48px); box-shadow: 0 2px 0 #e6e4dd, 0 3px 0 #d3d1c7, 0 16px 34px -14px rgba(0,0,0,.6); }
  .tilt-l { transform: rotate(-.5deg); } .tilt-r { transform: rotate(.4deg); }
  .folder { position: relative; background: var(--folder); color: var(--ink); border-radius: 0 10px 10px 10px; padding: clamp(12px, 2.4vw, 26px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); margin-top: 40px; }
  .folder > .tab { position: absolute; top: -34px; left: 0; background: var(--folder); padding: 8px 22px 6px; border-radius: 10px 10px 0 0; font-family: var(--type); letter-spacing: .1em; font-size: 15px; }
  .stamp { display: inline-block; font-family: var(--type); color: var(--teal); border: 3px solid var(--teal); padding: 8px 18px; text-decoration: none; letter-spacing: .08em; transform: rotate(-3deg); background: transparent; }
  a.stamp:hover { background: var(--teal); color: var(--paper); }
  nav .stamp { color: var(--teal-light); border-color: var(--teal-light); }
  nav a.stamp:hover { background: var(--teal-light); color: var(--desk); }
  .stamp.big { font-size: 22px; padding: 12px 26px; border-width: 4px; }

  /* nav */
  nav { display: flex; align-items: center; gap: 28px; padding: 22px 0; }
  nav .logo { font-family: var(--type); font-size: 24px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
  nav .logo img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px #5f5e5a; }
  nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
  nav .links a { text-decoration: none; border-bottom: 1px dashed transparent; }
  nav .links a:hover { border-color: currentColor; }

  /* hero */
  .hero .fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
  .hero .fields div { border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
  .hero .fields i { font-style: normal; font-family: var(--hand); color: var(--teal); font-size: 22px; text-transform: none; letter-spacing: 0; margin-left: 6px; }
  .hero h1 { font-family: var(--type); font-weight: 400; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; margin: 40px 0 18px; max-width: 13em; }
  .hero .lead { font-size: 18px; line-height: 1.6; max-width: 34em; }
  .hero .ctas { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
  .hero .ctas a:not(.stamp) { font-size: 16px; }
  .hero .conf { position: absolute; right: 6%; top: 112px; font-family: var(--type); color: var(--teal); border: 4px double var(--teal); padding: 10px 16px; transform: rotate(-12deg);
    font-size: 20px; text-align: center; line-height: 1.2; opacity: .85; mix-blend-mode: multiply; letter-spacing: .06em; }
  .clip { position: absolute; top: -18px; right: 70px; width: 22px; height: 64px; border: 3px solid #8b8f96; border-radius: 12px; z-index: 3; }
  .drawing { position: relative; margin-top: 34px; color: #3b3a37; }
  .drawing svg { width: 100%; height: auto; display: block; }
  .drawing .n1 { position: absolute; left: -1%; bottom: 22%; width: 150px; font-size: 24px; line-height: 1.05; transform: rotate(-5deg); }
  .drawing .n2 { position: absolute; right: 1%; top: -4%; font-size: 24px; transform: rotate(3deg); }
  .sticky { position: absolute; right: -14px; bottom: -40px; width: 240px; background: var(--teal-soft); padding: 18px 18px 22px; transform: rotate(4deg); box-shadow: 0 12px 20px -10px rgba(0,0,0,.4);
    font-family: var(--hand); font-size: 23px; line-height: 1.25; color: #04342c; z-index: 2; }

  /* sections */
  section { padding-top: 110px; scroll-margin-top: 20px; }
  h2 { font-family: var(--type); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
  .intro { font-size: 17px; line-height: 1.6; max-width: 40em; margin-bottom: 30px; color: var(--on-desk-muted); }
  .paper .intro { color: var(--muted); }
  .label { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-light); margin-bottom: 10px; }
  .paper .label, .folder .label { color: var(--teal); }

  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card { background: #fff; color: var(--ink); padding: 20px 22px 26px; min-height: 200px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
    background-image: linear-gradient(transparent 46px, #5dcaa5 46px, #5dcaa5 48px, transparent 48px), repeating-linear-gradient(transparent 0 27px, #e6e4dd 27px 28px); background-position: 0 0, 0 48px; }
  .card:nth-child(odd) { transform: rotate(-1deg); } .card:nth-child(even) { transform: rotate(1.2deg); }
  .card h3 { font-family: var(--type); font-weight: 400; font-size: 18px; height: 38px; }
  .card p { line-height: 28px; font-size: 15px; margin-top: 10px; }

  .photos { position: relative; display: grid; grid-template-columns: 1fr 260px; gap: 0; align-items: end; padding: 10px 0 30px; }
  .photo { position: relative; margin: 0; background: #fff; padding: 12px 12px 10px; box-shadow: 0 22px 40px -18px rgba(0,0,0,.8); color: var(--ink); }
  .photo img { display: block; width: 100%; height: auto; }
  .photo figcaption { font-size: 22px; padding-top: 6px; text-align: center; }
  .photo.big { transform: rotate(-1.2deg); }
  .photo.small { transform: rotate(3deg); margin-left: -60px; margin-bottom: -20px; z-index: 2; }
  .tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(225,245,238,.75); transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
  .procedure ol { list-style: none; padding: 0; counter-reset: p; }
  .procedure li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px dashed var(--rule); font-size: 17px; line-height: 1.6; }
  .procedure li::before { content: counter(p) "."; font-family: var(--type); font-size: 28px; color: var(--teal); line-height: 1.1; }
  .procedure b { font-family: var(--type); font-weight: 400; font-size: 20px; display: block; }
  kbd { font-family: var(--mono); font-weight: 700; font-size: 14px; border: 1.5px solid var(--ink); border-bottom-width: 3px; border-radius: 5px; padding: 0 6px; background: #fff; white-space: nowrap; }

  .memo .head { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 15px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
  .memo .head span:nth-child(odd) { font-family: var(--type); }
  .memo p { font-size: 17px; line-height: 1.65; max-width: 44em; margin-bottom: 14px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 8px; }
  .steps div { border: 1.5px dashed var(--rule); padding: 18px; font-size: 15px; line-height: 1.55; }
  .steps b { display: block; font-family: var(--type); font-weight: 400; font-size: 18px; margin-bottom: 6px; }
  .proof { position: absolute; right: 5%; top: 34px; font-family: var(--type); color: var(--teal); border: 3px solid var(--teal); padding: 10px 14px; transform: rotate(4deg);
    background: var(--paper); text-align: center; line-height: 1.25; font-size: 15px; max-width: 250px; }
  .proof big { display: block; font-size: 30px; }

  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .ticks { list-style: none; padding: 0; }
  .ticks li { padding: 9px 0 9px 34px; position: relative; font-size: 16px; line-height: 1.5; border-bottom: 1px dotted var(--rule); }
  .ticks li::before { content: "✓"; position: absolute; left: 4px; top: 2px; font-family: var(--hand); color: var(--teal); font-size: 28px; }
  .ticks.no li::before { content: "✗"; color: var(--ink); }
  .ticks + p, .note { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 18px; }

  .checks { columns: 3; font-size: 18px; }
  .checks div { padding: 7px 0; break-inside: avoid; }
  .checks span { font-family: var(--hand); color: var(--teal); font-size: 26px; margin-right: 8px; }

  .plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
  .plat { position: relative; background: var(--folder); color: var(--ink); padding: 22px 18px 20px; border-radius: 0 8px 8px 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 24px -16px rgba(0,0,0,.8); }
  .plat::before { content: ""; position: absolute; top: -16px; left: 0; width: 55%; height: 17px; background: var(--folder); border-radius: 8px 8px 0 0; }
  .plat b { font-family: var(--type); font-weight: 400; font-size: 21px; }
  .plat small { font-size: 14px; color: var(--muted); flex: 1; line-height: 1.45; }
  .plat a { margin-top: 12px; text-align: center; font-family: var(--type); background: var(--ink); color: var(--paper); text-decoration: none; padding: 10px; letter-spacing: .06em; }
  .plat a:hover { background: var(--teal); }
  .plat .soon { margin-top: 12px; text-align: center; font-family: var(--type); border: 1.5px dashed var(--muted); color: var(--muted); padding: 9px; letter-spacing: .06em; }

  .faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
  .faq details:last-child { border-bottom: 1px solid var(--rule); }
  .faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
  .faq p { margin-top: 10px; line-height: 1.65; color: var(--muted); max-width: 46em; }

  footer { padding: 90px 0 50px; font-size: 14px; line-height: 1.7; }
  footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #5f5e5a; padding-top: 20px; }
  footer p { max-width: 46em; color: var(--on-desk-muted); }
  footer a { color: var(--on-desk); }

  @media (max-width: 900px) {
    nav .links { display: none; }
    nav .stamp { margin-left: auto; }
    .hero .fields, .steps, .two, .cards { grid-template-columns: 1fr; }
    .hero .conf { position: static; display: inline-block; margin-top: 18px; }
    .drawing .n1, .drawing .n2 { display: none; }
    .sticky, .proof { position: static; display: block; transform: none; width: auto; max-width: none; margin-top: 18px; }
    .plats { grid-template-columns: 1fr 1fr; }
    .photos { grid-template-columns: 1fr 45%; }
    .photo.small { margin-left: -30%; }
    .checks { columns: 1; }
    .card { min-height: 0; }
  }
  .refs { margin-top: 30px; }
  .refs ol { padding-left: 22px; font-size: 14px; line-height: 1.6; }
  .refs li { margin-bottom: 10px; padding-left: 4px; }
