/* I Am Hungry But Not Stupid — purist greys & whites, crisp edges. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-warm: #fafaf7;
  --rule: #111111;
  --rule-soft: #d8d8d4;
  --ink: #111111;
  --ink-soft: #4a4a48;
  --ink-mute: #7a7a76;
  --tint: #f1f1ec;
  --max: 1100px;
  --max-narrow: 720px;
  --gutter: clamp(16px, 4vw, 36px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--paper-warm);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", "Liberation Serif", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.9em;
}

ul {
  margin: 0;
  padding-left: 1.1em;
}

li + li {
  margin-top: 0.45em;
}

/* Layout shell */

.page {
  width: min(var(--max), calc(100% - calc(var(--gutter) * 2)));
  margin: 0 auto;
  padding: 0 0 64px;
}

.page--narrow {
  max-width: var(--max-narrow);
}

/* Top bar — like the masthead of a small-print bulletin */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0 14px;
  margin-bottom: 28px;
}

.masthead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--rule);
}

.masthead-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Eyebrow / kicker labels */

.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-block;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  margin-bottom: 18px;
}

/* Hero — newspaper deck */

.hero {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .lede {
  max-width: 56ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-image {
  margin: 28px 0 0;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 8px 0 0;
}

/* Section titles like newspaper section heads */

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding: 10px 0 18px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-head .num {
  color: var(--ink-mute);
}

/* Article cards — feel like clipped index entries */

.entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.entry:first-child {
  padding-top: 0;
}

.entry:last-child {
  border-bottom: 0;
}

.entry-thumb {
  background: var(--tint);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-body h2 {
  margin-bottom: 8px;
}

.entry-body h2 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.entry-body h2 a:hover {
  border-bottom-color: var(--rule);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

.entry-body p {
  color: var(--ink-soft);
}

.entry-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  text-decoration: none;
}

.entry-more:hover {
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px 4px;
  border: 0;
}

/* Image strip / gallery — ten-up of receipts on the table */

.strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 720px) {
  .strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

.strip figure {
  margin: 0;
  background: var(--paper);
}

.strip figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.strip figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 0 0;
}

/* Notes / quick principles list */

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.principles > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.principles > div:first-child {
  padding-top: 0;
}

.principles > div:last-child {
  border-bottom: 0;
}

.principles .n {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  color: var(--ink-mute);
}

.principles h3 {
  margin: 0 0 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.principles p {
  color: var(--ink-soft);
}

/* Article (field-note) page */

.article {
  padding-top: 8px;
}

.article-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.article-header h1 {
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.article-figure {
  margin: 0 0 32px;
  background: transparent;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 8px 0 0;
}

.article-body {
  font-size: 1.06rem;
  max-width: 64ch;
}

.article-body section + section {
  margin-top: 36px;
}

.article-body h2 {
  margin-bottom: 10px;
  padding-top: 0;
}

.article-body p {
  color: var(--ink);
}

.pull {
  margin: 28px 0 0;
  padding: 14px 0 0 18px;
  border-left: 2px solid var(--rule);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
}

.pull::before {
  content: "Note. ";
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 8px;
}

.next-up {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
}

.next-up .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

/* Colophon / footer */

.colophon {
  margin-top: 48px;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.colophon p + p {
  margin-top: 6px;
}

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Mobile */

@media (max-width: 720px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .masthead-strip {
    display: none;
  }

  .nav {
    width: 100%;
  }
}
