@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --muted: #5c5c5c;
  --faint: #e6e6e6;
  --radius: 28px;
  --pad: clamp(1rem, 4vw, 3rem);
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 0;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem var(--pad) 0.75rem;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.navrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
  min-width: 0;
}

.menu {
  flex: 1 1 auto;
  min-width: 0;
}

.menu ol {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0.1rem 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu ol::-webkit-scrollbar {
  display: none;
}

.menu li {
  flex: 0 0 auto;
}

.menu a,
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.contact-pill:hover,
.contact-pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.contact-pill {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--paper);
}

.contact-pill:hover,
.contact-pill:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 45vh;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.hero-copy {
  width: min(100%, 920px);
  padding-bottom: 0.5rem;
}

.hero h1 {
  max-width: 15ch;
  margin: 0 auto 1rem;
  font-size: clamp(2.5rem, 8.2vw, 5.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 52ch;
  margin: 0 auto 1.6rem;
  color: #d7d7d7;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--paper);
  color: var(--ink);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: transparent;
  color: var(--paper);
}

.btn-line {
  background: transparent;
  color: var(--paper);
}

.btn-line:hover,
.btn-line:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.hero-media {
  width: min(100%, var(--wrap));
  margin: 2rem auto 0;
  border-bottom: 12px solid var(--paper);
}

.hero-media .hero-img {
  display: block;
  width: 100%;
  height: clamp(190px, 31vh, 350px);
  object-fit: cover;
  clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 100%);
}

.wrap {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--pad);
}

.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.6rem, 4vw, 3.8rem);
  align-items: start;
}

.prose {
  min-width: 0;
  max-width: 720px;
}

.prose > article {
  padding: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 9.5rem;
}

.prose > article:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose > article:last-child {
  padding-bottom: 0;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose > article:first-child > p:first-of-type::first-letter {
  float: left;
  padding: 0.08em 0.14em 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.15em;
  font-weight: 700;
  line-height: 0.8;
}

.prose h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  font-weight: 700;
}

.prose h3 {
  margin: 2rem 0 0.8rem;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  padding-bottom: 0.12em;
  border-bottom: 3px solid var(--line);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 7px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.prose blockquote p {
  max-width: 30ch;
  margin-bottom: 0.6rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.prose hr {
  height: 4px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--ink);
}

.rail {
  position: sticky;
  top: 9.5rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.rail-block {
  padding: 1.15rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.rail-block h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.rail-block h2 > span {
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--line);
}

.rail-list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid var(--faint);
  font-weight: 500;
  text-decoration: none;
  transition: padding-left 160ms ease, border-color 160ms ease;
}

.rail-list li:last-child a {
  border-bottom: 0;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  padding-left: 0.45rem;
  border-color: var(--ink);
}

.rail-brand {
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.rail-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.rail-link:hover,
.rail-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.site-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: clamp(1.6rem, 4vw, 3.2rem) var(--pad) 1.2rem;
  background: var(--ink);
  color: var(--paper);
}

.foot-col {
  min-width: 0;
}

.foot-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.25;
}

.foot-col h3 > span {
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--paper);
}

.foot-col p {
  margin: 0;
  color: #cfcfcf;
}

.foot-keyword {
  max-width: 22ch;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--paper) !important;
}

.foot-nav {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a,
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
  transition: border-color 160ms ease, padding-left 160ms ease;
}

.foot-nav a {
  width: 100%;
}

.foot-nav a:hover,
.foot-nav a:focus-visible,
.foot-link:hover,
.foot-link:focus-visible {
  border-color: var(--paper);
  padding-left: 0.3rem;
}

.colophon {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid #3a3a3a;
  color: #cfcfcf;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .reading {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose {
    max-width: 100%;
  }

  .rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }
}

@media (max-width: 680px) {
  .brandrow {
    min-height: 44px;
  }

  .hero {
    min-height: 48vh;
    padding-top: 1.8rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .prose > article {
    scroll-margin-top: 10rem;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .foot-nav a,
  .foot-link {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .menu a,
  .contact-pill {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
