:root {
  --ink: #111111;
  --paper: #f4f1ea;
  --muted: #5c5c5c;
  --line: #d6d1c6;
  --truth: #f4f1ea;
  --deception: #111111;
  --deception-ink: #f4f1ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.logo span {
  font-weight: 300;
}

nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  padding: 3.2rem 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.65;
}

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 650;
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

.lede {
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 54vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split a {
  position: relative;
  isolation: isolate;
  text-decoration: none;
  padding: 2.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  color: #f4f1ea;
  background-color: #2a2218;
  background-repeat: no-repeat;
}

.split a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.split a > * {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.split .truth {
  background-image: url("images/sistine-wide.jpg");
  background-size: cover;
  background-position: center 42%;
}

.split .truth::before {
  background: linear-gradient(
    to top,
    rgba(18, 12, 8, 0.78) 0%,
    rgba(18, 12, 8, 0.22) 48%,
    rgba(18, 12, 8, 0.28) 100%
  );
}

.split .deception {
  background-image: url("images/sistine-cracks.jpg?v=wee");
  background-size: cover;
  background-position: 36% 28%;
}

.split .deception::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.18) 38%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.split h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.split-credit {
  max-width: 1080px;
  margin: 0.55rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.section {
  padding: 2.4rem 0;
}

.grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid article {
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.narrow {
  max-width: 680px;
}

.essay p {
  font-size: 1.08rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.theme-deception {
  background: var(--deception);
  color: var(--deception-ink);
}

.theme-deception .site-footer {
  border-top-color: #333;
  color: #bdbdbd;
}

.theme-deception .button {
  background: var(--deception-ink);
  color: var(--deception);
  border-color: var(--deception-ink);
}

.theme-deception .button-ghost {
  background: transparent;
  color: var(--deception-ink);
}

.theme-deception .lede,
.theme-deception .grid article {
  color: #d6d6d6;
}

.theme-deception .grid article {
  border-top-color: #333;
}

@media (max-width: 720px) {
  .split,
  .pair {
    grid-template-columns: 1fr;
  }

  .split a {
    min-height: 240px;
  }
}
