:root {
  --ink: #0a0a0a;
  --paper: #f3f3f3;
  --white: #fff;
  --grey: #e8e8e8;
  --muted: #6b6b6b;
  --yellow: #ffdc00;
  --line: 1px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 56px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Switzer", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol { margin: 0; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: stretch;
  height: 56px;
  background: var(--white);
  border-bottom: var(--line);
}

.logo { display: flex; align-items: center; padding: 0 24px; font-size: 22px; font-weight: 700; letter-spacing: -0.05em; }

.nav-links { display: flex; align-items: center; gap: 28px; padding: 0 28px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-time { display: flex; align-items: center; padding: 0 24px; border-left: var(--line); color: var(--muted); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--yellow); color: var(--ink); }

.nav-menu { display: none; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(300px, 46vh) minmax(220px, 30vh);
  border-bottom: var(--line);
}

.hero-title {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: var(--line);
}
.hero-title p { color: var(--muted); }
.hero-title h1 {
  font-size: clamp(72px, 12.5vw, 200px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.065em;
  margin-left: -0.04em;
}

.hero-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.hero-block p { font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; max-width: 24ch; }
.hero-block.black { background: var(--ink); color: var(--white); }
.hero-block.yellow { background: var(--yellow); border-top: var(--line); }

.block-link { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.block-link span { transition: transform 0.25s; }
.hero-block:hover .block-link span { transform: translateX(6px); }

/* Sections */

.section { border-bottom: var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line);
}
.section-head h2 {
  padding: 96px 24px 24px;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  border-right: var(--line);
}
.section-head p { align-self: end; padding: 24px; font-size: 19px; max-width: 34ch; }

/* Company index */

.index { list-style: none; padding: 0; background: var(--white); }

.index a {
  display: grid;
  grid-template-columns: 80px 1fr 1.3fr 200px;
  align-items: baseline;
  gap: 24px;
  padding: 26px 24px;
  border-bottom: var(--line);
  transition: background 0.2s;
}
.index li:last-child a { border-bottom: none; }
.index a[href]:hover { background: var(--yellow); }

.index .mono { color: var(--muted); }
.index strong { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.index .desc { font-size: 17px; color: #333; max-width: 42ch; }
.index .kind { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.index a[href]:hover .kind { color: var(--ink); }
.index .arrow { transition: transform 0.25s; }
.index a[href]:hover .arrow { transform: translateX(6px); }

/* Giving */

.giving .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 0;
  background-color: var(--white);
  background-image: repeating-linear-gradient(115deg, transparent 0 5px, rgba(0, 0, 0, 0.05) 5px 6px);
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  padding: 24px;
}
.step h3 { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.step p { font-size: 17px; max-width: 28ch; }
.step:nth-child(2) { margin-top: 120px; }
.step:nth-child(3) { margin-top: 240px; }
.step.yellow { background: var(--yellow); }
.step.black { background: var(--ink); color: var(--white); }
.step.grey { background: var(--grey); border-left: var(--line); border-top: var(--line); }

/* Letter */

.letter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.letter > .mono { padding: 24px; color: var(--muted); border-right: var(--line); }
.letter-body { padding: 96px 24px; }
.letter-body > p { font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.letter-body > p + p { margin-top: 20px; }
.signature { font-family: "Mrs Saint Delafield", cursive; font-size: 72px; line-height: 1; margin-top: 48px; }
.sign-name { font-size: 15px !important; font-weight: 500 !important; padding-top: 12px; margin-top: 4px !important; border-top: var(--line); max-width: 280px !important; }

/* Footer */

.footer { background: var(--ink); color: var(--white); overflow: hidden; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #333;
}
.footer-top > div { padding: 24px 24px 64px; }
.footer-top > div:first-child { border-right: 1px solid #333; }
.footer-top .mono { color: #8a8a8a; margin-bottom: 40px; }
.footer-email { font-size: clamp(28px, 3.4vw, 52px); font-weight: 500; letter-spacing: -0.04em; transition: color 0.2s; }
.footer-email:hover { color: var(--yellow); }
.footer-meta { align-self: end; font-size: 17px; color: #bdbdbd; }

.footer-mark {
  font-size: 31.5vw;
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.78;
  padding: 40px 0 0;
  margin-left: -0.03em;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid #333;
  color: #8a8a8a;
}
.footer-bottom a:hover { color: var(--white); }

/* Reveal */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-time, .nav-cta { display: none; }
  .nav-menu {
    display: block;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 0 20px;
    background: var(--ink);
    color: var(--white);
    border: none;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--white);
    border-bottom: var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 20px; border-top: var(--line); font-size: 18px; }
  .nav-links a::after { display: none; }

  .logo { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-title { grid-row: auto; min-height: 280px; border-right: none; border-bottom: var(--line); padding: 20px; }
  .hero-block { min-height: 220px; padding: 20px; gap: 40px; }

  .section-head, .letter, .footer-top { grid-template-columns: 1fr; }
  .section-head h2 { padding: 64px 20px 16px; border-right: none; }
  .section-head p { padding: 0 20px 24px; }

  .index a { grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 20px; }
  .index .desc, .index .kind { grid-column: 2; }

  .giving .steps { grid-template-columns: 1fr; }
  .step { min-height: 220px; margin-top: 0 !important; padding: 20px; }
  .step.grey { border-left: none; }

  .letter > .mono { border-right: none; border-bottom: var(--line); padding: 20px; }
  .letter-body { padding: 48px 20px 56px; }
  .signature { font-size: 56px; }

  .footer-top > div { padding: 20px 20px 40px; }
  .footer-top > div:first-child { border-right: none; border-bottom: 1px solid #333; }
  .footer-bottom { padding: 16px 20px; }
}
