/* Serpent of Hours — serpentofhours.com
   Text-only site. Faz 4'e kadar SIFIR görsel marka öğesi (GTM_PLAN §3 KAPI 0 madde 2):
   no logo, no keyart, no imagery of any kind.

   NO EXTERNAL REQUESTS BY DESIGN. No web fonts, no CDN, no analytics, no cookies.
   A privacy page that phones a third party to render itself is not a privacy page.
   The Cinzel/Nunito pairing (§6 UI lock) is EVOKED with a system stack rather than
   loaded, because loading it would send every visitor's IP to Google Fonts. */

:root {
  --ink:        #ece3d4;
  --ink-soft:   #b6ab98;
  --ink-faint:  #8b8172;
  --bg:         #14120f;
  --bg-raised:  #1c1915;
  --rule:       #332d25;
  --ember:      #d98f47;
  --ember-deep: #b8702f;
  --focus:      #e8b27a;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink:        #241f18;
    --ink-soft:   #4f463a;
    --ink-faint:  #6f6555;
    --bg:         #f7f2e7;
    --bg-raised:  #efe7d6;
    --rule:       #ddd2bb;
    --ember:      #9a5613;
    --ember-deep: #7d440c;
    --focus:      #7d440c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ── skip link ─────────────────────────────────────────────────────────── */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-raised);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ── masthead ──────────────────────────────────────────────────────────── */
header.masthead {
  padding: 3.5rem 0 0;
}

.sitename {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.sitename:hover,
a.sitename:focus-visible { color: var(--ember); border-bottom-color: var(--ember); }

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 1.25rem 0 0;
  color: var(--ink);
}

.tagline {
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0.85rem 0 0;
}

.meta {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  margin: 1.5rem 0 0;
}
.meta a { color: var(--ink-soft); }

/* ── sections ──────────────────────────────────────────────────────────── */
main { padding-top: 2.5rem; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 3.5rem 0 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
main > .wrap > section:first-of-type > h2,
main > section:first-of-type > h2 { margin-top: 0; }

h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 2.25rem 0 0.4rem;
}

p { margin: 0 0 1rem; }
p + h3 { margin-top: 2.25rem; }

a {
  color: var(--ember);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--focus); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.55rem; }
li::marker { color: var(--ember-deep); }

strong { font-weight: 700; color: var(--ink); }

/* ── pull quote (landing hook — R119 locked line) ──────────────────────── */
blockquote.hook {
  margin: 2.5rem 0;
  padding: 0 0 0 1.15rem;
  border-left: 2px solid var(--ember-deep);
  font-family: var(--display);
  font-size: clamp(1.125rem, 3.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}
blockquote.hook p { margin: 0; }

/* ── notice block (the "nothing is for sale today" frame) ──────────────── */
.notice {
  margin: 2rem 0 0;
  padding: 1.15rem 1.25rem;
  background: var(--bg-raised);
  border-left: 2px solid var(--ember-deep);
  border-radius: 2px;
  font-size: 1rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ── the one-line deal ─────────────────────────────────────────────────── */
.deal {
  margin: 2.5rem 0 0;
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--ember);
}

/* ── data table (privacy: what actually leaves the device) ─────────────── */
.tablescroll {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9375rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
thead th {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td code, p code, li code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--ink);
  background: var(--bg-raised);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── contents list ─────────────────────────────────────────────────────── */
nav.toc { margin: 2rem 0 0; }
nav.toc ul { list-style: none; padding: 0; margin: 0; }
nav.toc li { margin-bottom: 0.4rem; }

/* ── follow list ───────────────────────────────────────────────────────── */
ul.channels { list-style: none; padding: 0; }
ul.channels li { margin-bottom: 0.4rem; color: var(--ink-soft); }
ul.channels .platform {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* ── footer ────────────────────────────────────────────────────────────── */
footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-faint);
}
footer a { color: var(--ink-soft); }
footer p { margin: 0 0 0.5rem; }

/* ── motion / print ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; padding: 0; }
  a { color: #000; }
  .skip, nav.toc { display: none; }
}
