/* GiftPick — warm, rounded, generous. Coral on cream, big soft cards. */
/* Self-hosted (SIL Open Font License): Fraunces, Karla — latin subset, from the Google Fonts CSS API, Sep 2026.
   Served from this origin so no visitor IP reaches Google; privacy.html promises nothing loads from third parties. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-63f1654d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fraunces-63f1654d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/karla-a661925d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/karla-a661925d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #fff6ef;
  --card: #ffffff;
  --ink: #33241d;
  --muted: #846d62;
  --coral: #cc421a;
  --coral-dark: #9e3410;
  --mint: #268066;
  --line: #f0dccd;
  --radius: 18px;
}

* { box-sizing: border-box; }

/* Visible keyboard focus everywhere, and a skip link that appears on focus. */
:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 10;
  background: var(--card); color: var(--ink); font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .12s;
}
.skip-link:focus { top: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Karla, system-ui, -apple-system, sans-serif;
}

.wrap { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }

header.site { padding: 1.75rem 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--coral); }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-weight: 600; font-size: 0.95rem; }
nav a:hover, nav a:focus { color: var(--coral); }

h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; margin: 1rem 0; font-weight: 700; }
h2 { font-family: Fraunces, Georgia, serif; font-size: 1.7rem; margin: 2.25rem 0 0.75rem; font-weight: 600; }
h3 { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; margin: 0 0 0.5rem; font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

#tool {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0 3rem;
  box-shadow: 0 12px 32px -20px rgba(51, 36, 29, 0.5);
}
.step { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); font-weight: 600; margin: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.65rem; margin-top: 1.25rem; }
.option {
  font: 600 1rem/1.3 Karla, sans-serif; cursor: pointer; text-align: left;
  background: var(--bg); border: 2px solid transparent; border-radius: 12px;
  padding: 0.9rem 1rem; color: var(--ink); transition: border-color .12s, transform .12s;
}
.option:hover, .option:focus-visible { border-color: var(--coral); transform: translateY(-2px); }
.back { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 1.25rem 0 0; }
.note { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card { background: var(--bg); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; }
.card .band { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mint); font-weight: 600; margin: 0 0 0.4rem; }
.card .why { font-size: 0.95rem; color: var(--muted); flex: 1; }
.cta {
  display: inline-block; margin-top: 1rem; text-align: center; background: var(--coral); color: #fff;
  border-radius: 999px; padding: 0.7rem 1.2rem; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.cta:hover, .cta:focus-visible { background: var(--coral-dark); }

article p, article li { max-width: 38rem; }
article a { color: var(--coral); }
.rule-box { background: var(--card); border-left: 5px solid var(--mint); border-radius: 0 14px 14px 0; padding: 1.1rem 1.35rem; margin: 1.5rem 0; }
.rule-box p { margin: 0; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.guide-list a { display: block; background: var(--card); border-radius: 14px; padding: 1.1rem 1.35rem; text-decoration: none; color: var(--ink); }
.guide-list a:hover { outline: 2px solid var(--coral); }
.about-label { display: block; font-weight: 600; margin-top: 1rem; }
.consent { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; max-width: 38rem; }
.guide-list span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.5rem 0; }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 2rem 0 3rem; color: var(--muted); font-size: 0.87rem; }
footer.site p { margin: 0 0 0.6rem; max-width: 42rem; }
footer.site a { color: var(--muted); }

.byline { font-size: 0.85rem; color: var(--muted); margin-top: -0.5rem; }
.byline a { color: var(--muted); }

/* free-text step + AI note */
#about {
  width: 100%; font: 400 1rem/1.5 Karla, sans-serif; color: var(--ink);
  background: var(--bg); border: 2px solid transparent; border-radius: 12px;
  padding: 0.85rem 1rem; resize: vertical; margin-top: 1rem;
}
#about:focus { border-color: var(--coral); background: #fff; }
.about-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.option.go { background: var(--coral); color: #fff; flex: 0 0 auto; }
.option.go:hover, .option.go:focus-visible { border-color: var(--coral-dark); background: var(--coral-dark); }
.card .note-ai { font-size: 0.9rem; color: var(--mint); font-weight: 600; margin: 0 0 0.35rem; }

/* shareable results */
.share { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.option.share-btn { flex: 0 0 auto; font-size: 0.92rem; padding: 0.6rem 1rem; }
.share-note { font-size: 0.88rem; color: var(--mint); }

/* Respect a reduced-motion preference: keep the state changes, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .option:hover, .option:focus-visible { transform: none; }
}
