:root {
  --ink: #1a1612;
  --cream: #f5efe4;
  --accent: #b8531f;
  --ink-deep: #100c09;
  --ink-warm: #3d2418;
  --muted: #8a7e70;
  --rule: rgba(26, 22, 18, 0.14);
  --rule-dark: rgba(245, 239, 228, 0.14);
  --paper: #fffaf1;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
}

.skip:focus {
  left: 12px;
}

.syntax {
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 48px 0 88px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 66% 38%, var(--paper) 0, var(--cream) 58%, #ebe2d2 100%);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.kicker,
.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace,
    monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kicker {
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.18em;
  margin-bottom: 28px;
}

.hero h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-inline-end: clamp(24px, 8vw, 160px);
}

.hero h1 em,
h2 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.lede {
  margin: 32px 0 0;
  color: #50483f;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--cream);
  background: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(26, 22, 18, 0.32);
  transition: border-color 160ms ease;
}

.text-link:hover {
  border-color: var(--ink);
}

.section {
  padding: 108px 0;
}

.section-cream {
  background: var(--cream);
}

.section-ink {
  color: var(--cream);
  background: var(--ink);
}

.split,
.work-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 78px;
  align-items: start;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  column-gap: 78px;
  row-gap: 0;
  align-items: center;
}

.contact-panel > .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
}

.copy-stack,
.work-copy,
.contact-copy {
  color: #50483f;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.58;
}

.contact-panel h2 {
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.02;
}

#work.section {
  padding: 72px 0;
}

#contact.section {
  padding: 64px 0;
}

.copy-stack p,
.work-copy p,
.contact-copy p {
  margin: 0;
}

.copy-stack p + p,
.contact-copy p + p {
  margin-top: 24px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 66px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: #50483f;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.58;
}

.section-ink .eyebrow,
.section-ink .work-copy {
  color: rgba(245, 239, 228, 0.68);
}

.work-copy {
  max-width: 640px;
}

.chitra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 36px;
  padding: 28px 32px;
  background: rgba(232, 168, 122, 0.22);
  border: 1px solid rgba(232, 168, 122, 0.45);
  border-radius: 20px;
  transition: background 200ms ease, border-color 200ms ease,
    transform 200ms ease;
}

.chitra-link:hover {
  background: rgba(232, 168, 122, 0.32);
  border-color: rgba(232, 168, 122, 0.65);
  transform: translateY(-2px);
}

.chitra-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chitra-arrow {
  width: 44px;
  height: 16px;
  color: var(--accent);
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.chitra-link:hover .chitra-arrow {
  transform: translateX(6px);
}

.chitra-wordmark {
  color: #f7f1e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.chitra-wordmark span {
  color: #b8503c;
  font-style: italic;
  font-weight: 400;
}

.chitra-meta {
  color: rgba(245, 239, 228, 0.62);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace,
    monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-copy a {
  border-bottom: 1px solid rgba(26, 22, 18, 0.32);
  font-weight: 600;
}

.contact-copy a:hover {
  border-color: var(--ink);
}

.fine-print {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 30px 0;
  color: rgba(245, 239, 228, 0.58);
  background: var(--ink-deep);
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-row p {
  margin: 0;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-row a:not(.social-link) {
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 239, 228, 0.26);
}

.social-link {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: rgba(245, 239, 228, 0.58);
  transition: color 160ms ease, transform 160ms ease;
}

.social-link:hover {
  color: var(--cream);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  border-bottom: 0;
}

.footer-brand img {
  display: block;
  width: 240px;
  height: auto;
}

.footer-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-trader {
  margin: 0;
  color: rgba(245, 239, 228, 0.42);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: right;
}

.legal-page {
  padding: 88px 0 96px;
  background: var(--cream);
  color: var(--ink);
  min-height: 100svh;
}

.legal-article {
  max-width: 720px;
}

.legal-article h1 {
  margin: 6px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.legal-article h2 {
  margin: 56px 0 14px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.legal-article p {
  margin: 0 0 16px;
  color: #50483f;
  font-size: 17px;
  line-height: 1.7;
}

.legal-article ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #50483f;
  font-size: 17px;
  line-height: 1.7;
}

.legal-article a {
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 22, 18, 0.32);
  font-weight: 600;
}

.legal-article a:hover {
  border-color: var(--ink);
}

.legal-effective {
  margin: 0 0 36px;
  color: var(--muted);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace,
    monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-address {
  display: block;
  margin: 18px 0 0;
  color: var(--ink);
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .split,
  .work-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }

  .contact-panel > .eyebrow {
    margin-bottom: 0;
  }
}

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

  .hero {
    padding: 32px 0 64px;
  }

  .footer-brand img {
    width: 192px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .section {
    padding: 76px 0;
  }

  #work.section {
    padding: 56px 0;
  }

  #contact.section {
    padding: 48px 0;
  }

  .chitra-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-end {
    align-items: flex-start;
    width: 100%;
  }

  .footer-trader {
    text-align: left;
  }

  .legal-page {
    padding: 56px 0 64px;
  }
}
