/* Roast900 site. Colours follow the app's dark theme (Roast900/UI/Shared/Theme.swift). */
:root {
  color-scheme: dark;
  --page: #0c0b0a;
  --espresso: #2a1a12;
  --surface: #191817;
  --raised: #262422;
  --line: rgba(247, 234, 216, 0.1);
  --text: #f7ead8;
  --muted: #b3aa9f;
  --accent: #f08a4b;
  --on-accent: #1a0e07;
  --bean: #e76624;
  --air: #338ced;
  --ror: #9887ef;
  --heat: #eb6263;
  --fan: #00a888;
  --gold: #ffe2b0;
  --radius: 18px;
  --wide: 1120px;
  --narrow: 720px;
}

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

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

body {
  margin: 0;
  background: var(--page) radial-gradient(ellipse 90% 60% at 50% -10%, var(--espresso), transparent 70%) no-repeat;
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--narrow); }

/* header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(2.5rem, 6.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.curve-text {
  background: linear-gradient(90deg, var(--gold), #f8a95e 30%, var(--bean) 62%, var(--air));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 30px; color: var(--muted); font-size: 1.2rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--gold); color: var(--on-accent); }
.button.secondary { border-color: var(--line); color: var(--text); }
.button.secondary:hover { background: var(--raised); color: var(--text); }
.platforms { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }

.device { position: relative; justify-self: center; width: min(330px, 100%); }
.device::before {
  content: ""; position: absolute; inset: 12% -18% 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(231, 102, 36, 0.22), transparent);
}
.device img, .shots img {
  border-radius: 34px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

/* sections */
section { padding: 64px 0; }
.section-title { margin: 0 0 10px; font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; }
.section-lead { margin: 0 0 36px; color: var(--muted); max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.swatch { flex: none; width: 22px; height: 4px; border-radius: 2px; background: var(--c, var(--accent)); }
.c-bean { --c: var(--bean); }
.c-air { --c: var(--air); }
.c-gold { --c: var(--gold); }
.c-ror { --c: var(--ror); }
.c-heat { --c: var(--heat); }
.c-fan { --c: var(--fan); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; text-align: center; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.split img { justify-self: center; width: 100%; max-width: 520px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }

.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.note h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.015em; }
.note p { margin: 0; color: var(--muted); }

/* prose pages */
.page { padding: 24px 0 72px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 8px; }
.page .updated { margin: 0 0 36px; color: var(--muted); }
.page h2 { margin: 40px 0 10px; font-size: 1.35rem; letter-spacing: -0.015em; }
.page h3 { margin: 26px 0 6px; font-size: 1.08rem; }
.page p, .page li { color: #e4d8c6; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.contact { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact p { margin: 0; }
.contact .address { font-size: 1.2rem; font-weight: 650; margin-top: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
  .device { width: min(300px, 80%); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .features { grid-template-columns: 1fr; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
  .shots figure { flex: 0 0 72%; scroll-snap-align: center; }
  section { padding: 48px 0; }
}
