/* andrewdrummondreddit.com: warm off-white, orange-red accent, rounded sans headings, threaded list. */
:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #2b2118;
  --muted: #65554a;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --tint: #fdeee3;
  --line: #e6d6c3;
  --radius: 16px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", "Varela Round", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #f1e6d8; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; border-radius: 999px; z-index: 10; }
.skip:focus { left: 0.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { background: var(--card); border-bottom: 4px solid var(--accent); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font: 800 1.15rem/1.2 var(--round); color: var(--ink); text-decoration: none; }
.brand-logo { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 0.35rem 0.8rem; border-radius: 999px; font: 700 0.92rem/1.3 var(--round); text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint); color: var(--accent-dark); }

main { padding-top: 1.25rem; padding-bottom: 3rem; }

/* headings */
h1, h2, h3, h4, .btn, summary { font-family: var(--round); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6rem; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
.post-title::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }

/* original post and threads */
.op, .thread { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1rem 1.2rem; margin: 0 0 1.25rem; box-shadow: 0 2px 0 rgba(194, 65, 12, 0.08); }
.op { border-left: 6px solid var(--accent); }
.op p { max-width: 46rem; }
.hub-note { color: var(--muted); font-size: 0.95rem; }
.src-note { color: var(--muted); font-size: 0.95rem; }
.more { margin: 0.75rem 0 0; font: 700 0.95rem/1.4 var(--round); }
.evidence > h2 { margin-top: 2rem; }

/* threaded replies */
.replies { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 3px solid var(--line); }
.replies > li { position: relative; margin: 0 0 1rem; padding-left: 0.75rem; }
.replies > li::before { content: ""; position: absolute; left: -1rem; top: 1.1rem; width: 1rem; border-top: 3px solid var(--line); }
.replies > li:last-child { margin-bottom: 0; }
.replies img { margin: 0; }
.replies:not(.grid) img { max-width: min(100%, 30rem); }
.replies.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding-left: 0; border-left: 0; }
.replies.grid > li { margin: 0; padding: 0; }
.replies.grid > li::before { display: none; }
figure { margin: 0; }
figcaption { margin-top: 0.35rem; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }

/* quoted record */
blockquote { margin: 0; padding: 0.7rem 0.9rem; background: var(--tint); border-radius: 12px; }
blockquote p { margin: 0 0 0.4rem; }
blockquote footer { font: 700 0.85rem/1.3 var(--round); }

/* uploads library */
.library summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); }
.library[open] summary { margin-bottom: 0.5rem; }
.files { margin: 1rem 0 0; padding-left: 1.2rem; }

/* other sites */
.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.site-card { position: relative; display: flex; flex-direction: column; gap: 0.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.1rem; }
.site-emoji { font-size: 1.6rem; line-height: 1; }
.site-title { font: 800 1rem/1.3 var(--round); padding-right: 0.5rem; }
.site-domain { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.btn { display: inline-block; align-self: flex-start; margin-top: 0.6rem; padding: 0.45rem 1.1rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.95rem; text-decoration: none; }
.btn:hover { background: var(--accent-dark); color: #fff; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 1rem; padding-bottom: 1.2rem; }
.site-foot p { margin: 0; }

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  .op, .thread { padding: 1.4rem 1.5rem 1.5rem; }
  .replies.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .replies.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* record-updated line, FAQ, update log */
.updated { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; }
.faq h3 { margin: 1rem 0 0.25rem; }
.faq h3:first-of-type { margin-top: 0.4rem; }
.updates ul { margin: 0; padding-left: 1.2rem; }
