@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3efdf;
  --ink: #161814;
  --blue: #2855d9;
  --tomato: #f04a31;
  --lime: #c7ee55;
  --yellow: #f7ca45;
  --line: rgba(22, 24, 20, .22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: white; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 82px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header p { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; letter-spacing: -.03em; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--paper); background: var(--tomato); font-family: var(--serif); font-size: 1.35rem; font-style: italic; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6.5rem); align-self: center; }
.eyebrow { margin: 0 0 1.35rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { max-width: 850px; margin: 0; font-size: clamp(4rem, 8vw, 8.8rem); line-height: .84; letter-spacing: -.055em; }
h1 em { color: var(--blue); font-weight: 400; }
.hero-lede { max-width: 570px; margin: 2.75rem 0 0 13%; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; }
.hero-object { position: relative; overflow: hidden; min-height: 530px; background: var(--blue); border-left: 1px solid var(--ink); }
.hero-object > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stamp { position: absolute; z-index: 3; right: 10%; top: 9%; display: grid; place-items: center; width: 112px; height: 112px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: rotate(9deg); }
.gift-label { position: absolute; z-index: 4; left: 13%; bottom: 12%; padding: 1.4rem 1.55rem; border: 1px solid var(--ink); background: white; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.05; transform: rotate(-4deg); box-shadow: 8px 8px 0 var(--ink); }

.finder { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem); background: var(--lime); border-bottom: 1px solid var(--ink); }
.finder-heading { display: flex; align-items: flex-start; margin-bottom: 3rem; }
h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.7rem); line-height: .95; letter-spacing: -.045em; }
.finder .eyebrow { margin-bottom: .7rem; }
form { border-top: 1px solid var(--ink); }
fieldset { display: grid; grid-template-columns: minmax(160px, .35fr) 1fr; gap: 2rem; margin: 0; padding: 1.6rem 0; border: 0; border-bottom: 1px solid var(--ink); }
legend { float: left; width: 100%; padding: .65rem 0; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-row label { cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span { display: inline-block; padding: .72rem 1rem; border: 1px solid var(--ink); border-radius: 99px; background: transparent; transition: background .18s, color .18s, transform .18s; }
.choice-row input:checked + span { color: var(--paper); background: var(--ink); }
.choice-row input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice-row label:hover span { transform: translateY(-2px); }
.find-button { width: 100%; margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--ink); color: white; background: var(--blue); font-weight: 700; cursor: pointer; box-shadow: 7px 7px 0 var(--ink); transition: transform .18s, box-shadow .18s; }
.find-button:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--ink); }
.find-button span:last-child { font-size: 1.6rem; }

.results { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.results-heading .eyebrow { margin-bottom: .7rem; }
.text-button { padding: .5rem 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-weight: 700; cursor: pointer; }
.results-note { max-width: 620px; margin: 1.8rem 0 3.5rem; color: #50534d; line-height: 1.6; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.gift-card { min-width: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.23); }
.card-art { position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--ink); background-image: url("/images/presentes-contact.webp"); background-size: 300% 200%; background-repeat: no-repeat; }
.art-1 .card-art { background-position: 0 0; }
.art-2 .card-art { background-position: 50% 0; }
.art-3 .card-art { background-position: 100% 0; }
.art-4 .card-art { background-position: 0 100%; }
.art-5 .card-art { background-position: 50% 100%; }
.art-6 .card-art { background-position: 100% 100%; }
.card-symbol { position: absolute; z-index: 2; right: .8rem; bottom: .8rem; padding: .55rem .75rem; border: 1px solid var(--ink); background: var(--paper); font-family: var(--serif); font-size: 1rem; font-style: italic; transform: rotate(-2deg); }
.card-number { position: absolute; left: 1rem; top: 1rem; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: .7rem; font-weight: 700; }
.card-body { padding: 1.5rem; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-body h3 { margin: 1.4rem 0 .7rem; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.02; }
.card-description { min-height: 4.8em; margin: 0; line-height: 1.55; color: #484b45; }
.card-detail { min-height: 3em; margin: 1rem 0 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .79rem; line-height: 1.45; }
.save-button { padding: .65rem 0; border: 0; background: transparent; font-size: .78rem; font-weight: 700; cursor: pointer; }
.save-button[aria-pressed="true"] { color: var(--blue); }

.manifesto { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 9rem); color: var(--paper); background: var(--ink); }
.manifesto blockquote { margin: 2rem 0 4rem; font-size: clamp(3.1rem, 7vw, 7.2rem); line-height: .96; letter-spacing: -.045em; }
.manifesto blockquote em { color: var(--lime); font-weight: 400; }
.manifesto-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid rgba(243,239,223,.35); }
.manifesto-notes p { padding-top: 1.2rem; color: #babbb3; line-height: 1.55; }
.manifesto-notes strong { color: var(--paper); }

footer { padding: 3rem clamp(1.25rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 2rem; border-top: 1px solid var(--ink); }
.footer-brand { font-size: 1.4rem; }
footer p { margin: .45rem 0 0; line-height: 1.5; }
.fine-print { font-size: .72rem; color: #61645e; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-object { border-left: 0; border-top: 1px solid var(--ink); }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { grid-template-columns: 1fr 1fr; }
  .fine-print { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; }
  .site-header p { display: none; }
  .hero { min-height: auto; }
  .hero-copy { padding-top: 5rem; padding-bottom: 5rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 5.8rem); }
  .hero-lede { margin-left: 0; }
  .hero-object { min-height: 390px; }
  .finder-heading { display: block; }
  fieldset { display: block; }
  legend { float: none; margin-bottom: .6rem; }
  .choice-row { clear: both; }
  .results-heading { display: block; }
  .results-heading .text-button { margin-top: 1.5rem; }
  .gift-grid { grid-template-columns: 1fr; }
  .card-description, .card-detail { min-height: 0; }
  .manifesto-notes { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .fine-print { grid-column: auto; }
}

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