:root {
  --ink: #1c1915;
  --muted: #5c564e;
  --line: #ddd4c4;
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --cream: #f7f3eb;
  --forest: #12312c;
  --forest-2: #1b433a;
  --clay: #8e341c;
  --clay-deep: #732a16;
  --gold: #a68446;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.06);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --tamil: "Noto Sans Tamil", "Tamil MN", "Noto Sans Tamil UI", sans-serif;
  --wrap: 1120px;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}

h2,
h3,
[id] {
  scroll-margin-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span[lang="ta"] {
  font-family: var(--tamil);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

h1,
h2,
.footer-mark,
.wordmark strong,
.hero-panel li,
.prose h2,
.prose blockquote {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 0.28rem;
}

.wordmark strong {
  font-size: 1.45rem;
}

.wordmark span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  color: var(--clay);
  box-shadow: inset 0 -2px 0 var(--clay);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.15s ease, top 0.15s ease, background 0.15s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(166, 132, 70, 0.28), transparent 46%),
    radial-gradient(ellipse at 0% 100%, rgba(142, 52, 28, 0.22), transparent 42%),
    var(--forest);
  color: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.7fr);
  gap: 3rem;
  align-items: end;
  padding: 4.5rem 0 4rem;
}

.hero .lede {
  color: rgba(247, 243, 235, 0.82);
}

.hero .eyebrow {
  color: #e4c9a4;
}

.hero-actions,
.door-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-actions {
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.btn-light {
  background: var(--cream);
  color: var(--forest);
}

.btn-light:hover {
  background: white;
}

.btn-line {
  border-color: rgba(247, 243, 235, 0.45);
  color: var(--cream);
}

.btn-line:hover {
  border-color: var(--cream);
}

.btn-line.dark {
  border-color: var(--forest);
  color: var(--forest);
}

.btn-clay {
  background: var(--clay);
  color: var(--cream);
}

.btn-clay:hover {
  background: var(--clay-deep);
}

.hero-panel {
  border: 1px solid rgba(247, 243, 235, 0.22);
  padding: 1.25rem 1.35rem 0.4rem;
  background: rgba(8, 24, 21, 0.18);
}

.hero-panel-label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e4c9a4;
}

.hero-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: held;
}

.hero-panel li {
  counter-increment: held;
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(247, 243, 235, 0.16);
  font-size: 1.35rem;
  line-height: 1.25;
}

.hero-panel li::before {
  content: counter(held, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #e4c9a4;
}

.band {
  padding: 4.5rem 0;
}

.band-warm {
  background: var(--paper-2);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.door {
  padding: 1.35rem 1.25rem 1.2rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.door-kicker {
  margin-bottom: 0.7rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.door h3 {
  margin-bottom: 0.55rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

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

.door-links {
  margin-top: 1.1rem;
}

.door-links a,
.text-link {
  color: var(--clay);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.text-link.light {
  color: #f0d7b0;
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}

.split-intro {
  position: sticky;
  top: calc(var(--header) + 1.5rem);
}

.split-intro p:last-of-type {
  color: var(--muted);
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li + li {
  border-top: 1px solid var(--line);
}

.work-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0.2rem;
  text-decoration: none;
}

.work-list a:hover h3 {
  color: var(--clay);
}

.idx {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--clay);
}

.work-copy h3 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.work-copy p {
  margin: 0;
  color: var(--muted);
}

.go {
  font-size: 1.25rem;
  color: var(--clay);
}

.statement {
  background: var(--forest);
  color: var(--cream);
  padding: 4.5rem 0;
}

.statement .eyebrow {
  color: #e4c9a4;
}

.statement blockquote {
  margin: 0 0 1.5rem;
  max-width: 48rem;
}

.statement blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.invite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.invite-copy p {
  color: var(--muted);
  font-size: 1.15rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(166, 132, 70, 0.12), transparent 70%),
    var(--paper);
}

.page-hero-inner {
  max-width: 46rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.prose-wrap,
.work-index {
  padding: 2.5rem 0 4.5rem;
}

.prose {
  max-width: 42rem;
}

.work-index-intro {
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: 1.85rem;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  font-size: 1.08rem;
}

.prose a {
  color: var(--clay);
  text-underline-offset: 0.18em;
}

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

.prose li + li {
  margin-top: 0.35rem;
}

.prose blockquote {
  margin: 1.2rem 0 1.4rem;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 3px solid var(--gold);
}

.prose blockquote p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.45;
}

.email-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  align-items: baseline;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
}

.email-line span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.more-work {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}

.more-work h2 {
  font-size: 1.35rem;
}

.more-work ul,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more-work li + li,
.plain-list li + li {
  border-top: 1px solid var(--line);
}

.more-work a,
.plain-list a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  font-weight: 600;
}

.more-work a:hover,
.plain-list a:hover {
  color: var(--clay);
}

.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2rem;
}

.footer-mark {
  margin-bottom: 0.45rem;
  font-size: 1.7rem;
}

.footer-mark span {
  font-family: var(--tamil);
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-left: 0.35rem;
}

.footer-brand p:last-child,
.footer-note p {
  margin-bottom: 0;
  color: rgba(247, 243, 235, 0.78);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a,
.footer-note a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover,
.footer-note a:hover {
  color: #e4c9a4;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .invite,
  .door-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-intro {
    position: static;
  }

  .hero-grid {
    padding: 3rem 0 2.5rem;
    gap: 2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header-inner {
    position: static;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.15rem 1.25rem 0.85rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(18, 49, 44, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .work-list a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .go {
    display: none;
  }

  .band,
  .statement {
    padding: 3rem 0;
  }
}

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

  .burger,
  .burger::before,
  .burger::after {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-actions,
  .more-work {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .statement,
  .site-footer {
    background: white;
    color: black;
  }
}
