:root {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

main[data-ax-page] {
  padding: 0;
}

.legura-site {
  --ink: #20211e;
  --muted: #63635c;
  --copper: #ae6f4d;
  --paper: #f5f2eb;
  --line: #dcd7cd;
  --ax-bg: var(--paper);
  --ax-surface: #fffcf7;
  --ax-surface-2: #eee9df;
  --ax-text: var(--ink);
  --ax-text-soft: #43443e;
  --ax-text-muted: var(--muted);
  --ax-border: var(--line);
  --ax-primary: var(--copper);
  --ax-on-primary: #fffaf4;
  --ax-link: #8e5032;
  --ax-font-sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  font-family: var(--ax-font-sans);
}

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

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

.legura-site a {
  color: inherit;
  text-decoration: none;
}

.legura-site a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, .93);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section-wrap,
.site-footer__inner {
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-brand,
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -.055em;
}

.site-brand {
  font-size: 27px;
  flex: none;
}

.site-brand img,
.site-footer__brand img {
  display: block;
  border-radius: 8px;
}

.site-brand__period {
  color: var(--copper);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  margin-left: auto;
}

.site-nav a,
.site-header__github {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 9px 0;
  color: #55564f;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--copper);
}

.site-header__github {
  border: 1px solid #272923;
  padding: 11px 15px;
  transition: background .2s, color .2s;
}

.site-header__github:hover {
  background: #272923;
  color: #fff;
}

.site-header__github span,
.text-action span,
.inline-cta a span,
.download-card a span {
  margin-left: 8px;
  color: var(--copper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  min-height: 680px;
  overflow: hidden;
  background: radial-gradient(circle at 4% 80%, #e7ddcf 0, transparent 37%), var(--paper);
}

.hero__content {
  width: min(100% - 64px, 608px);
  margin-left: max(32px, calc((100vw - 1240px) / 2));
  padding: clamp(90px, 10vw, 164px) 0 80px;
  animation: rise-in .75s both;
}

.eyebrow,
.section-kicker,
.visual__rail,
.visual__paper-top,
.visual__paper-bottom,
.visual__category,
.story-card__index,
.story-card__foot,
.capabilities__grid > div > span,
.process-list article > span,
.roadmap-list__status,
.roadmap-list article > strong,
.download-card__label,
.inline-cta > span {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #895b43;
}

.eyebrow__line {
  width: 25px;
  height: 1px;
  background: var(--copper);
}

.hero h1,
.interior-hero h1 {
  margin: 29px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 6.6vw, 106px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .99;
}

.hero h1 em,
.interior-hero h1 em,
.section-intro h2 em,
.closing h2 em {
  color: var(--copper);
  font-weight: 400;
}

.hero__lead,
.interior-hero > p {
  max-width: 530px;
  color: #56554d;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
}

.hero__actions,
.closing__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero .ax-button,
.closing .ax-button {
  min-height: 49px;
  padding: 11px 22px;
  border: 1px solid #242521;
  border-radius: 2px;
  background: #242521;
  color: #fffaf4;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.hero .ax-button:hover,
.closing .ax-button:hover {
  background: #454139;
}

.text-action {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #b6a89b;
  padding-bottom: 5px;
}

.hero__note {
  margin-top: 38px;
  color: #817e75;
  font-size: 12px;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 620px;
  background: radial-gradient(circle at 76% 20%, #493932 0, transparent 34%), #242623;
  color: #e6e2d9;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  width: 670px;
  height: 670px;
  top: -82px;
  right: -310px;
}

.hero__visual::after {
  width: 490px;
  height: 490px;
  top: 20px;
  right: -220px;
}

.visual__rail {
  position: absolute;
  left: 35px;
  top: 50px;
  display: flex;
  gap: 20px;
  color: #8d9895;
  z-index: 1;
}

.visual__rail strong {
  color: #d6a183;
}

.visual__paper {
  position: relative;
  z-index: 2;
  width: min(70%, 430px);
  margin-top: 45px;
  transform: rotate(-4deg);
  background: #eee9dc;
  box-shadow: 23px 25px 0 #353936, 25px 27px 0 1px #68726c, 0 35px 80px #111a;
  color: #292824;
  animation: paper-in .9s .12s both;
}

.visual__paper-top,
.visual__paper-bottom {
  display: flex;
  justify-content: space-between;
  padding: 19px 25px;
  border-bottom: 1px solid #cac6ba;
  color: #6f7069;
}

.visual__paper-body {
  min-height: 310px;
  padding: 53px 33px 36px;
}

.visual__category {
  display: block;
  margin-bottom: 17px;
  color: #a06445;
}

.visual__paper-body strong {
  font: 400 clamp(24px, 2.5vw, 38px)/1.16 Georgia, serif;
  letter-spacing: -.045em;
}

.visual__rule {
  width: 34px;
  height: 3px;
  margin: 25px 0;
  background: #ba805e;
}

.visual__line {
  display: block;
  height: 4px;
  width: 88%;
  margin: 11px 0;
  background: #cfcbbf;
}

.visual__line--long { width: 100%; }
.visual__line--medium { width: 67%; }

.visual__paper-bottom {
  border-top: 1px solid #cac6ba;
  border-bottom: 0;
}

.visual__stamp {
  position: absolute;
  z-index: 3;
  bottom: 52px;
  right: 45px;
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  transform: rotate(12deg);
  border: 2px solid #bb8767;
  border-radius: 50%;
  color: #d4a184;
  font: 700 13px/1.35 Consolas, monospace;
  letter-spacing: .08em;
  text-align: center;
}

.story-section { padding-block: 132px 150px; }
.section-kicker { color: #a3684c; }

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 50px;
}

.section-intro .section-kicker { grid-column: 1 / -1; }

.section-intro h2,
.closing h2,
.capabilities h2 {
  margin: 22px 0 0;
  font: 400 clamp(45px, 4.2vw, 68px)/1.05 Georgia, serif;
  letter-spacing: -.06em;
}

.section-intro p,
.closing > p {
  max-width: 455px;
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}

.story-card {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px;
  border: 1px solid #d6d0c4;
  background: #e8e5db;
}

.story-card--dark {
  background: #292b28;
  border-color: #292b28;
  color: #f3efe5;
}

.story-card__index { color: #a06e54; }
.story-card__glyph { margin-top: 34px; color: var(--copper); font: 400 55px Georgia, serif; }
.story-card h3 { margin: 20px 0 10px; font: 400 36px Georgia, serif; letter-spacing: -.04em; }
.story-card p { max-width: 330px; color: #68655e; line-height: 1.65; }
.story-card--dark p { color: #c3beb2; }
.story-card__foot { margin-top: auto; padding-top: 28px; color: #9a6a4d; }

.capabilities {
  padding-block: 110px 130px;
  background: #eae5db;
  border-block: 1px solid #ded8cc;
}

.capabilities__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.capabilities h2 { font-size: clamp(40px, 3.8vw, 58px); }
.capabilities__heading .ax-badge { margin-bottom: 5px; }

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 65px;
}

.capabilities__grid > div { padding-top: 22px; border-top: 1px solid #bfb8aa; }
.capabilities__grid > div > span { color: var(--copper); }
.capabilities__grid h3 { margin: 32px 0 12px; font-size: 17px; letter-spacing: -.02em; }
.capabilities__grid p { max-width: 235px; color: #69675f; font-size: 14px; line-height: 1.7; }

.closing { padding-block: 130px 150px; }
.closing h2 { margin-bottom: 28px; }
.closing > p { max-width: 535px; }

.site-footer {
  background: #242623;
  color: #f1ede5;
}

.site-footer__inner {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__brand { font-size: 20px; }
.site-footer__inner > p { max-width: 300px; margin: 0; color: #b9b7ad; font-size: 13px; line-height: 1.6; }
.site-footer__links { display: flex; gap: 22px; font-size: 13px; }
.site-footer__links a:hover { color: #dda582; }

.interior-hero { padding-block: 105px 110px; }
.interior-hero h1 { font-size: clamp(60px, 6.2vw, 94px); }
.interior-hero > p { max-width: 670px; margin-bottom: 0; }

.process-list,
.roadmap-list { padding-bottom: 120px; }

.process-list article,
.roadmap-list article {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  padding: 37px 0;
  border-top: 1px solid #d1cbbf;
}

.process-list article > span,
.roadmap-list__status { padding-top: 8px; color: var(--copper); }
.process-list h2,
.roadmap-list h2,
.download-card h2 { margin: 0 0 12px; font: 400 clamp(27px, 3vw, 39px)/1.15 Georgia, serif; letter-spacing: -.045em; }
.process-list p,
.roadmap-list p,
.download-card p { max-width: 610px; margin-bottom: 0; color: #68655d; line-height: 1.7; }
.roadmap-list article { grid-template-columns: 210px 1fr 150px; }
.roadmap-list article > strong { padding-top: 8px; color: #68655d; text-align: right; }

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 120px;
  padding: 35px;
  border: 1px solid #d4c6b8;
  background: #ece5da;
}

.inline-cta > span { color: var(--copper); }
.inline-cta a { font: 400 24px Georgia, serif; }

.download-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding-bottom: 48px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 320px;
  padding: 40px;
  border: 1px solid #d3cbbf;
  background: #ebe7df;
}

.download-card--primary {
  border-color: #282a27;
  background: #282a27;
  color: #f4efe5;
}

.download-card__label { margin-bottom: 45px; color: var(--copper); }
.download-card--primary .download-card__label { color: #dea585; }
.download-card--primary p { color: #c1bcb1; }
.download-card a { margin-top: auto; padding-top: 30px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.download-footnote { padding-bottom: 110px; color: #66635c; font-size: 14px; }
.download-footnote a { color: #8c4e30; text-decoration: underline; text-underline-offset: 4px; }
.state-page { min-height: 66vh; }
.state-page .text-action { display: inline-block; margin-top: 30px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes paper-in { from { opacity: 0; transform: rotate(-8deg) translateY(30px); } to { opacity: 1; transform: rotate(-4deg) translateY(0); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__content {
    width: min(100% - 64px, 780px);
    margin-inline: auto;
    padding-block: 95px 90px;
  }
  .hero__visual { min-height: 510px; }
  .hero h1 { font-size: clamp(68px, 9vw, 96px); }
  .site-header__github { display: none; }
  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
  .visual__rail { left: 20px; gap: 10px; font-size: 9px; }
  .visual__paper { width: 78%; }
  .visual__stamp { width: 80px; height: 80px; right: 20px; bottom: 28px; font-size: 10px; }
}

@media (max-width: 720px) {
  .site-header__inner,
  .section-wrap,
  .site-footer__inner { width: min(100% - 36px, 1240px); }
  .site-header__inner { min-height: 72px; flex-wrap: wrap; gap: 4px 14px; padding-block: 13px; }
  .site-brand { font-size: 24px; }
  .site-nav { width: 100%; order: 2; gap: 22px; overflow-x: auto; margin-left: 0; padding: 7px 0 1px; }
  .site-nav a { font-size: 12px; flex: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__content { width: min(100% - 36px, 608px); margin-inline: auto; padding: 78px 0 72px; }
  .hero h1 { font-size: clamp(60px, 11vw, 85px); }
  .hero__visual { min-height: 460px; }
  .visual__paper { width: min(67%, 390px); margin-top: 30px; }
  .visual__paper-body { min-height: 230px; padding: 35px 24px; }
  .visual__paper-body strong { font-size: 26px; }
  .story-section { padding-block: 85px; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro p { margin-top: 24px; }
  .story-grid,
  .download-grid { grid-template-columns: 1fr; }
  .story-grid { margin-top: 38px; }
  .story-card { min-height: 310px; }
  .capabilities { padding-block: 80px; }
  .capabilities__heading { align-items: start; flex-direction: column; }
  .capabilities__grid { gap: 25px; margin-top: 40px; }
  .closing { padding-block: 85px; }
  .site-footer__inner { flex-wrap: wrap; padding-block: 38px; min-height: 0; }
  .site-footer__inner > p { order: 3; width: 100%; }
  .interior-hero { padding-block: 80px; }
  .process-list article,
  .roadmap-list article { grid-template-columns: 1fr; gap: 14px; }
  .roadmap-list article > strong { text-align: left; }
  .process-list,
  .roadmap-list { padding-bottom: 60px; }
  .download-card { min-height: 300px; }
  .inline-cta { margin-bottom: 80px; flex-direction: column; align-items: start; }
}

@media (max-width: 460px) {
  .hero__actions,
  .closing__actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .visual__paper { width: 70%; }
  .visual__paper-top,
  .visual__paper-bottom { padding: 12px 14px; font-size: 8px; }
  .visual__paper-body { min-height: 215px; padding: 30px 17px; }
  .visual__paper-body strong { font-size: 22px; }
  .visual__stamp { right: 9px; }
  .story-card,
  .download-card { padding: 28px; }
  .capabilities__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .hero__content,
  .visual__paper { animation: none; }
}
