:root {
  --ink: #171717;
  --muted: #6c6c66;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: #ddddd6;
  --accent: #9a5b3f;
  --soft: #efede7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.brand-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hero,
.writing,
.outputs,
.matrix,
.direction {
  padding: clamp(54px, 8vw, 112px) clamp(20px, 6vw, 84px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(36px, 6vw, 92px);
  min-height: calc(100vh - 76px);
  align-items: end;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 23, 23, 0.03) 1px, transparent 1px),
    var(--white);
  background-size: 64px 64px;
}

.hero-main {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.2vw, 108px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: #3f3f3a;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-index {
  display: grid;
  border-top: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.hero-index .eyebrow {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-index a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-index span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.hero-index strong {
  font-size: 18px;
}

.hero-index small {
  color: var(--muted);
  font-size: 14px;
}

.section-label {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 54px);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1;
}

.writing {
  border-top: 1px solid var(--line);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.writing-card {
  min-height: 330px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.writing-card.feature {
  grid-column: span 2;
  background: #fbfaf6;
}

.writing-card span,
.output-row span,
.domain {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.writing-card h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
}

.writing-card p {
  color: #464641;
  line-height: 1.62;
}

.writing-card a {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
}

.outputs {
  border-top: 1px solid var(--line);
  background: var(--white);
}

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

.output-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.output-row span {
  margin: 0;
}

.output-row strong {
  font-size: clamp(20px, 2vw, 30px);
}

.output-row em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.output-row:hover,
.product-card:hover {
  background: #fbfaf6;
}

.matrix {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.matrix-head {
  max-width: 1120px;
  margin-bottom: 34px;
}

.matrix-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: #464641;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  min-height: 300px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.product-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  background: #fbfaf6;
}

.product-meta {
  display: contents;
}

.domain {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.status-pill {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-note {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.product-card h3 {
  grid-column: 1 / -1;
  margin: 4px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
}

.product-card.featured h3 {
  max-width: 8ch;
  font-size: clamp(48px, 6.6vw, 88px);
  line-height: 0.96;
}

.product-card p {
  grid-column: 1 / -1;
  max-width: 720px;
  margin-bottom: 0;
  color: #464641;
  font-size: 15px;
  line-height: 1.55;
}

.product-card.featured p {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 22px);
}

.tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  padding-top: 0;
}

.tag {
  color: var(--muted);
  font-size: 12px;
}

.tag::before {
  content: "#";
  color: var(--accent);
}

.product-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 700;
}

.product-link::after {
  content: "->";
  color: var(--accent);
}

.direction {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.direction p:not(.eyebrow) {
  max-width: 760px;
  color: #464641;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.site-footer strong {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .hero,
  .section-label {
    grid-template-columns: 1fr;
  }

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

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

  .writing-card.feature {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .brand-icon {
    width: 22px;
    height: 22px;
  }

  .hero {
    min-height: auto;
  }

  .writing-grid,
  .product-grid,
  .output-row {
    grid-template-columns: 1fr;
  }

  .writing-card.feature,
  .product-card.featured {
    grid-column: auto;
    grid-row: auto;
  }
}
