/* The site kit (2026-11-22): what every Team Olaf website shares, so olafzen.com, olafhelper.com
   and every new site look and behave the same. The source is ~/Developer/my-mac-setup/site-kit;
   a site has a copy in www/kit/ made by `site-kit sync`, and `site-kit check` fails when the copy
   drifts. Edit it here, never in a site, then sync every site.

   A site loads kit/kit.css first, then its own site.css, which sets its accent (the tokens
   marked "per site" below) and its own pages. Black always, Apple's system font, pill buttons,
   no smooth scrolling, animations always play (no "Reduce motion" check). */

:root {
  /* Shared: the same on every site */
  --bg: #0a0918; --bg2: #120f26; --bg3: #17112a;
  --text: #f5f0ff; --soft: #d6cff0; --muted: #aaa3c9; --faint: #6f6893;
  --lilac: #c4b3ff;                                  /* FAQ answers */
  --line: rgba(255, 255, 255, .09); --glass: rgba(255, 255, 255, .04);
  --ease: cubic-bezier(.65, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: 1180px;     /* the widest a page's content gets */
  --column: 760px;    /* one column of text: FAQ, privacy, release lines */
  --gutter: 24px;     /* side padding; 16 px on a phone */
  --top-h: 60px;      /* the top menu's height */

  /* Per site: the accent. These are olafzen.com's; a site's site.css sets its own. */
  --accent: #ffb36b;        /* the main color: links, pills, dots, focus */
  --accent-2: #ff7aa8;      /* the second color: the end of every gradient */
  --accent-light: #ffd29a;  /* where a button's gradient starts */
  --accent-pale: #ffd9bd;   /* where the big headline's white turns into the accent */
  --on-accent: #1a0f1f;     /* text on a gradient button */
  --glow-1: #5b3cff; --glow-2: var(--accent-2); --glow-3: var(--accent);   /* the soft lights behind a page's top */
  --coffee-1: var(--accent); --coffee-2: var(--accent-2);                  /* the coffee card and ☕ button */
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-padding-top: calc(var(--top-h) + 16px); }  /* no smooth scroll: a link jumps at once */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  text-wrap: pretty;                    /* never one word alone on a line (fit-text.js does the rest) */
}
h1, h2, h3, h4 { text-wrap: balance; }
em.line { display: block; font-style: inherit; }   /* a heading's second line, balanced on its own */
span.ln { display: block; text-wrap: balance; }   /* two sentences meant as two lines: one span.ln each, never <br> */
a { color: inherit; }
img { display: block; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
/* A bilingual site: lang.js sets <html lang>, the other language hides */
html[lang="en"] [lang="sv"], html[lang="sv"] [lang="en"] { display: none; }

/* Headlines: heavy and tight; h1 glows from white into the accent */
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
h1 {
  letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(180deg, #fff 22%, var(--accent-pale) 72%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em;
}
h3 { font-weight: 700; letter-spacing: -.01em; }
.lead { color: var(--soft); font-size: 20px; }

/* ── The top menu (partials/header.html): glass, sticky, one row; ☰ when it doesn't fit ── */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: linear-gradient(rgba(10, 9, 24, .88), rgba(10, 9, 24, .6));
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top-links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.top-links a { position: relative; text-decoration: none; white-space: nowrap; transition: color .2s; }
.top-links a:hover, .top-links a.here { color: var(--text); }
/* ☕ in the bar: warm and quiet, in the coffee color */
.coffee-top {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 15px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: color-mix(in srgb, var(--coffee-1) 45%, #fff);
  background: color-mix(in srgb, var(--coffee-1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--coffee-1) 35%, transparent); transition: background .2s;
}
.coffee-top:hover { background: color-mix(in srgb, var(--coffee-1) 22%, transparent); }
.lang-btn {
  flex: none; height: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  font: 650 13px var(--font); color: var(--muted); background: transparent; border: 1px solid var(--line);
}
.lang-btn:hover { color: var(--text); }
.menu-btn {
  display: none; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 999px;
  cursor: pointer; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--text);
}
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
.menu-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.menu-btn .i-close, .top.menu-open .menu-btn .i-open { visibility: hidden; }
.top.menu-open .menu-btn .i-close { visibility: visible; }
/* menu.js sets .menu-fold when the row doesn't fit: ☰ shows, the links drop down as a list */
.top.menu-fold .menu-btn { display: grid; }
.top.menu-fold .coffee-top { margin-left: auto; }
.top.menu-fold .top-links {
  display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
  padding: 6px 16px 14px; background: rgba(10, 9, 24, .97); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.top.menu-fold.menu-open .top-links { display: flex; animation: menu-drop .22s cubic-bezier(.2, .7, .2, 1); }
.top.menu-fold .top-links a { padding: 13px 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.top.menu-fold .top-links a + a { border-top: 1px solid var(--line); }
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } }

/* ── Buttons: pills. .btn is the main one, a glowing gradient; .btn-lg is bigger, .btn-ghost quiet ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; font: 700 16px/1.2 var(--font); text-decoration: none; white-space: nowrap;
  color: var(--on-accent);
  background: linear-gradient(100deg, var(--accent-light), var(--accent) 42%, var(--accent-2));
  box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--accent) 65%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 50px -8px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { padding: 19px 38px; font-size: 19px; }
.btn-ghost, .btn.ghost { color: var(--text); background: var(--glass); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.btn-ghost:hover, .btn.ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; }

/* A small pill above a page's title ("FAQ", "Beta", "Releases") */
.pill {
  display: inline-block; margin: 0 0 22px; padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── A page of its own (FAQ, privacy, releases, a guide): one column under a big title ── */
.page { max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 96px; }
.page-head { text-align: center; margin-bottom: 40px; }
.page-title { margin: 0; font-size: clamp(40px, 6vw, 72px); }
.page-head .lead { margin: 18px auto 0; max-width: 600px; color: var(--muted); font-size: 19px; }

/* Text pages (privacy, guides): readable paragraphs and plain lists */
.doc h2 { font-size: 24px; letter-spacing: -.02em; font-weight: 750; margin: 46px 0 10px; color: var(--text); }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: #cfc7ea; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin: 8px 0; }
.doc b, .doc strong { color: var(--text); }
.doc a { color: var(--accent); }
.doc code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 5px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: #cfc7ea; vertical-align: top; }
.doc th { color: var(--text); }

/* ── FAQ: one question open at a time (<details name="faq">), none at load ── */
.faq { max-width: var(--column); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px;
  cursor: pointer; list-style: none; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
/* The down chevron in a soft circle: it unfolds the answer (the one place arrows go) */
.faq summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23f5f0ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(180deg); background-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.faq details > :not(summary) { margin: 0 4px 24px; color: var(--lilac); }
.faq details p + p { margin-top: -12px; }
.faq details a { color: var(--text); }

/* ── The coffee card: the end of the front page, the same on every site ──
   <section class="coffee"><div class="wrap"><div class="coffee-card">mug | text | button */
.coffee { padding: 120px 0; }
.coffee-card {
  display: flex; align-items: center; gap: 40px; padding: 44px 48px; border-radius: 30px;
  background:
    radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--coffee-1) 22%, transparent), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, color-mix(in srgb, var(--coffee-2) 18%, transparent), transparent 70%),
    var(--bg3);
  border: 1px solid rgba(255, 255, 255, .1);
}
.coffee-card .mug { flex: none; width: 130px; overflow: visible; transform-origin: 50% 90%; }
.coffee-card .mug .m1 { stop-color: color-mix(in srgb, var(--coffee-1) 70%, #fff); }
.coffee-card .mug .m2 { stop-color: var(--coffee-2); }
.coffee-card .mug .steam { stroke: color-mix(in srgb, var(--coffee-1) 45%, #fff); }
.coffee-card .mug .handle { stroke: color-mix(in srgb, var(--coffee-2) 75%, #fff); }
.coffee-card .steam path { animation: steam 3.2s ease-in-out infinite; opacity: 0; }
.coffee-card .steam path:nth-child(2) { animation-delay: 1s; }
.coffee-card .steam path:nth-child(3) { animation-delay: 2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-14px); } }
.coffee-card:hover .mug { animation: wobble .6s ease-in-out; }   /* a small happy wobble */
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } }
.coffee-text { flex: 1; min-width: 0; }
.coffee-card h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.coffee-card p { margin: 10px 0 0; color: var(--soft); max-width: 600px; }
.coffee-card .btn { flex: none; }

/* ── The footer (partials/footer.html): links, then the copyright line ── */
.site-foot {
  border-top: 1px solid var(--line); padding: 40px 16px 60px; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5;
}
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }
.site-foot small { display: block; margin: 0; color: var(--faint); font-size: 12.5px; }
.site-foot small a { color: inherit; }
.site-foot small a:hover { color: var(--muted); }

/* ── A phone or a narrow window ── */
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .top { padding: 0 16px; gap: 12px; }
  .page { padding-top: 48px; }
}
/* The coffee card in a medium window: the button moves under the text, beside the mug, so the
   text keeps its width (side by side, it shrank to a word per line below 1000 px; 2026-11-22) */
@media (max-width: 1040px) {
  .coffee-card { display: grid; grid-template-columns: auto 1fr; gap: 20px 36px; }
  .coffee-card .mug { grid-row: span 2; }
  .coffee-card .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .coffee { padding: 96px 0; }
  .coffee-card { display: flex; flex-direction: column; text-align: center; padding: 34px 22px; gap: 18px; }
  .coffee-card .mug { width: 104px; }
  .coffee-card p { margin-left: auto; margin-right: auto; }
  .btn-lg { padding: 17px 30px; font-size: 18px; }
  .faq summary { font-size: 18px; padding: 18px 2px; }
}
@media (max-width: 420px) {
  .coffee-top .cf-t { display: none; }   /* ☕ alone */
  .coffee-top { padding: 0 12px; }
}
@media (max-width: 380px) {
  .top { gap: 8px; padding: 0 12px; }
  .brand { gap: 8px; font-size: 16px; }
}
