/* SoloGo shared system (Dec 2026 redesign): warm paper, dark green, Literata display, Figtree UI. */
:root {color-scheme: light;
  --bg: #F7F5EE;
  --card: #FFFDF8;
  --ink: #202A23;
  --mute: #515C52;
  --line: #DDDCD0;
  --soft: #F1EFE6;
  --track: #C2C8BD;
  --accent: #28543E;
  --accent-hover: #1B3D2C;
  --accent-soft: #E4F0E7;
  --accent-mid: #83A78D;
  --dark: #20382A;
  --on-dark: #FFFDF8;
  --on-dark-muted: #DAE7DC;
  --focus: #936016;
  --blue: var(--accent);
  --blue-d: var(--accent-hover);
  --blue-l: var(--accent-soft);
  --sans: "Figtree", system-ui, sans-serif;
  --display: "Literata", Georgia, serif;
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --max: 1184px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px / 1.6 var(--sans);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.3vw, 4.35rem); line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 3.75vw, 3.25rem); line-height: 1.14; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
h1 + .lede, h2 + .lede { margin-top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.serif { font-family: var(--display); }
.lede {
  max-width: 58ch;
  color: var(--mute);
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
  line-height: 1.6;
}
.band {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.band.w { background: var(--card); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  font: 700 1rem / 1.25 var(--sans);
  text-align: center;
  text-decoration: none;
}
.btn.p { background: var(--accent); color: var(--on-dark); }
.btn.p:hover { background: var(--accent-hover); color: var(--on-dark); }
.btn.g { border-color: var(--track); background: transparent; color: var(--ink); }
.btn.g:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.btn.s { min-height: 44px; padding: 8px 13px; font-size: .875rem; }
.btn:disabled { cursor: default; opacity: .65; }

.nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.nav > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(16px, 3vw, 34px);
  min-height: 70px;
  padding-block: 10px;
}
.nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(12px, 2.4vw, 26px);
  margin-left: auto;
}
.nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mute);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav nav a:hover, .nav nav a[aria-current="page"] {
  color: var(--accent-hover);
  text-decoration: underline;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink);
  font: 800 1.375rem / 1 var(--sans);
  letter-spacing: -.035em;
  text-decoration: none;
}
.logo:hover { color: var(--accent-hover); }
.logo > i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-style: normal;
  font-size: 13px;
}

.foot {
  padding-block: 30px 44px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: .9375rem;
}
.foot .wrap, .foot .links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
}
.foot .wrap { justify-content: space-between; gap: 20px 36px; }
.foot .links a { color: inherit; }
.foot a[href^="mailto:"] { overflow-wrap: anywhere; }

.doc {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(44px, 7vw, 88px) var(--gutter) clamp(48px, 7vw, 96px);
}
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 14px; }
.doc h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 36px 0 12px; }
.doc h3 { margin-block: 24px 8px; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-inline-start: 1.35em; }
.doc li + li { margin-top: 6px; }
.doc .meta { color: var(--mute); font-size: .9375rem; margin-bottom: 26px; }
.doc .list { border-top: 1px solid var(--line); gap: 0; }
.doc .list a {
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.doc .list a:hover { outline: none; color: var(--accent); }
.doc .list a:hover b { text-decoration: underline; }
.doc .list a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.shell .right { background: var(--dark); color: var(--on-dark); }
.shell .right q { font-family: var(--display); }
.shell .right p { color: var(--on-dark-muted); }
.shell .box .seg { border: 1px solid var(--line); border-radius: var(--r); }
.shell .box .seg button {
  min-height: 44px;
  height: auto;
  border-radius: var(--r-sm);
  font: 700 .9375rem / 1.25 var(--sans);
}
.shell .box .seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-dark);
}
.shell .box input {
  width: 100%;
  border-radius: var(--r);
  font: 1rem / 1.3 var(--sans);
}
.shell .box input:focus { outline-color: var(--focus); }
.shell .box .alt {
  min-height: 44px;
  font: 700 .9375rem / 1.3 var(--sans);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--dark);
  color: var(--on-dark);
  font-size: .9375rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.toast.on { opacity: 1; }

@media (max-width: 760px) {
  .nav > .wrap { column-gap: 10px; row-gap: 0; }
  .nav .btn { margin-left: auto; }
  .nav nav {
    order: 1;
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }
  .nav nav a { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
