/* Georgish Labs — landing page styles.
   One quiet column of serif text. Display/body: Newsreader. UI: Inter. */

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #1d1d1d;
  --ink-2: #4a4a4a;
  --muted: #8a8a8a;
  --faint: #c9c9c9;
  --line: #e6e6e6;
  --accent: #1f5f4a;
  --btn-bg: #efefef;
  --btn-bg-hover: #e4e4e4;
  --column: 600px;
  --gutter: clamp(16px, 5vw, 48px);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --ink: #ececec;
    --ink-2: #c4c4c4;
    --muted: #8c8c8c;
    --faint: #4a4a4a;
    --line: #2a2a2a;
    --accent: #8fd0b4;
    --btn-bg: #242424;
    --btn-bg-hover: #2e2e2e;
  }
}
:root[data-theme="dark"] {
    --bg: #121212;
    --ink: #ececec;
    --ink-2: #c4c4c4;
    --muted: #8c8c8c;
    --faint: #4a4a4a;
    --line: #2a2a2a;
    --accent: #8fd0b4;
    --btn-bg: #242424;
    --btn-bg-hover: #2e2e2e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.58;
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1.25em; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; font-family: var(--sans); font-size: 0.875rem; border-radius: 4px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: relative; padding: 22px var(--gutter) 0; text-align: center; }
.top-nav {
  position: absolute; top: 20px; right: var(--gutter);
  display: flex; gap: 22px;
  font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.01em;
}
.top-nav a { color: var(--ink-2); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: 70px;
  text-decoration: none;
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0.34em; text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.wordmark span { background: linear-gradient(90deg, #7a7a7a, #b8b8b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark span { background: linear-gradient(90deg, var(--ink-2), var(--muted)); -webkit-background-clip: text; background-clip: text; } }
.tag { margin: 34px auto 0; font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-2); }
.tag a { color: inherit; text-decoration: none; }
.tag a:hover { text-decoration: underline; }
.tag-new {
  display: inline-block; margin-right: 6px; padding: 2px 7px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  vertical-align: 1px;
}

/* Column */
.column { max-width: var(--column); margin: 0 auto; padding: 46px var(--gutter) 60px; }
.column section { margin: 0 0 3.2rem; }
.column section:last-child { margin-bottom: 0; }
.intro { margin-bottom: 3.6rem; }
.intro p:first-child { font-size: 1.125rem; }
h2 {
  font-family: var(--sans); font-weight: 400; font-size: 1.125rem; letter-spacing: -0.005em;
  margin: 0 0 1.05rem; color: var(--ink);
}
h4 { font-family: var(--sans); font-weight: 400; font-size: 0.8125rem; color: var(--muted); margin: 0 0 12px; }

/* Drawing */
.drawing { margin: 0 0 3.6rem; color: var(--ink-2); }
.drawing svg { width: 100%; height: auto; display: block; }
.drawing figcaption { margin-top: 10px; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); text-align: center; }



/* Footer */
.site-footer { max-width: 1040px; margin: 110px auto 0; padding: 0 var(--gutter) 48px; font-family: var(--sans); font-size: 0.8125rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 24px; max-width: 760px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin: 56px 0 0; color: var(--ink-2); max-width: 60ch; }

/* Small screens */
@media (max-width: 640px) {
  .site-header { padding-top: 16px; }
  .top-nav { position: static; justify-content: center; gap: 18px; margin-bottom: 6px; }
  .wordmark { margin-top: 44px; letter-spacing: 0.26em; text-indent: 0.26em; }
  .tag { margin-top: 26px; }
  .column { padding-top: 36px; }
  body { font-size: 1.0625rem; }
  .site-footer { margin-top: 72px; }
}

/* Theme toggle */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font: inherit; font-family: var(--sans); font-size: 0.75rem; color: var(--ink-2); cursor: pointer; line-height: 1.4; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
