/* Cafe Deli - Manso — shared styles.
   Palette and typefaces mirror the mobile app so the site and the app read
   as one product. */

:root {
  color-scheme: light dark;
  --surface: #FAF4EC;
  --card: #FFFDF9;
  --espresso: #3D170C;
  --orange: #F1961D;
  --rust: #C4520F;
  --muted: #7A5A4B;
  --muted-light: #9C8375;
  --cream: #F6E9DA;
  --line: #EFE2D4;
  --accent-soft: #FBEADB;
  --shadow: 0 1px 2px rgba(61, 23, 12, .04), 0 8px 24px rgba(61, 23, 12, .05);
  --radius: 22px;

  /* Constant in both themes: surfaces that are always dark, and the text on
     them. Never redefine these in the dark-mode block. */
  --ink-fixed: #3D170C;
  --on-dark: #F6E9DA;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #201310;
    --card: #2B1B16;
    --espresso: #F3E7DC;
    --muted: #C3AE9F;
    --muted-light: #A8927F;
    --line: #45302A;
    --accent-soft: #3A2620;
    --rust: #E8813F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--espresso);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 22px; }
.narrow { width: min(760px, 100%); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0 0 12px;
}
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(27px, 3.6vw, 38px); margin-top: 0; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--rust); margin: 0 0 12px;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { height: 34px; width: auto; display: block; }
.brand span { font-family: "Instrument Serif", Georgia, serif; font-size: 20px; white-space: nowrap; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav a.link:hover { color: var(--espresso); }
.nav .links { display: flex; gap: 20px; align-items: center; }
@media (max-width: 760px) { .nav .links { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary { background: var(--orange); color: #3D170C; }
.btn-dark { background: var(--ink-fixed); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--line); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; }
.hero .lede { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }
.hero h1 em { font-style: italic; color: var(--rust); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-photo {
  border-radius: 34px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; background: var(--accent-soft);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .hero-photo { aspect-ratio: 16 / 10; } }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature h4 {
  font-size: 15px; font-weight: 800; margin: 0 0 5px; color: var(--espresso);
}
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }
.feature .dot {
  width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft);
  color: var(--rust); display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 11px;
}

/* ---------- sections & cards ---------- */
section.band { padding: 62px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

.step-num {
  width: 38px; height: 38px; border-radius: 13px; background: var(--accent-soft);
  color: var(--rust); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 15px;
}

/* ---------- document pages ---------- */
.doc { padding: 52px 0 70px; }
.doc h2 { margin-top: 38px; font-size: 27px; }
.doc h3 { margin-top: 26px; }
.doc .meta { color: var(--muted-light); font-size: 14px; margin-bottom: 8px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--accent-soft); font-weight: 700; }
.table-scroll { overflow-x: auto; margin-bottom: 18px; }

.callout {
  background: var(--accent-soft); border-left: 3px solid var(--rust);
  border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; font-size: 15px;
}

.todo {
  background: #FFF4D6; color: #6B4A00; border-radius: 5px;
  padding: 1px 7px; font-weight: 700; font-size: .95em;
}
@media (prefers-color-scheme: dark) { .todo { background: #5A4415; color: #FFE9A8; } }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 44px 0 54px;
  color: var(--muted); font-size: 14.5px; margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
footer.site h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; color: var(--espresso); }
footer.site a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 9px; }
footer.site a:hover { color: var(--rust); }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted-light); }

/* ---------- store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #3a3a3a; border-radius: 11px;
  padding: 9px 17px 9px 15px; min-width: 190px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.badge:hover {
  transform: translateY(-2px);
  border-color: #6a6a6a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.badge:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.badge svg { width: 27px; height: 27px; flex: none; }

.badge .badge-text { display: flex; flex-direction: column; line-height: 1.16; }
.badge .badge-text small {
  font-size: 10.5px; font-weight: 500; letter-spacing: .02em;
  text-transform: none; color: #fff; opacity: .92;
}
.badge .badge-text strong {
  font-size: 18.5px; font-weight: 600; letter-spacing: -.01em; color: #fff;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}
.badge.play .badge-text small { text-transform: uppercase; letter-spacing: .09em; font-size: 9.5px; }

/* On a dark page the black badge still needs to separate from the background. */
@media (prefers-color-scheme: dark) {
  .badge { border-color: #5a5a5a; }
  /* A dark-brown button on a dark page has too little contrast, so invert. */
  .btn-dark { background: var(--on-dark); color: var(--ink-fixed); }
  .btn-primary { color: #2A0F07; }
}
