/* quotes.gripe shared styles (home page, authors, topics) */
:root { --bg:#faf8f5; --fg:#1a1a1a; --muted:#8a8a8a; --soft:#5c5c5c; --line:#e4e0da; --hover:#efebe5; --panel:#f3efe9; --accent:#e5484d;
        --serif:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif }
@media (prefers-color-scheme: dark) { :root { --bg:#111; --fg:#f2f2f2; --muted:#8a8a8a; --soft:#b5b5b5; --line:#262626; --hover:#1d1d1d; --panel:#171717 } }
:root { color-scheme:light dark }
* { box-sizing:border-box; margin:0 }
html { -webkit-text-size-adjust:100% }
body { background:var(--bg); color:var(--fg); font:16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
       display:flex; flex-direction:column; min-height:100vh; min-height:100dvh }
#app { flex:1 1 auto; width:100%; max-width:860px; margin:0 auto; padding:clamp(16px,3vw,40px) clamp(16px,3vw,40px) 24px }
a { color:var(--accent) }
button, input, select, textarea { font:inherit; color:inherit }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
.hidden { display:none !important }
.muted { color:var(--muted) }

/* header */
header.site { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; margin-bottom:18px }
header.site h1, .brand { font-size:clamp(1.6rem,4vw,2.4rem); font-weight:700; letter-spacing:-.03em; line-height:1.2; color:var(--fg); text-decoration:none }
header.site h1 span, .brand span { color:var(--accent) }
.tag { color:var(--muted); font-size:.95rem }
nav.top { display:flex; gap:16px; font-weight:600; font-size:.95rem }
nav.top a { color:var(--fg); text-decoration:none }
nav.top a:hover, nav.top a[aria-current] { color:var(--accent) }

/* buttons, chips */
.btn { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:var(--bg); border-radius:10px; padding:8px 14px;
       cursor:pointer; font-weight:600; font-size:.92rem; text-decoration:none; color:var(--fg) }
.btn:hover { border-color:var(--accent) }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff }
.btn.primary:hover { filter:brightness(1.07) }
.btn.danger:hover { color:var(--accent) }
.btn:disabled { opacity:.5; cursor:default }
.row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px }
.chips { display:flex; flex-wrap:wrap; gap:6px; padding:0; list-style:none }
.chips li a { display:inline-block; font-size:.85rem; padding:3px 10px; border-radius:999px; border:1px solid var(--line); background:var(--bg); color:var(--fg); text-decoration:none }
.chips li a:hover { border-color:var(--accent); color:var(--accent) }
.chips.big li a { font-size:.92rem; padding:5px 12px; font-weight:600 }
.status { min-height:1.4em; font-size:.88rem; color:var(--muted); margin-top:8px }
section.panel, details.panel { margin-top:22px; border:1px solid var(--line); border-radius:16px; background:var(--panel); padding:18px }
section.panel > h2, .panel-h { font-size:1.05rem; margin-bottom:12px }
details.panel summary { cursor:pointer; font-weight:600; font-size:1.05rem }

/* a quote */
.q { margin:0; padding:16px 0 14px; border-top:1px solid var(--line); scroll-margin-top:16px }
.qs > .q:first-child { border-top:0 }
.q blockquote { margin:0 }
.q blockquote p { font-family:var(--serif); font-size:1.14rem; line-height:1.5; overflow-wrap:break-word; max-width:62ch }
.q figcaption { margin-top:6px; font-size:.86rem; color:var(--soft); line-height:1.45; overflow-wrap:break-word }
.q figcaption a { color:var(--soft) } .q figcaption a:hover { color:var(--accent) }
.q figcaption cite { font-style:italic }
.q .cit { display:block }
.q .meta { display:block; color:var(--muted); font-size:.82rem }
.q .meta a { color:var(--muted) }
.q:target { background:color-mix(in srgb, var(--accent) 7%, transparent); border-radius:10px; padding-left:10px; padding-right:10px }
.qa { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px }
.qa button, .qa a { font-size:.8rem; padding:3px 9px; border:1px solid var(--line); border-radius:999px; background:var(--bg); color:var(--soft); cursor:pointer; text-decoration:none; font-weight:600 }
.qa button:hover, .qa a:hover { border-color:var(--accent); color:var(--accent) }
.qa button[aria-pressed="true"] { border-color:var(--accent); color:var(--accent) }

/* author / topic pages */
.crumbs { font-size:.88rem; color:var(--muted); margin-bottom:14px }
.crumbs a { color:var(--muted); text-decoration:none } .crumbs a:hover { color:var(--accent); text-decoration:underline }
h1.ph { font-size:clamp(1.7rem,4.5vw,2.4rem); letter-spacing:-.03em; line-height:1.15 }
h1.ph .muted { font-weight:500 }
p.sub { color:var(--soft); margin:6px 0 18px; max-width:70ch }
.toc ul { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:4px 16px; font-size:.9rem; margin-bottom:8px }
.toc a { color:var(--fg) }
section.work { margin-top:26px }
section.work h2 { font-size:1.15rem; letter-spacing:-.01em; line-height:1.3 }
section.work h2 cite { font-style:italic }
section.work h2 .muted { font-weight:500; font-size:.92rem }
.wsrc { font-size:.82rem; color:var(--muted); margin:2px 0 4px }
.wsrc a { color:var(--muted) }
.pn { display:flex; justify-content:space-between; gap:12px; margin:34px 0 0; padding-top:16px; border-top:1px solid var(--line); flex-wrap:wrap }
.pn a { text-decoration:none; font-weight:600 }
nav.more { margin-top:34px; padding-top:16px; border-top:1px solid var(--line) }
nav.more h2 { font-size:1rem; margin-bottom:10px }
.alist, .tlist { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px }
.alist li { display:flex; align-items:center; justify-content:space-between; gap:8px; border:1px solid var(--line); border-radius:12px; background:var(--bg); padding:8px 12px }
.alist a { text-decoration:none; color:var(--fg); min-width:0 }
.alist a b { display:block; font-size:.95rem }
.alist a span { display:block; color:var(--muted); font-size:.8rem }
.alist a:hover b { color:var(--accent) }
.alist .n, .tlist .n { color:var(--muted); font-size:.82rem; flex-shrink:0 }
.tlist a { display:flex; justify-content:space-between; gap:8px; border:1px solid var(--line); border-radius:12px; background:var(--bg); padding:10px 12px; color:var(--fg); text-decoration:none }
.tlist a:hover { border-color:var(--accent) } .tlist a:hover b { color:var(--accent) }

/* about / FAQ */
.about { max-width:70ch; margin:48px 0 0; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); color:color-mix(in srgb, var(--fg) 68%, var(--bg)); font-size:.93rem; line-height:1.6 }
.about h2 { margin:0 0 2px; font-size:1.15rem; font-weight:650; letter-spacing:-.01em; line-height:1.3; color:var(--fg) }
.about h3 { margin:18px 0 4px; font-size:.98rem; font-weight:600; line-height:1.35; color:var(--fg) }
.about p { margin:0; overflow-wrap:break-word }

/* gripe network badge (same on every site) */
.gn-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 16px 22px }
.gn-terms { color:var(--muted,#8a8a8a); font:.8rem/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration:none; text-align:center }
.gn-terms:hover { color:var(--accent,#e5484d); text-decoration:underline }
.gn { display:inline-flex; align-items:center; gap:10px; padding:6px 6px 6px 14px; border:1px solid var(--line,#e4e0da); border-radius:999px;
      background:var(--panel,var(--hover,#f3efe9)); color:var(--fg,#1a1a1a); text-decoration:none;
      font:500 .9rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; transition:border-color .15s, transform .15s }
.gn:hover { border-color:var(--accent,#e5484d); transform:translateY(-1px) }
.gn:focus-visible { outline:2px solid var(--accent,#e5484d); outline-offset:2px }
.gn-dot { width:8px; height:8px; border-radius:50%; background:var(--accent,#e5484d); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent,#e5484d) 22%, transparent) }
.gn b { color:var(--accent,#e5484d); font-weight:700 }
.gn-more { padding:5px 11px; border-radius:999px; background:var(--accent,#e5484d); color:#fff; font-size:.8rem; font-weight:600; white-space:nowrap }
@media (prefers-reduced-motion: reduce) { .gn { transition:none } .gn:hover { transform:none } }
@media (max-width:420px) { .gn { font-size:.82rem; gap:8px; padding-left:12px } .gn-more { padding:5px 9px } }
