:root {
  --paper: #f8f6ee;
  --ink: #222b22;
  --deep: #15291f;
  --muted: #545d4e;
  --line: #d6d9c9;
  --lime: #dded91;
  --forest: #294635;
  --white: #fffdf7;
  --serif: Georgia,'Times New Roman',serif;
  --sans: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,input,select,textarea {
  font: inherit;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #98763a;
  outline-offset: 4px;
}

.wrap {
  max-width: 1240px;
  padding-inline: clamp(19px,4vw,57px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -6rem;
  background: var(--white);
  padding: .75rem;
  z-index: 5;
}

.skip:focus {
  top: .75rem;
}

.site-head,.site-foot {
  background: var(--deep);
  color: var(--paper);
}

.site-head .wrap,.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-head .wrap {
  min-height: 73px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--lime);
  color: var(--deep);
  border-radius: 50%;
  font: italic 700 22px/1 var(--serif);
  letter-spacing: -.07em;
}

.site-nav,.footer-links {
  display: flex;
  gap: clamp(12px,3vw,34px);
  flex-wrap: wrap;
}

.site-nav a,.footer-links a {
  font-size: .87rem;
  text-decoration: none;
}

.site-nav a[aria-current],.site-nav a:hover,.footer-links a:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: .4em;
}

.site-foot .wrap {
  padding-block: 33px;
}

.site-foot p {
  margin: .55rem 0 0;
  color: #d3dacb;
  font-size: .83rem;
}

.hero {
  background: #ecefe2;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr);
  gap: clamp(18px,4vw,69px);
  align-items: center;
  padding-block: clamp(49px,6vw,91px);
}

.eyebrow {
  display: block;
  color: #485845;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 720;
  margin: 0 0 15px;
}

.hero h1,.page-title h1 {
  font: 400 clamp(4rem,7.8vw,7.7rem)/.87 var(--serif);
  letter-spacing: -.074em;
  margin: 0 0 27px;
}

.hero h1 em {
  font-weight: 400;
  color: #446052;
}

.hero p,.page-title p {
  max-width: 37ch;
  font-size: clamp(1rem,1.7vw,1.2rem);
  color: var(--muted);
  margin: 0 0 27px;
}

.actions {
  display: flex;
  gap: .7rem;
  align-items: center;
  flex-wrap: wrap;
}

.button,button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: .63rem 1rem;
  border: 1px solid var(--deep);
  background: var(--deep);
  color: var(--white);
  font-size: .87rem;
  font-weight: 675;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background: #304d3b;
}

.button.ghost {
  background: transparent;
  color: var(--deep);
}

.button.ghost:hover {
  background: #e2e7d7;
}

.button[disabled] {
  opacity: .7;
  cursor: wait;
}

.showcase {
  display: grid;
  grid-template-columns: 1.24fr .92fr;
  gap: 13px;
  position: relative;
  align-items: start;
  padding-bottom: 42px;
}

.showcase figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 9px 30px #23362720;
  background: #f5f1e4;
}

.showcase figure:nth-child(2) {
  margin-top: 42px;
}

.showcase img {
  width: 100%;
  aspect-ratio: 4/4.8;
  object-fit: cover;
  object-position: top;
}

.showcase figcaption {
  display: flex;
  justify-content: space-between;
  gap: .5em;
  font-size: clamp(.55rem,1.1vw,.76rem);
  padding: .52rem .66rem;
  color: #2c3730;
}

.showcase figcaption span:last-child {
  color: #536052;
}

.showcase figure:nth-child(2) figcaption {
  background: #eef1e5;
}

.section {
  padding-block: clamp(54px,8vw,103px);
}

.section h2,.card h2,.side-card h2,.doc h2 {
  font: 400 clamp(2rem,4vw,4.4rem)/1.02 var(--serif);
  letter-spacing: -.048em;
  margin: 0;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 25px;
}

.section-intro p {
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.card>img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  object-position: 50% 35%;
}

.card .copy {
  padding: clamp(18px,3vw,33px);
}

.card h2 {
  font-size: clamp(1.9rem,4vw,3.2rem);
}

.card p {
  color: var(--muted);
  margin: .7em 0 1em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 650;
  text-underline-offset: .25em;
}

.demo-note {
  font-size: .86rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.more {
  background: #e7ecdd;
}

.more .wrap {
  display: grid;
  grid-template-columns: 1.07fr 1fr 1fr;
  gap: clamp(18px,4vw,53px);
  align-items: start;
  padding-block: 48px;
}

.more h2 {
  font: 400 2.4rem/1.05 var(--serif);
  letter-spacing: -.04em;
  margin: 0;
}

.more h3 {
  font-size: 1.07rem;
  margin: 0;
}

.more p {
  font-size: .94rem;
  color: var(--muted);
  margin: .45em 0;
}

.page-title {
  background: #e9eddf;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(38px,6vw,74px);
}

.page-title h1 {
  font-size: clamp(3rem,7vw,6.2rem);
}

.page-title p {
  margin-bottom: 0;
}

.page-title .text-link {
  margin-top: 10px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(210px,300px);
  gap: clamp(25px,7vw,92px);
  align-items: start;
  padding-block: clamp(32px,6vw,68px);
}

.toc,.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}

.toc h2,.side-card h2 {
  margin: 0;
  font-size: 1.7rem;
}

.toc ol {
  padding-inline-start: 1.4em;
  margin-bottom: 0;
}

.toc a,.doc a {
  text-underline-offset: .24em;
}

.toc li+li {
  margin-top: .4em;
}

.doc {
  min-width: 0;
}

.doc section {
  scroll-margin-top: 18px;
}

.doc section+section {
  padding-top: 1.55rem;
  margin-top: 1.55rem;
  border-top: 1px solid var(--line);
}

.doc h2 {
  font-size: clamp(1.7rem,3.5vw,2.7rem);
}

.doc p,.doc ul,.doc ol {
  margin: .65em 0;
  color: #374437;
}

.doc code {
  white-space: nowrap;
  background: #e8ebdb;
  padding: 0 .22em;
  border-radius: 2px;
  font-size: .88em;
}

.doc dt {
  font-weight: 700;
  margin-top: .75em;
}

.doc dd {
  margin-inline-start: 0;
  color: var(--muted);
}

.doc [dir=rtl] code {
  direction: ltr;
  unicode-bidi: isolate;
}

[lang=ar] .page-title h1,[lang=ar] .doc h2 {
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.22;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: .88rem;
  font-weight: 680;
  display: block;
  margin-bottom: 5px;
}

.field input,.field select,.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #a9b2a0;
  background: var(--white);
  color: var(--ink);
  border-radius: 4px;
  padding: .57em .68em;
}

.field textarea {
  resize: vertical;
  min-height: 145px;
}

.field input[type=file] {
  padding: .41em;
}

.field small,.form-note {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin: .4em 0 0;
}

.field .optional {
  font-weight: 450;
  color: var(--muted);
}

.trap {
  display: none;
}

.form-status {
  margin: 12px 0 0;
  font-weight: 600;
}

.form-status:not(:empty) {
  border-inline-start: 4px solid #4e7950;
  padding: .55em .7em;
  background: #edf2e6;
}

.form-status[data-error]:not(:empty) {
  border-color: #ad5040;
  background: #f7e8e1;
}

.side-card p {
  color: var(--muted);
  font-size: .95rem;
  margin: .65em 0;
}

.success {
  max-width: 690px;
  padding-block: clamp(50px,8vw,100px);
}

.success h1 {
  font: 400 3rem/1.08 var(--serif);
  letter-spacing: -.04em;
  margin: .2em 0;
}

@media(max-width:820px) {
  .hero h1 {
    font-size: clamp(3.3rem,9.8vw,5.3rem);
  }
  .hero .wrap {
    min-height: 0;
  }
  .showcase {
    gap: 7px;
  }
  .content-layout {
    grid-template-columns: minmax(0,1fr) minmax(175px,220px);
  }
}

@media(max-width:650px) {
  .hero .wrap,.preset-grid,.more .wrap,.content-layout {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    gap: 35px;
  }
  .showcase {
    padding-bottom: 0;
  }
  .showcase figure:nth-child(2) {
    margin-top: 28px;
  }
  .site-head .wrap {
    min-height: 64px;
  }
  .site-nav {
    gap: 11px;
  }
  .site-nav a,.brand {
    font-size: .76rem;
  }
  .site-foot .wrap,.section-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .content-layout {
    display: flex;
    flex-direction: column;
  }
  .toc {
    order: -1;
    width: 100%;
  }
  .doc {
    width: 100%;
  }
}

@media(max-width:370px) {
  .brand .mark {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
