/* danshipper.com — white paper, Signifier Light, the blue.
   A modernized continuation of the old site's look (Emptiness theme, 2017).
   Always light — like the old site. */

@font-face {
  font-family: "Signifier";
  src: url("/fonts/signifier-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #474747;
  --strong: #222222;
  --faded: #8f8f8f;
  --accent: #0578cd;        /* body links — AA on white */
  --accent-bright: #0599ff; /* the old site's blue — hovers & large accents */
  --rule: #e9e9e9;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  color-scheme: light only;
  background: var(--paper);
  color: var(--ink);
  font-family: "Signifier", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-synthesis-weight: none;
  font-size: clamp(18px, 1.05vw + 14px, 20px);
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

main {
  max-width: 41rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6.5rem) 1.375rem 4rem;
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- hero ---------- */

header.hero {
  display: grid;
  grid-template-columns: 1fr 11.5rem;
  gap: 0 2.25rem;
  align-items: start;
}

img.portrait {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin-top: 0.9rem;
}

@media (max-width: 600px) {
  header.hero { grid-template-columns: 1fr; }
  img.portrait { width: 8.5rem; order: -1; margin: 0 0 1.5rem; }
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--strong);
  margin: 0 0 1.75rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--strong);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--strong);
  margin: 1.5rem 0 0.25rem;
}

p { margin: 0 0 1.1rem; }

b, strong { font-weight: 300; color: var(--strong); }

section {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.lede {
  font-size: 1.17rem;
  line-height: 1.55;
}

small, .small { font-size: 0.85rem; color: var(--faded); }

/* ---------- links: the blue ---------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--accent-bright);
  text-decoration-color: var(--accent-bright);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
  text-decoration: none;
}

nav.crumb a, footer a { color: var(--accent); }

/* ---------- lists with date gutters ---------- */

ul.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.ledger > li {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0 1.1rem;
  padding: 0.55rem 0;
}

ul.ledger .when {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faded);
  padding-top: 0.45em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

ul.ledger .what .note {
  display: block;
  color: var(--faded);
  font-size: 0.92rem;
  margin-top: 0.1rem;
}

/* press lists: outlet as a small eyebrow above the headline */
ul.ledger .outlet {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faded);
  margin-bottom: 0.2rem;
}

ul.ledger.press > li { padding: 0.8rem 0; }
ul.ledger.press .when { padding-top: 0.18em; }
ul.ledger.press .what a { font-size: 1.04rem; line-height: 1.35; }

.m-when { display: none; }

@media (max-width: 540px) {
  ul.ledger.press .when { display: none; }
  ul.ledger.press .m-when { display: inline; }
}

@media (max-width: 540px) {
  ul.ledger > li { grid-template-columns: 1fr; }
  ul.ledger .when { padding-top: 0; }
}

/* ---------- faq ---------- */

.faq h3 { margin-top: 1.6rem; }
.faq h3:first-of-type { margin-top: 0; }

/* ---------- header / footer ---------- */

nav.crumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}
nav.crumb a { text-decoration-color: var(--rule); }

footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--faded);
  font-size: 0.9rem;
}

footer p { margin: 0.3rem 0; }

/* ---------- archive article pages ---------- */

article.archived { margin-top: 1rem; }

article.archived h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
}

.archive-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faded);
  margin-bottom: 1rem;
}

article.archived img { max-width: 100%; height: auto; }
article.archived pre { overflow-x: auto; font-size: 0.85rem; padding: 0.75rem; border: 1px solid var(--rule); }
article.archived blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 2px solid var(--accent-bright); color: var(--faded); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
