/* Home Café Edit: curated picks site
   Brand tokens come from instagram/profile.md (section 5). To retheme, change only :root. */

:root {
  /* Brand colors */
  --c-espresso: #1E1612;   /* dark: hero, buttons, text on light */
  --c-crema: #F3EBDD;      /* light: page background, text on dark */
  --c-brass: #B08D57;      /* accent: on Espresso only for text. On Crema use it for lines and shapes only (2.6:1) */

  /* Derived tones (tints of the brand colors) */
  --c-surface: #FBF7F0;                 /* card surface on the Crema page */
  --c-ink: var(--c-espresso);
  --c-ink-soft: rgba(30, 22, 18, 0.74); /* secondary text on light, about 6.5:1 */
  --c-line: rgba(30, 22, 18, 0.14);
  --c-on-dark: var(--c-crema);
  --c-on-dark-soft: rgba(243, 235, 221, 0.78);
  --c-line-dark: rgba(243, 235, 221, 0.16);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --wrap: 1080px;
  --gutter: 20px;
  --radius: 20px;
  --radius-sm: 12px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  background: var(--c-crema);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--c-espresso); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--c-brass); }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--c-espresso); color: var(--c-crema);
  padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 8vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--c-ink-soft);
}
.dark .label { color: var(--c-brass); }

.small { font-size: 0.875rem; color: var(--c-ink-soft); }
.dark .small { color: var(--c-on-dark-soft); }

/* Disclosure bar */
.disclosure-bar {
  background: var(--c-espresso);
  color: var(--c-on-dark-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-dark);
}
.disclosure-bar a { color: var(--c-crema); }

/* Header */
.site-header { background: var(--c-espresso); color: var(--c-on-dark); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav { display: none; gap: 22px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--c-on-dark-soft); }
.nav a:hover { color: var(--c-crema); }

/* Hero */
.hero { background: var(--c-espresso); color: var(--c-on-dark); padding: 36px 0 56px; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--c-brass); }
.hero .lede { font-size: 1.125rem; color: var(--c-on-dark-soft); max-width: 36rem; margin-bottom: 26px; }
.rule { width: 56px; height: 2px; background: var(--c-brass); border: 0; margin: 0 0 22px; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--c-line); }
.section-head { max-width: 40rem; margin-bottom: 26px; }

/* Top pick card */
.pick {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.pick-body { padding: 24px 22px 26px; }
.pick h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 6px; }
.pick .tagline { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.9375rem; margin-bottom: 18px; }
.meta strong { font-weight: 600; }

/* CSS placeholder frame for the official product photo */
.media-placeholder {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(176, 141, 87, 0.28), transparent 60%),
    linear-gradient(180deg, #2A201B, var(--c-espresso));
  display: grid; place-items: center;
}
.media-placeholder::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.media-placeholder svg { width: 38%; max-width: 180px; opacity: 0.9; }
.media-placeholder figcaption {
  position: absolute; bottom: 26px; left: 0; right: 0;
  text-align: center; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-on-dark-soft);
}

.chips { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.chips li {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9375rem;
  background: #fff;
}
.chips li b { font-weight: 600; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.actions .btn { flex: 1 1 220px; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--c-espresso);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--c-espresso); color: var(--c-crema); }
.btn-primary:hover { background: #33261F; }
.btn-secondary { background: transparent; color: var(--c-espresso); }
.btn-secondary:hover { background: rgba(30, 22, 18, 0.06); }
.dark .btn-primary { background: var(--c-crema); color: var(--c-espresso); border-color: var(--c-crema); }

.note-box {
  border-left: 3px solid var(--c-brass);
  background: #fff;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  margin: 16px 0 0;
}

/* Reasons */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: r; }
.reasons li {
  counter-increment: r;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.reasons li::before {
  content: "0" counter(r);
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--c-ink-soft);
}
.reasons h3 { margin-bottom: 6px; }
.reasons p { margin: 0; }
.reasons p + p { margin-top: 8px; }
blockquote { margin: 0 0 6px; font-style: italic; }
cite { font-style: normal; font-size: 0.8125rem; color: var(--c-ink-soft); }

.math {
  margin-top: 18px;
  background: var(--c-espresso); color: var(--c-on-dark);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.math .label { color: var(--c-brass); }
.math p:last-child { margin: 0; color: var(--c-on-dark-soft); }
.math .big { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--c-crema); margin-bottom: 8px; }

/* Fit / skip */
.fit { display: grid; gap: 14px; }
.fit-card {
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  padding: 22px 20px;
  background: var(--c-surface);
}
.fit-card.skip-card { background: transparent; border-style: dashed; }
.fit-card ul { margin: 0; padding-left: 1.1em; }
.fit-card li { margin-bottom: 10px; }
.fit-card li:last-child { margin-bottom: 0; }

.box-list { columns: 1; margin: 0; padding-left: 1.1em; }

/* Dark band (deals) */
.dark { background: var(--c-espresso); color: var(--c-on-dark); }
section.dark + section { border-top: 0; }

/* About / how we pick */
.two-col { display: grid; gap: 28px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--c-line); position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 10px; height: 2px; background: var(--c-brass);
}

/* Footer */
.site-footer { background: var(--c-espresso); color: var(--c-on-dark-soft); padding: 40px 0 48px; font-size: 0.875rem; }
.site-footer a { color: var(--c-crema); }
.site-footer .brand { color: var(--c-crema); margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; }

/* Legal pages */
.legal { padding: 44px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .fit { grid-template-columns: 1fr 1fr; }
  .box-list { columns: 2; column-gap: 32px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding: 56px 0 80px; }
  section { padding: 80px 0; }
  .pick { grid-template-columns: 0.9fr 1.1fr; }
  .media-placeholder { aspect-ratio: auto; min-height: 100%; }
  .pick-body { padding: 36px 36px 34px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
}

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