/* Hamachmetzet site. Brand tokens mirror Hamachmetzet/App/Theme.swift (Direction C, "Jar Pals"). */
:root {
  --bg: #FFF4E0;       /* dough */
  --surface: #FFFBF3;
  --ink: #3B2A4A;      /* plum */
  --muted: #6E5F7C;
  --line: #EAD9BF;
  --primary: #6B4C9A;  /* links, outlines */
  --signal: #FF8FAB;   /* pink */
  --mint: #8FE3C0;
  --butter: #FFD166;
  --lilac: #B8A1FF;
  --on-chip: #3B2A4A;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1627; --surface: #2A2035; --ink: #FFF4E0; --muted: #CDBFD8;
    --line: #44365A; --primary: #C9B6FF;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1627; --surface: #2A2035; --ink: #FFF4E0; --muted: #CDBFD8;
  --line: #44365A; --primary: #C9B6FF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

header.top { border-bottom: 1.5px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; min-height: 40px; }
nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
nav a.lang { color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }

main { padding-block: 32px 56px; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); margin-bottom: 24px; }
ul.plain, ol.plain { padding-inline-start: 1.2em; margin: 0 0 12px; }

.hero { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; padding-block: 8px 16px; }
@media (min-width: 640px) { .hero { grid-template-columns: 1.4fr 1fr; } }
.hero .lead { font-size: 1.2rem; color: var(--muted); }
.mascot { width: 100%; max-width: 240px; justify-self: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; }
.badge svg { width: 22px; height: 22px; fill: currentColor; }
.badge small { display: block; font-size: .72rem; opacity: .8; line-height: 1.2; }
.badge span { line-height: 1.2; }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card p { margin: 6px 0 0; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; border: 1.5px solid var(--on-chip); }

details { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 600; color: var(--primary); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 16px 14px; }
details > div p:last-child { margin-bottom: 0; }

.contact { background: var(--mint); color: var(--on-chip); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.contact a { color: var(--on-chip); font-weight: 600; }
.contact h2 { margin-top: 0; }

.policy section { border-top: 1.5px solid var(--line); padding-top: 4px; }
.policy section:first-of-type { border-top: 0; }

footer { border-top: 1.5px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { padding-block: 20px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
[dir="ltr"] .ltr-num, .ltr { direction: ltr; unicode-bidi: isolate; }

@media (prefers-reduced-motion: no-preference) {
  .mascot .blink { animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
}
