:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #1f3028;
  background: #f9f7ef;
  line-height: 1.6;
  --ink: #1f3028;
  --forest: #173a2c;
  --muted: #4d5e53;
  --line: #d9ddd1;
  --accent: #cbe99d;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #50854a; outline-offset: 5px; }
.shell { width: min(76rem, calc(100% - 5rem)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.45rem; }
.masthead { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-weight: 800; font-size: 1.27rem; letter-spacing: -.055em; text-decoration: none; }
.mark { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; color: var(--accent); background: var(--forest); border-radius: .42rem; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.8rem); }
nav a, .nav-contact { font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover, .nav-contact:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.07fr; align-items: center; gap: clamp(2.4rem, 5vw, 6rem); padding-block: clamp(3rem, 8vw, 7.5rem); }
.eyebrow { display: flex; align-items: center; gap: .4rem; margin: 0 0 1.1rem; color: #37584a; font-size: .74rem; font-weight: 750; letter-spacing: .13em; }
.eyebrow span { width: .65rem; height: .65rem; border-radius: 50%; margin-right: .25rem; background: #58804b; }
h1, h2, h3 { line-height: 1.04; margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 5.6vw, 6.2rem); }
h1 em { color: #3d674d; font-weight: inherit; }
h2 { font-size: clamp(2.5rem, 4.5vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.045em; }
p { max-width: 57ch; }
.lead { color: var(--muted); font-size: clamp(1.03rem, 1.45vw, 1.19rem); margin-block: 1.55rem; }
.button { display: inline-flex; align-items: center; gap: 1.1rem; padding: .76rem 1.12rem; border-radius: .42rem; color: white; background: var(--forest); font-size: .94rem; font-weight: 680; text-decoration: none; }
.button:hover { background: #28543f; }
.hero-visual { position: relative; margin: 0; padding-bottom: 1.6rem; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .6rem; }
.hero-visual figcaption { position: absolute; right: 1rem; bottom: 0; display: flex; align-items: center; gap: .75rem; max-width: calc(100% - 2rem); background: var(--accent); border-radius: .45rem; padding: .65rem .9rem; box-shadow: 0 7px 22px #101e1728; }
.hero-visual figcaption strong { font-size: 1.45rem; }
.hero-visual small { display: block; }
.flow-section { padding-block: clamp(3.4rem, 7vw, 6.2rem); background: #e9eee2; border-block: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: 1rem 3rem; margin-bottom: 2rem; }
.section-intro p, .flow-card > p:not(.direction), .api-section p, dd { color: var(--muted); }
.flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.flow-card { display: flex; flex-direction: column; border: 1px solid #d2dbcc; background: #fdfcf6; border-radius: .6rem; padding: clamp(1.15rem, 3vw, 2rem); }
.direction { margin: 0 0 .8rem; font-size: .83rem; font-weight: 750; color: #406652; }
.direction span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .25rem; border-radius: 50%; background: #e0eddb; }
.example { margin: auto 0 0; min-width: 0; border-radius: .45rem; overflow: hidden; }
.example figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; padding: .55rem .8rem; font-size: .73rem; }
.example-data { background: #17342a; color: #eef3e8; }
.example-data figcaption { border-bottom: 1px solid #416252; }
pre { margin: 0; padding: .8rem; overflow: auto; font-size: clamp(.71rem, 1.2vw, .87rem); }
pre span { color: var(--accent); }
.example-paper { background: #e7ebdb; }
.paper { background: #fffefa; width: min(19rem, calc(100% - 1.6rem)); margin: .3rem auto 1rem; padding: .7rem .9rem; border-radius: .2rem; box-shadow: 0 4px 12px #1f302818; }
.paper div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .7rem; padding-block: .42rem; font-size: .85rem; }
.paper div + div { border-top: 1px solid var(--line); }
.api-section { display: grid; grid-template-columns: 1fr .85fr; gap: 2rem 3rem; align-items: start; padding-block: clamp(3rem, 8vw, 6rem); }
.api-spec { padding-left: 1.5rem; border-left: 1px solid var(--line); overflow-wrap: anywhere; }
dt { font-weight: 650; }
dd { margin: .15rem 0 .85rem; }
.button-light { color: var(--ink); background: var(--accent); }
.button-light:hover { background: #b9d987; }
.footer { border-top: 1px solid var(--line); font-size: .86rem; }
@media (max-width: 55rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { gap: 1.65rem; }
}
@media (max-width: 42rem) {
  .masthead { flex-wrap: wrap; gap: .8rem 1rem; }
  .nav-contact { display: none; }
  .hero, .section-intro, .flow-grid, .api-section { grid-template-columns: minmax(0, 1fr); }
  .section-intro p { margin: 0; }
  .api-spec { border-left: 0; padding: 1.15rem 0 0; border-top: 1px solid var(--line); }
}
