/* Gifts Under - site styles. No external requests: fonts are served from /fonts. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --frost: #f1f5f2;
  --paper: #ffffff;
  --spruce: #12403a;
  --ink: #18211f;
  --slate: #55645f;
  --marigold: #f5b82e;
  --line: #d5ded9;
  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --page: 62rem;
  --prose: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.5;
}

a { color: var(--spruce); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--spruce);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }

/* Preview banner */
.preview {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  padding: 0.6rem 0;
}

/* Header */
.site-header { padding: 1.25rem 0 0.5rem; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--spruce);
  text-decoration: none;
  border-bottom: 5px solid var(--marigold);
  padding-bottom: 1px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-size: 1rem; }
.site-nav a { text-decoration: none; padding: 0.35rem 0; }
.site-nav a:hover { text-decoration: underline; }

/* Home */
.hero { padding: 3rem 0 1rem; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  letter-spacing: -0.025em;
  color: var(--spruce);
  text-wrap: balance;
}
.hero h1 .keep { white-space: nowrap; }
.hero p { max-width: 34rem; margin: 1.25rem 0 0; font-size: 1.25rem; color: var(--ink); }

.rack { padding: 1.5rem 0 3rem; }
.rail {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.4rem 0;
  border-top: 2px solid var(--spruce);
}
.rail:last-child { border-bottom: 2px solid var(--spruce); }
.rail h2 { font-weight: 700; font-size: 1.75rem; color: var(--spruce); }
.tags { display: flex; flex-wrap: wrap; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }

/* The price tag: the one shape the site is built around */
.tag {
  --hole: 1.4rem;
  --point: 1rem;
  display: block;
  min-width: 9.25rem;
  padding: 0.7rem 1.15rem 0.75rem 2.75rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  background:
    radial-gradient(circle at var(--hole) 50%, var(--frost) 0 0.36rem, transparent 0.4rem),
    var(--marigold);
  clip-path: polygon(var(--point) 0, 100% 0, 100% 100%, var(--point) 100%, 0 50%);
  transition: background-color 120ms ease;
}
.tag small { display: block; font-family: var(--body); font-size: 0.9rem; font-weight: 700; }
.tag b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  margin-top: 0.1rem;
}
.tag:hover, .tag:focus-visible, .tag[aria-current="page"] {
  background:
    radial-gradient(circle at var(--hole) 50%, var(--frost) 0 0.36rem, transparent 0.4rem),
    var(--spruce);
  color: var(--paper);
}
.tag:focus-visible { outline: none; text-decoration: underline; }
.tag.is-empty { background: var(--line); color: var(--slate); }

.rack .tags > li { flex: 1 1 9.25rem; max-width: 13rem; }
.tags.compact .tag { --hole: 1.25rem; min-width: 0; padding: 0.5rem 0.9rem 0.5rem 2.3rem; }
.tags.compact .tag small { font-size: 0.8rem; }
.tags.compact .tag b { font-size: 1.35rem; }

/* How we pick */
.rule { background: var(--paper); padding: 3rem 0; }
.rule h2 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--spruce); letter-spacing: -0.015em; }
.rule .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; margin-top: 1.5rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--line); position: relative; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 3px solid var(--spruce);
  border-bottom: 3px solid var(--spruce);
  transform: rotate(-45deg);
}
.rule .note p { margin: 0 0 1rem; max-width: 30rem; }

/* Guide pages */
.guide-head { padding: 2rem 0 1.25rem; }
.guide-head h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--spruce);
  margin-top: 1.5rem;
}
.guide-head .lede { font-size: 1.25rem; margin: 0.9rem 0 0; max-width: var(--prose); }
.guide-head .intro { margin: 0.9rem 0 0; max-width: var(--prose); }
.guide-head .top { margin: 0.9rem 0 0; max-width: var(--prose); }
.guide-head .stamp { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--slate); }
.pick .know { font-size: 0.98rem; margin-top: 0.35rem; }
.pick:target { outline: 3px solid var(--marigold); outline-offset: -3px; }
.guide-head .earn { font-size: 0.9rem; color: var(--slate); margin: 0.5rem 0 0; max-width: var(--prose); }

.picks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.pick {
  display: grid;
  grid-template-columns: 3.75rem 1fr auto;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--line);
}
.pick .tile {
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  background: var(--frost);
  border-radius: 12px;
  font-size: 1.9rem;
  line-height: 1;
}
.pick .tile.photo { background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.pick .tile.photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.picks.has-photos .pick { grid-template-columns: 7.5rem 1fr auto; }
.picks.has-photos .tile { width: 7.5rem; height: 7.5rem; }
.pick:first-child { border-top: 0; }
.pick h2, .pick h3 { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.005em; }
.group > h2 { font-weight: 800; font-size: 1.9rem; color: var(--spruce); letter-spacing: -0.015em; margin: 2rem 0 0.25rem; }
.group:first-of-type > h2 { margin-top: 0.5rem; }
.pick p { margin: 0.4rem 0 0; max-width: 34rem; }
.pick .kind { font-size: 0.95rem; color: var(--slate); margin-top: 0.35rem; }

.button {
  display: inline-block;
  background: var(--spruce);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border-radius: 6px;
  white-space: nowrap;
}
.button:hover { background: #0b2c28; }

.checked { color: var(--slate); font-size: 1rem; max-width: var(--prose); margin: 0 0 2.5rem; }

.more { padding: 0 0 3.5rem; }
.more h2 { font-weight: 700; font-size: 1.4rem; color: var(--spruce); margin: 0 0 0.9rem; }
.more .others { margin: 1.75rem 0 0; }
.more .others a { margin-right: 1.25rem; white-space: nowrap; }

/* Prose pages */
.prose { padding: 2.5rem 0 4rem; }
.prose .wrap > * { max-width: var(--prose); }
.prose h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); color: var(--spruce); letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.prose h2 { font-weight: 700; font-size: 1.45rem; color: var(--spruce); margin: 2.25rem 0 0.6rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Footer */
.site-footer { background: var(--spruce); color: #e6efeb; padding: 2.25rem 0 2.5rem; font-size: 1rem; }
.site-footer a { color: var(--paper); }
.site-footer p { margin: 0 0 0.8rem; max-width: 44rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 1.1rem 0; }
.site-footer .fine { font-size: 0.9rem; color: #bcd0c9; margin: 0; }

@media (max-width: 44rem) {
  body { font-size: 1.0625rem; }
  .hero { padding-top: 2rem; }
  .rail { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.2rem 0; }
  .tags { display: grid; grid-template-columns: 1fr 1fr; }
  .tag { min-width: 0; }
  .rack .tags > li { max-width: none; }
  .tags.compact { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .tags.compact .tag { --hole: 0.95rem; --point: 0.7rem; padding: 0.5rem 0.3rem 0.5rem 1.7rem; }
  .tags.compact .tag small { font-size: 0.75rem; }
  .tags.compact .tag b { font-size: 1.15rem; }
  .rule .cols { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 3rem 1fr; align-items: start; gap: 0.75rem 0.9rem; padding: 1.2rem 1.1rem; }
  .pick .tile { width: 3rem; height: 3rem; font-size: 1.5rem; border-radius: 10px; }
  .pick .button { grid-column: 1 / -1; }
  .picks.has-photos .pick { grid-template-columns: 5.5rem 1fr; }
  .picks.has-photos .tile { width: 5.5rem; height: 5.5rem; }
  .button { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tag { transition: none; }
}

/* Country choice in the footer */
.site-footer .countries { margin-top: 0.9rem; font-size: 0.95rem; }
.site-footer .countries a, .site-footer .countries span { margin-left: 0.75rem; }
.site-footer .countries span { font-weight: 700; }

/* Questions under each list */
.faq { max-width: var(--prose); padding: 0 0 2.75rem; }
.faq h2 { font-weight: 700; font-size: 1.4rem; color: var(--spruce); margin: 0 0 0.4rem; }
.faq h3 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin: 1.25rem 0 0.3rem; }
.faq p { margin: 0; color: var(--ink); }
