/* zhobogaga.com — one accent colour, one font stack, mobile-first.
   TODO(Shantanu): accent colour and logo are still open decisions; change --accent here. */
:root {
  --accent: #b4532a;          /* placeholder: soft warm terracotta */
  --accent-soft: #f8eee8;
  --text: #22201e;
  --muted: #6b6660;
  --line: #ece8e3;
  --bg: #ffffff;
  --warn-bg: #fbf6f1;
  --warn-line: #e3c9b4;
  --radius: 12px;
  --max: 64rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
header.site { }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.brand { font-weight: 600; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .25rem 0; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--accent); }
nav.main a[aria-current="page"] { color: var(--text); }

main { padding: 4rem 0 6rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 1.25rem; max-width: 20ch; }
h2 { font-size: 1.375rem; margin: 3.5rem 0 .75rem; }
h3 { font-size: 1.0625rem; margin: 0 0 .4rem; }
p, li { max-width: 65ch; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 58ch; }
.eyebrow { font-size: .9rem; font-weight: 500; color: var(--accent); margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.hero { padding: 3rem 0 2rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: #faf8f6; border: 0; border-radius: var(--radius); padding: 1rem; overflow-x: auto; line-height: 1.45; }
code { background: #f6f2ee; padding: .1em .35em; border-radius: 4px; }
pre code { background: none; padding: 0; }

.cards { display: grid; grid-template-columns: 1fr; gap: 0 3rem; margin: 3rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; position: relative; }
.card:hover h3 a { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card a.stretched { color: var(--text); text-decoration: none; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .tag { display: block; font-size: .875rem; color: var(--accent); margin-bottom: .4rem; }

.notice { border: 0; background: var(--warn-bg); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 65ch; }
.notice strong { display: block; margin-bottom: .25rem; }
.disclaimer { border-left: 3px solid var(--accent); background: var(--warn-bg); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 2rem 0 2.5rem; max-width: 65ch; }
.disclaimer h2 { margin: 0 0 .4rem; font-size: 1.0625rem; }
.disclaimer p { margin: .25rem 0; }
.todo { border-left: 2px solid var(--line); padding: .25rem 0 .25rem 1rem; color: var(--muted); font-style: italic; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1rem 2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

form.stack { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1rem; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #ddd6cf; border-radius: 8px; background: #fff; color: var(--text); }
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); }
button, .button { font: inherit; font-weight: 500; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.4rem; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { background: #fff; color: var(--text); border: 1px solid #ddd6cf; }
button.danger { background: #fff; color: #b42318; border: 1px solid #f1b5af; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.status { min-height: 1.5rem; font-size: .95rem; }
.status.ok { color: var(--accent); }
.status.err { color: #b42318; }

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.answers { list-style: none; padding: 0; display: grid; gap: 1rem; }
.answers li { border-top: 1px solid var(--line); padding: 1.25rem 0; max-width: 65ch; }
.qid { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--muted); }
.pill { font-size: .85rem; color: var(--accent); }

footer.site { border-top: 1px solid var(--line); padding: 2.5rem 0 4rem; color: var(--muted); font-size: .9rem; }
footer.site p { margin: .25rem 0; max-width: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.section-link { display: inline-block; margin-top: .5rem; font-weight: 500; }
dl.facts { display: grid; grid-template-columns: 1fr; gap: .25rem 2rem; max-width: 65ch; }
dl.facts dt { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
dl.facts dd { margin: 0; }
@media (min-width: 40rem) { dl.facts { grid-template-columns: 11rem 1fr; } dl.facts dt { margin-top: 0; } }
