/* Continuity Notes — landing. Art direction «Hoja de raccord»: paper, instant photos, spike tape, red circles. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f1f0f4;
  --card: #ffffff;
  --sunk: #e6e4ec;
  --ink: #1d1b26;
  --soft: #4a4757;
  --faint: #696677;
  --line: #d9d6e0;
  --crimson: #b0213f;
  --crimson-dark: #86152d;
  --crimson-tint: #f7dde2;
  --tape: #e3b42b;
  --tape-text: #6f5200;
  --tape-tint: #faefc8;
  --teal: #16726f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson-dark); text-underline-offset: 3px; }
a:hover { color: var(--crimson); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: manual; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.kicker { font-family: var(--mono); font-weight: 700; color: var(--crimson); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.86rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.spike { width: 16px; height: 16px; flex: none; background: linear-gradient(var(--tape), var(--tape)) top / 100% 5px no-repeat, linear-gradient(var(--tape), var(--tape)) center / 5px 100% no-repeat; }

/* Header */
.top { background: var(--paper); border-bottom: 1.5px solid #a9a5b5; position: relative; }
.top::after { content: ""; position: absolute; left: max(20px, calc(50% - 550px)); bottom: -5px; width: 46px; height: 9px; background: var(--tape); transform: rotate(-3deg); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 8px 0; display: inline-block; min-height: 44px; line-height: 28px; }
.nav a:hover, .nav a.here { color: var(--ink); box-shadow: inset 0 -3px 0 var(--tape); }

/* Hero */
.hero { padding: 64px 0 40px; background-image: repeating-linear-gradient(to bottom, transparent 0 47px, var(--line) 47px 48px); background-position: 0 340px; background-repeat: no-repeat; background-size: 100% calc(100% - 340px); }
.hero h1 { max-width: 16ch; }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 60ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin: 0; font-family: var(--mono); color: var(--faint); font-size: 0.95rem; }

.board { display: flex; justify-content: center; align-items: flex-start; gap: 34px; padding: 56px 20px 10px; max-width: 1140px; margin: 0 auto; }
.board .photo { width: 300px; flex: none; }

/* Instant photo */
.photo { position: relative; margin: 0; background: #fff; padding: 12px 12px 44px; border-radius: 3px; box-shadow: 0 14px 30px rgba(29, 27, 38, 0.18), 0 0 0 1px rgba(29, 27, 38, 0.06); }
.photo img { width: 100%; border: 1px solid var(--line); background: var(--sunk); }
.photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 11px; font-family: var(--mono); font-weight: 700; font-size: 0.95rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo .tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: var(--tape); opacity: 0.93; transform: rotate(-3deg); }
.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(2deg); margin-top: 26px; }
.tilt-l2 { transform: rotate(-1deg); margin-top: 8px; }

/* Play button */
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; min-height: 58px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); }
.play:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.play-mark { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--crimson); background: radial-gradient(circle, var(--tape) 0 4px, transparent 5px); flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; opacity: 0.85; }
.play-big { font-weight: 700; font-size: 1.15rem; }
.play-soon { background: var(--card); color: var(--ink); border: 2px dashed var(--crimson); cursor: default; }
.play-soon:hover { background: var(--card); color: var(--ink); border-color: var(--crimson); }

/* Day sheet */
.day { padding: 80px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet { list-style: none; margin: 30px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.sheet li { display: grid; grid-template-columns: 56px 90px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sheet-num { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--crimson); color: var(--crimson); font-family: var(--mono); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.sheet-time { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; padding-top: 8px; color: var(--soft); }
.sheet-body h3 { margin: 6px 0 6px; }
.sheet-body p { margin: 0; color: var(--soft); }

/* Stories */
.stories { padding: 40px 0; }
.story { padding: 56px 0; }
.story-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.story-flip .story-text { order: 2; }
.story-shot { display: flex; justify-content: center; }
.story-shot .photo { width: min(360px, 100%); }
.label { font-family: var(--mono); font-weight: 700; color: var(--tape-text); background: var(--tape-tint); display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 0.9rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--crimson); }

/* PDF */
.pdf { padding: 80px 0; background: var(--ink); color: #f1f0f4; }
.pdf h2 { color: #fff; }
.pdf .kicker { color: var(--tape); }
.pdf-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.pdf-page { background: #fff; color: var(--ink); padding: 26px 24px 30px; border-radius: 3px; transform: rotate(-1.5deg); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); font-size: 0.95rem; }
.pdf-h { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; border-bottom: 3px solid var(--crimson); padding-bottom: 6px; }
.pdf-row { font-family: var(--mono); font-size: 0.95rem; }
.pdf-page table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pdf-page th { text-align: left; font-size: 0.75rem; text-transform: uppercase; color: var(--faint); border-bottom: 1.5px solid var(--ink); padding: 4px; }
.pdf-page td { border-bottom: 1px solid var(--sunk); padding: 5px 4px; font-family: var(--mono); }
.pdf-page tr.good td { background: var(--crimson-tint); }
.circle { display: inline-block; min-width: 24px; border: 2px solid var(--crimson); border-radius: 50%; text-align: center; color: var(--crimson); font-weight: 700; }
.flag { font-family: var(--sans); font-size: 0.72rem; background: var(--crimson); color: #fff; padding: 1px 5px; border-radius: 3px; }

/* Gallery */
.gallery { padding: 80px 0 60px; }
.strip { display: flex; gap: 30px; overflow-x: auto; padding: 30px max(20px, calc(50% - 550px)) 30px; scroll-snap-type: x mandatory; }
.strip .photo { width: 240px; flex: none; scroll-snap-align: center; }
.strip .tilt-r { margin-top: 18px; }

/* More */
.more { padding: 60px 0 80px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; border-top: 5px solid var(--tape); }
.card dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.card dd { margin: 0; color: var(--soft); }
.limits { margin-top: 40px; padding: 24px; border: 2px dashed #a9a5b5; border-radius: 14px; }
.limits ul { margin: 0; padding-left: 20px; color: var(--soft); }

/* Privacy band */
.privacy-band { background: var(--crimson); color: #fff; padding: 56px 0; position: relative; }
.privacy-band h2 { color: #fff; }
.privacy-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.privacy-inner > div { max-width: 640px; }
.privacy-band p { margin: 0; }
.btn-line { display: inline-block; padding: 12px 20px; min-height: 48px; border: 2px solid currentColor; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.privacy-band .btn-line { color: #fff; }
.privacy-band .btn-line:hover { background: #fff; color: var(--crimson); }

/* Download */
.download { padding: 80px 0; text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download p { max-width: 60ch; color: var(--soft); }

/* Footer */
.foot { background: var(--card); border-top: 1px solid var(--line); padding: 32px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0; }
.foot-small { margin: 0; color: var(--faint); font-size: 0.92rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.foot-links a { display: inline-block; min-height: 44px; line-height: 44px; overflow-wrap: anywhere; }

/* Legal / help pages */
.page { padding: 56px 0 80px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal p, .legal li { overflow-wrap: anywhere; }
.updated { color: var(--faint); font-family: var(--mono); font-size: 0.95rem; margin-top: 2em; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 48px; }
.faq details p { color: var(--soft); }
.notfound { text-align: left; }

@media (max-width: 900px) {
  .story-inner, .pdf-inner { grid-template-columns: 1fr; gap: 34px; }
  .story-flip .story-text { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .photo { width: 230px; }
  .board { gap: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1, h2, h3, .card dt { hyphens: auto; }
  .hero { padding-top: 40px; }
  .board { flex-direction: column; align-items: center; gap: 34px; padding-top: 44px; }
  .board .photo { width: min(300px, 82vw); margin-top: 0; }
  .board .photo:nth-child(n + 2) { display: none; }
  .sheet li { grid-template-columns: 48px 1fr; gap: 10px 14px; }
  .sheet-time { grid-column: 2; padding-top: 0; }
  .sheet-body { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .nav { gap: 0 14px; }
  .pdf-page { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
