/* Zortusk.com — one stylesheet, no build step for CSS, no external requests except Google Fonts.
   Layout: a navy masthead band, then a single 1040px column; the tusk mark in brass is the one accent.
   Tokens: ink/surface neutrals cooled toward navy; brass for the mark and emphasis; teal for links. */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-soft: #55606f;
  --line: #dbe1ea;
  --navy: #1b2a41;
  --navy-deep: #121d2e;
  --on-navy: #eef2f7;
  --on-navy-soft: #b9c4d3;
  --brass: #a9741c;
  --brass-bright: #d6a64a;
  --brass-soft: #f4e9d2;
  --teal: #1b6b74;
  --ok: #2e7d4f;
  --font-display: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 16px;
  --max: 1040px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141c; --surface: #171e29; --ink: #e8ecf2; --ink-soft: #a3adbb; --line: #2a3442;
    --navy: #121a27; --navy-deep: #0b111a; --on-navy: #eef2f7; --on-navy-soft: #aab6c6;
    --brass: #d6a64a; --brass-bright: #e4bb66; --brass-soft: #2d2718; --teal: #6fc3cc; --ok: #7bd39a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141c; --surface: #171e29; --ink: #e8ecf2; --ink-soft: #a3adbb; --line: #2a3442;
  --navy: #121a27; --navy-deep: #0b111a; --on-navy: #eef2f7; --on-navy-soft: #aab6c6;
  --brass: #d6a64a; --brass-bright: #e4bb66; --brass-soft: #2d2718; --teal: #6fc3cc; --ok: #7bd39a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 10px; }
h3 { font-weight: 700; font-size: 21px; margin: 0 0 6px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 500; color: var(--brass); margin: 0 0 12px; }
.top .kicker { color: var(--brass-bright); }

/* masthead */
.top { background: var(--navy); color: var(--on-navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy-soft); line-height: 1; margin-top: 3px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a.link { color: var(--on-navy); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 500; font-size: 16px; }
.nav a.link:hover { background: rgba(255,255,255,0.1); }
.nav a.link[aria-current="page"] { background: rgba(255,255,255,0.16); }

/* hero (home) */
.hero { padding-top: 56px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 58px); line-height: 1.06; margin: 0 0 20px; }
.hero .lede { font-size: 20px; color: var(--on-navy-soft); max-width: 32em; margin: 0 0 28px; }
.hero .lede strong { color: var(--on-navy); font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 17px; font-family: var(--font-display); }
.btn.brass { background: var(--brass-bright); color: #1b1508; }
.btn.ghost { color: var(--on-navy); border: 2px solid rgba(255,255,255,0.45); }
.btn.solid { background: var(--navy); color: var(--on-navy); }
:root[data-theme="dark"] .btn.solid { background: var(--brass-bright); color: #1b1508; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.solid { background: var(--brass-bright); color: #1b1508; } }
.mark-big { justify-self: center; width: min(260px, 70%); }
.mark-big svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35)); }

/* page-head band (inner pages) */
.page-head { padding-top: 40px; padding-bottom: 44px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(32px, 4.8vw, 46px); line-height: 1.1; }
.page-head p { margin: 0; color: var(--on-navy-soft); font-size: 19px; max-width: 36em; }

/* sections */
section.block { padding: 60px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.sub { color: var(--ink-soft); margin: 0 0 30px; max-width: 42em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.grid > * { min-width: 0; }
.grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink-soft); }
.card p + p { margin-top: 10px; }
.card.link { text-decoration: none; color: inherit; display: block; }
.card.link:hover { border-color: var(--brass); }
.card.link h3 { color: var(--teal); }

/* app card */
.app { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.app img { width: 96px; height: 96px; border-radius: 22px; }
.app h3 { font-size: 26px; margin: 0 0 4px; }
.app .meta { display: flex; gap: 8px 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.app .meta .pill { background: var(--brass-soft); color: var(--brass); border-radius: 999px; padding: 2px 10px; font-weight: 500; }
.app p { color: var(--ink-soft); }
.app .links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 6px; }
.app .links a { font-weight: 600; }

/* publisher facts */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.facts dt { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.facts dd { margin: 0; min-width: 0; }
.facts dd address { font-style: normal; }

/* article pages */
article.prose { max-width: 740px; padding: 44px 0 72px; font-size: 19px; }
article.prose h2 { font-size: 27px; margin-top: 42px; scroll-margin-top: 20px; }
article.prose h2:first-of-type { margin-top: 0; }
article.prose h3 { font-size: 22px; margin: 26px 0 8px; }
article.prose li { margin-bottom: 8px; }
article.prose address { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: inline-block; margin: 6px 0 16px; }
.note { border-left: 4px solid var(--brass-bright); padding: 4px 0 4px 16px; color: var(--ink-soft); }
.email { font-family: var(--font-mono); font-size: 0.95em; white-space: nowrap; }
dl.contacts dt { font-weight: 700; margin-top: 18px; font-family: var(--font-display); }
dl.contacts dd { margin: 4px 0 0; color: var(--ink-soft); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--ink-soft); }
footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
footer .fine { font-size: 13px; margin-top: 20px; opacity: 0.85; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 48px; }
  .mark-big { width: 160px; order: -1; justify-self: start; }
  .nav { justify-content: center; }
  section.block { padding: 44px 0; }
  .app { grid-template-columns: 1fr; }
  .app img { width: 72px; height: 72px; border-radius: 16px; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { margin-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card.link, .btn { transition: border-color 0.15s ease, transform 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
}
