:root {
  --ink: #11120f;
  --paper: #f2efe7;
  --muted: #66675f;
  --line: #cbc7bb;
  --acid: #d8ff43;
  --red: #e34a33;
  --measure: 72rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.site-header,
.site-footer,
.site-main {
  width: min(calc(100% - 2.5rem), var(--measure));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font: 800 .72rem/1 Arial, sans-serif;
  letter-spacing: .08em;
  transform: rotate(-3deg);
}

nav { display: flex; gap: 1.5rem; }

nav a,
.site-footer a {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: 70vh;
  padding: clamp(5rem, 12vw, 10rem) 0 5rem;
  align-items: center;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.hero-portrait {
  position: relative;
  margin: 0 1rem 0 0;
}

.hero-portrait::before {
  position: absolute;
  inset: -.65rem;
  z-index: 0;
  background: var(--acid);
  content: "";
  transform: rotate(4deg);
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 8rem;
  height: auto;
  filter: grayscale(100%) contrast(1.08);
  transform: rotate(-2deg);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3rem, 8.5vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .92;
}

.hero h1::selection,
.post-list span::selection { background: var(--acid); }

.hero-copy {
  max-width: 38rem;
  margin: 2.25rem 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.text-link {
  width: fit-content;
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

.archive {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.section-heading > p:last-child { color: var(--muted); }

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.post-list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .15s ease, background .15s ease;
}

.post-list a:hover {
  padding-inline: .8rem;
  background: var(--acid);
}

.post-list time {
  color: var(--muted);
  font: 700 .75rem/1 Arial, sans-serif;
  letter-spacing: .08em;
}

.post-list span { font-weight: 700; line-height: 1.25; }
.post-arrow { color: var(--red); }

.review-notice {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--ink);
  background: var(--acid);
}

.review-notice p {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.review-notice p + p { margin-top: 1rem; }

.contact {
  padding: clamp(4rem, 9vw, 8rem);
  color: var(--paper);
  background: var(--ink);
}

.contact h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 6rem);
  letter-spacing: -.055em;
  line-height: .95;
}

.contact > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 2rem 0;
  color: #b9b8af;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.contact-links a {
  color: var(--acid);
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

.site-main > h1,
.site-main > p,
.site-main > h2,
.site-main > h3,
.site-main > ul,
.site-main > ol,
.site-main > pre,
.site-main > blockquote,
.site-main > div,
.site-main > script,
.site-main > hr {
  max-width: 46rem;
  margin-inline: auto;
}

.site-main > h1 {
  max-width: 55rem;
  margin-top: clamp(5rem, 12vw, 9rem);
  margin-bottom: 4rem;
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -.055em;
  line-height: .98;
}

.site-main > h1::before {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--red);
  content: "FIELD NOTE";
  font: 800 .7rem/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.site-main > h2 {
  margin-top: 3.5rem;
  font-size: 1.75rem;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.site-main > p,
.site-main > ul,
.site-main > ol { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }

.site-main > p:last-child { margin-bottom: 8rem; }
.site-main img { max-width: 100%; height: auto; }
.site-main pre { overflow-x: auto; padding: 1.25rem; color: var(--paper); background: var(--ink); }
.site-main code { font-size: .9em; }
.site-main p a { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .18em; }

.gist { margin-block: 2rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2.5rem 0;
  color: var(--ink);
  font-size: .8rem;
}

@media (max-width: 720px) {
  .site-header { min-height: 5rem; }
  .wordmark > span:last-child { display: none; }
  nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { grid-row: 2; }
  .hero-portrait { grid-row: 1; width: fit-content; margin-left: .65rem; }
  .hero-portrait img { width: 6.5rem; }
  .archive { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact { width: calc(100% + 2.5rem); margin-left: -1.25rem; padding-inline: 1.25rem; }
  .post-list a { grid-template-columns: 3rem 1fr auto; }
  .site-main > h1 { margin-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-list a { transition: none; }
}
