/* honeytime.app: the app's own tokens (Shared/UI/Theme.swift). Light mode only. */
:root {
  --honey: #FFC400; --honey-soft: #FFF3C4; --orange: #FF7A1A; --orange-deep: #E25600;
  --blue: #0B6BF2; --ink: #2A2725; --ink-2: rgb(42 39 37 / 0.72); --ink-3: rgb(42 39 37 / 0.52);
  --paper: #FFFDF8; --card: #F8F3EF; --edge: rgb(42 39 37 / 0.08);
  --shadow: 0 1px 1px rgb(42 39 37 / 0.04), 0 4px 10px rgb(42 39 37 / 0.05), 0 18px 40px rgb(42 39 37 / 0.07);
  --radius: 28px; --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .rounded { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.label { font: 600 13px/1 ui-rounded, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-deep); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* Header and footer */
.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 ui-rounded, system-ui; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 0.5px var(--edge); }
.site-head nav { display: flex; gap: 20px; font-size: 15px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-head nav a:hover { color: var(--ink); }
.site-foot { padding: 48px 0 56px; color: var(--ink-3); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid var(--edge); padding-top: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* Buttons */
.badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 150ms ease-out; }
.badge:active { transform: scale(0.96); }
.badge img { height: 52px; width: auto; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration: underline; }

/* Long-form pages */
.doc { padding: 24px 0 24px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 600; margin: 12px 0 8px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc details { background: var(--card); border-radius: 20px; padding: 0 22px; box-shadow: 0 0 0 1px var(--edge); margin-top: 12px; }
.doc summary { cursor: pointer; font: 600 17px/1.35 ui-rounded, system-ui; color: var(--ink); padding: 18px 0; min-height: 44px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; flex: none; color: var(--ink-3); font-weight: 400; font-size: 20px; }
.doc details[open] summary::after { content: "–"; }
.doc details p { padding-bottom: 18px; }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.press-grid img { border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--edge); }

@media (max-width: 860px) {
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .site-head nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .badge { transition: none; } }
