/* Look and feel follow itsalie.xyz: system font, tight heavy headlines with the
   last line in grey, left-aligned, light, hairlines between sections. */

/* Inter is only used to draw the share card on a canvas, so every device draws
   the same card. The page itself uses the system font, like itsalie.xyz. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #68686d;
  --grey: #8a8a8e;
  --line: #e7e7e9;
  --underline: #b0b0b4;
  --paper: #f8f5ef;
  --field: #f0ece4;
  --focus: #356952;
  /* The one colour on the page: a heartbeat that is slightly out of place. */
  --signal: #ff5a1f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 7px;
}
p, h1, h2, h3 { margin: 0; }
p { font-size: 18px; line-height: 1.65; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 112px); margin-inline: auto; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--paper); padding: 12px; z-index: 5; }
.skip:focus { top: 15px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* The field only robots fill in: off screen, out of the tab order. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.header { height: 116px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 32px; font-weight: 750; letter-spacing: -1.7px; }
.header nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; }
.lang-toggle {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.lang-toggle:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Hero: the question */
.hero { padding-top: 83px; padding-bottom: 100px; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.015em; line-height: 1.65; color: var(--muted); }
.hero .eyebrow { margin-bottom: 32px; }
h1 { font-size: clamp(70px, 8.7vw, 120px); font-weight: 650; letter-spacing: -0.066em; line-height: 1.035; }
h1 .grey { color: var(--grey); }
/* The question mark's own dot is hidden and the orange one sits exactly there
   (positions are measured in static/qmark.js); until then it is a plain grey "?". */
/* No negative tracking on the "?" itself (it is the last letter anyway): with it, the span's
   box is narrower than the glyph and background-clip cuts off the right side of the hook.
   The padding gives the hook's overshoot room; the line ends here, so it moves nothing. */
.qmark { position: relative; letter-spacing: 0; padding-right: 0.06em; }
.qmark.ready {
  color: transparent;
  background: linear-gradient(to bottom, var(--grey) 0 var(--q-split), transparent var(--q-split));
  -webkit-background-clip: text;
  background-clip: text;
}
.qdot { display: none; }
.qmark.ready .qdot {
  display: block; position: absolute; border-radius: 50%; background: var(--signal);
  left: var(--q-dot-x); top: var(--q-dot-y); width: var(--q-dot-size); height: var(--q-dot-size);
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 46%, 100% { scale: 1; }
  10% { scale: 1.38; }
  22% { scale: 1; }
  32% { scale: 1.2; }
}
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 48px; }
.hero-bottom p { font-size: 22px; line-height: 1.5; letter-spacing: -0.025em; max-width: 30ch; }
.text-link {
  font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--underline); padding: 0 0 5px; cursor: pointer;
}
.text-link:hover { text-decoration: none; border-bottom-color: var(--ink); }

/* Buttons */
.pill {
  display: inline-block; font: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  border-radius: 100px; border: 0; background: var(--ink); color: #ffffff;
  padding: 14px 24px; cursor: pointer; transition: background 0.18s;
}
.pill:hover { background: #424244; text-decoration: none; }
.pill:disabled { background: var(--grey); cursor: default; }
.hero-bottom .pill { margin-top: 30px; }

/* Sections */
.section { border-top: 1px solid var(--line); padding-block: 100px; }
.split { display: grid; grid-template-columns: 1fr 3fr; gap: 36px; }
.split > .eyebrow { padding-top: 9px; }
h2 { font-size: clamp(30px, 3.1vw, 43px); font-weight: 550; letter-spacing: -0.045em; line-height: 1.22; }
.muted { color: var(--muted); }

/* Sending an answer: one copy button, one text box, then name and send. */
form { max-width: 760px; }
#send form { margin-top: 0; }

.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.form-row input[type="text"] { flex: 1 1 260px; max-width: 380px; }
label.field { display: block; font-size: 14px; font-weight: 500; margin: 0 0 10px; }
textarea, input[type="text"] {
  width: 100%; font: inherit; font-size: 18px; line-height: 1.65; color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-radius: 4px; padding: 16px 18px;
}
textarea { min-height: 300px; resize: vertical; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--ink); }
textarea::placeholder, input::placeholder { color: var(--muted); }
.counter { margin: 8px 0 20px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--ink); font-weight: 600; }
.fine-print { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.fine-print a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
form #send-button { margin-top: 28px; }
.terms a { color: var(--ink); border-bottom: 1px solid var(--underline); }
.terms a:hover { text-decoration: none; border-bottom-color: var(--ink); }
.status { margin-top: 20px; font-size: 18px; min-height: 1.65em; }

/* Your card */
.result-hint { margin-top: 16px; }
.card-row { display: grid; grid-template-columns: minmax(0, 432px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; }
#card { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 4px; }
.paragraphs { border: 0; margin: 0; padding: 0; min-width: 0; }
.paragraphs label {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; cursor: pointer;
}
.paragraphs label:first-of-type { border-top: 1px solid var(--line); }
.paragraphs input { width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--ink); }
.paragraphs span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }

/* The wall */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.answer { padding-block: 40px; border-top: 1px solid var(--line); }
.answer-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 680px; margin-bottom: 20px; }
/* The signature goes under the answer: «Pedro’s machine» and the share link. */
.answer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.answer-name { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; overflow-wrap: anywhere; }
.empty { color: var(--muted); }
.answer-status { margin: 0; flex-basis: 100%; order: 3; font-size: 14px; font-weight: 500; color: var(--muted); }
.answer-status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--signal); vertical-align: 1px;
}
#more { margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 34px; display: flex; align-items: center; gap: 35px; }
.footer .wordmark { font-size: 25px; }
.footer p { font-size: 13px; color: var(--muted); }
.footer p:last-child { margin-left: auto; }
.footer p a { color: var(--ink); }

/* Privacy pages */
.prose { padding-block: 40px 100px; max-width: 760px; }
.prose h1 { font-size: clamp(48px, 6.3vw, 84px); line-height: 1.06; letter-spacing: -0.06em; font-weight: 650; margin: 24px 0 40px; }
.prose h2 { font-size: 24px; letter-spacing: -0.03em; margin: 44px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose a { border-bottom: 1px solid var(--underline); }

@media (min-width: 1500px) {
  .hero { padding-top: 105px; padding-bottom: 120px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .header { height: 90px; }
  .header nav { gap: 22px; }
  .hero { padding-top: 65px; padding-bottom: 75px; }
  h1 { font-size: clamp(52px, 10vw, 90px); }
  .hero-bottom p { font-size: 20px; }
  .section { padding-block: 70px; }
  .split { grid-template-columns: 1fr; gap: 25px; }
  .card-row { grid-template-columns: 1fr; }
  #card { max-width: 432px; }
  .footer { gap: 24px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 84px; }
  .wordmark { font-size: 26px; }
  .header nav { gap: 18px; font-size: 13px; }
  .header nav a:first-child { display: none; }
  .hero { padding-top: 52px; padding-bottom: 62px; }
  .hero .eyebrow { margin-bottom: 27px; }
  h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .hero-bottom { display: block; margin-top: 31px; }
  .hero-bottom p { font-size: 18px; }
  .hero-bottom .text-link { display: inline-block; margin-top: 29px; }
  .section { padding-block: 58px; }
  h2 { font-size: 29px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .teaser-text { font-size: 24px; }
  .footer { flex-wrap: wrap; gap: 12px 25px; padding-block: 28px; }
  .footer p:last-child { flex-basis: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qmark.ready .qdot { animation: none; }
  * { transition: none !important; }
}

/* A quiet editorial rhythm: the question, the imagined days, then the invitation. */
:root { --paper: #f8f5ef; --line: #ddd8cf; --muted: #68645e; --grey: #777269; --signal: #c75b30; }
.hero { padding-top: 52px; padding-bottom: 80px; }
.hero .eyebrow { margin-bottom: 25px; }
h1 { font-size: clamp(48px, 7.8vw, 106px); }
.hero-bottom { align-items: center; margin-top: 34px; }
.hero-bottom p { max-width: 43ch; font-size: 22px; line-height: 1.65; }
.dayline { position: relative; display: flex; align-items: end; justify-content: space-between; margin-top: 60px; padding-top: 36px; gap: 16px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.sun-path { position: absolute; inset: 0 0 24px; border-top: 1px solid #c9bba5; border-radius: 50% 50% 0 0; }
.sun-path i { position: absolute; width: 15px; height: 15px; background: var(--signal); border-radius: 50%; top: -8px; left: 62%; box-shadow: 0 0 0 7px var(--paper); }
.section { padding-block: 76px; }
.section-heading { align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow, #send .eyebrow { margin-bottom: 16px; }
.wall-intro { color: var(--muted); max-width: 34ch; font-size: 17px; }
#answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; align-items: start; }
.answer { padding-block: 30px; min-width: 0; }
.answer-excerpt { margin: 0 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.55; letter-spacing: -.025em; overflow-wrap: anywhere; }
.answer-excerpt::before { content: "“"; color: var(--signal); }
.answer-excerpt::after { content: "”"; }
.answer-details summary { cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; margin-bottom: 24px; }
.answer-details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.answer:has(.answer-details[open]) { grid-column: 1 / -1; }
.answer:has(.answer-details[open]) { max-width: 760px; }
.answer-text { max-width: 58ch; margin: 30px 0 36px; }
.answer-text p { font-size: 19px; line-height: 1.95; margin-bottom: 1.4em; }
.answer-text p:last-child { margin-bottom: 0; }
.answer-name { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.answer-meta { align-items: center; gap: 12px 24px; }
.answer-meta .text-link { font-size: 13px; }
.send-intro { margin-top: 18px; color: var(--muted); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 40px 0 48px; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.steps strong { display: block; font-size: 17px; margin-bottom: 10px; font-weight: 550; }
.steps span { display: block; font-size: 16px; color: var(--muted); line-height: 1.65; }
.steps .text-link { margin-top: 16px; }
textarea { min-height: 240px; line-height: 1.85; }
@media (max-width: 800px) {
  #answers { grid-template-columns: 1fr; gap: 0; }
  .answer-excerpt { max-width: 30ch; font-size: 29px; }
  .wall-intro { margin-top: 24px; }
  .section-heading { display: block; }
  .steps { gap: 22px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 36px; padding-bottom: 52px; }
  h1 { font-size: clamp(36px, 10.3vw, 54px); }
  .hero-bottom p { font-size: 18px; }
  .dayline { margin-top: 42px; }
  .dayline > span:nth-last-child(2) { max-width: 17ch; text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .answer-excerpt { font-size: 27px; }
  .answer-text p { font-size: 18px; line-height: 1.9; }
  .section { padding-block: 52px; }
}
