/* Cafe Bento marketing site. Plain CSS, no build step.
   Colours are tokens on :root; dark mode redefines them. */
:root {
  --bg: #ffffff;
  --surface: #f6f5f3;
  --surface-2: #ece9e4;
  --text: #1c1b19;
  --text-2: #55524d;
  --line: #ddd9d2;
  --accent: #c2410c;       /* white on this is 5.2:1 */
  --accent-ink: #ffffff;
  --accent-soft: #fdeee6;
  --ok: #1d7a38;
  --radius: 12px;
  --max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1d1c18;
    --surface-2: #2a2823;
    --text: #f3f1ed;
    --text-2: #b9b5ad;
    --line: #38352f;
    --accent: #f08a5d;
    --accent-ink: #1c1b19;
    --accent-soft: #2e211a;
    --ok: #5fd07f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
nav.main a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
nav.main a:hover { background: var(--surface); color: var(--text); }
nav.main a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
nav.main a.cta { background: var(--accent); color: var(--accent-ink); }
nav.main a.cta:hover { filter: brightness(1.08); }

/* type and sections */
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; margin: 0 0 .75rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 42rem; }
section { padding: 3rem 0; }
section.alt { background: var(--surface); }
.hero { padding: 4rem 0 3rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem; }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* grids and cards */
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
section.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card h3 a { text-decoration: none; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
ul.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* screenshot frames */
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.shot .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--text-2); font-size: .95rem; background:
  repeating-linear-gradient(45deg, transparent 0 14px, rgba(128,128,128,.08) 14px 28px); }
.shot img { display: block; width: 100%; }
.shot figcaption { padding: .6rem .9rem; font-size: .9rem; color: var(--text-2); border-top: 1px solid var(--line); background: var(--surface); }

/* steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1rem 3.6rem; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
ol.steps li strong { display: block; }

/* forms */
form.stack { display: grid; gap: 1rem; max-width: 34rem; }
label { font-weight: 600; display: block; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: .7rem .8rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .35rem; }
.note { font-size: .9rem; color: var(--text-2); }
.form-msg { padding: .8rem 1rem; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--line); }
.form-msg[hidden] { display: none; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--text-2); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }

/* legal pages */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }

@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; }
  section { padding: 2.25rem 0; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mt { margin-top: 1.25rem; }
.mt-s { margin-top: 1rem; }
