:root {
  --green: #0F3B2E;
  --green-deep: #0B2E24;
  --gold: #D8B45C;
  --gold-deep: #B8923F;
  --gold-text: #8A6A2A;
  --clay: #9E3B2B;
  --ivory: #F6F1E6;
  --paper: #FAF6EC;
  --sand: #F1E9D8;
  --line: #E0D5BE;
  --ink: #1F2A24;
  --ink-soft: #3A443E;
  --on-green: #D9DED6;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", Georgia, serif;
  --arabic: "Amiri", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 2L46 24L24 46L2 24Z' fill='none' stroke='%23D8B45C' stroke-opacity='.22'/%3E%3Ccircle cx='24' cy='24' r='4' fill='none' stroke='%23D8B45C' stroke-opacity='.22'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--ivory); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 20px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green); }
.brand-latin { font-family: var(--caps); font-weight: 600; font-size: 24px; letter-spacing: .26em; }
.brand-rule { width: 1px; height: 24px; background: var(--gold-deep); }
.brand-arabic { font-family: var(--arabic); font-weight: 700; font-size: 22px; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--clay); }
.double-rule { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.double-rule span { display: block; height: 3px; border-top: 1px solid var(--gold-deep); border-bottom: 1px solid var(--gold-deep); }

/* Type helpers */
.label { font-family: var(--caps); font-size: 14px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.label.on-green { color: var(--gold); }
.label.clay { color: var(--clay); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--green); margin: 0; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
h3 { font-size: 25px; line-height: 1.2; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-green { background: var(--green); color: var(--ivory); }
.btn-green:hover { background: var(--green-deep); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: #E3C273; color: var(--green); }
.btn-line-light { border-color: var(--ivory); color: var(--ivory); }
.btn-line-light:hover { background: var(--ivory); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ornament panels stand in for photos until real ones are added */
.ornament { background-color: var(--green); background-image: var(--lattice); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.ornament svg { width: min(56%, 260px); height: auto; }
.arch { border-radius: 999px 999px 0 0; }
.ornament-glyph { font-family: var(--arabic); font-weight: 700; font-size: 72px; line-height: 1; }

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; margin-top: 32px; }
.hero-art { flex: 1.25 1 420px; min-height: 520px; }
.hero-copy { flex: 1 1 380px; background: var(--green); color: var(--ivory); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero-copy h1 { color: var(--ivory); }
.hero-copy p { margin: 0; color: var(--on-green); font-size: 18px; }

/* Sections */
.section { padding: 84px 0; }
.section.sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--gold-deep); margin-bottom: 32px; }
.section-head a { font-weight: 600; text-decoration: none; }
.center { text-align: center; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-top: 48px; }
.step { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.step-num { font-family: var(--arabic); font-weight: 700; font-size: 56px; line-height: 1.1; color: var(--gold-deep); }
.step h3 { font-family: var(--caps); font-size: 18px; letter-spacing: .16em; }
.step p { margin: 0; color: var(--ink-soft); max-width: 300px; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.kit-art { aspect-ratio: 1 / 1; max-width: 500px; }
.kit p { color: var(--ink-soft); max-width: 500px; }
.kit h2 { margin: 12px 0 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.card .ornament { aspect-ratio: 16 / 10; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card:hover h3 { color: var(--clay); }
.card .label { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; color: var(--clay); }

.story { background: var(--green); color: var(--ivory); background-image: var(--lattice); }
.story .wrap { padding-top: 84px; padding-bottom: 84px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.story-arabic { flex: 0 1 260px; font-family: var(--arabic); font-weight: 700; font-size: 96px; line-height: 1.2; color: var(--gold); text-align: center; }
.story-copy { flex: 1 1 420px; }
.story-copy h2 { color: var(--ivory); margin: 12px 0 14px; }
.story-copy p { color: var(--on-green); margin: 0 0 18px; }
.story-copy a { color: var(--gold); font-weight: 600; }

/* Sign-up */
.signup { border: 1px solid var(--gold-deep); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.signup-copy { flex: 1 1 340px; }
.signup-copy h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; }
.signup-copy p { margin: 0; color: var(--ink-soft); }
.signup form { flex: 1 1 380px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { min-height: 50px; padding: 0 14px; border: 1px solid #9A8F78; background: #FFFDF8; font: inherit; font-size: 16px; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 84px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-soft); }
.footer-mark { font-family: var(--caps); font-weight: 600; font-size: 18px; letter-spacing: .26em; color: var(--green); }

/* Articles */
.article-head { padding: 56px 0 36px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.article-head h1 { max-width: 820px; margin: 12px 0 16px; }
.dek { font-size: 20px; color: var(--ink-soft); max-width: 720px; margin: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 48px 0 14px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--green); }
.note { background: var(--sand); border: 1px solid var(--line); padding: 20px 22px; margin: 28px 0; }
.note p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--green); }
.article-art { aspect-ratio: 21 / 8; margin-bottom: 40px; }
.related { border-top: 1px solid var(--gold-deep); margin-top: 56px; padding-top: 28px; }
.related ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.related a { font-family: var(--serif); font-weight: 600; font-size: 22px; text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-art { min-height: 300px; }
  .section { padding: 64px 0; }
  .story-arabic { font-size: 72px; }
  .dek { font-size: 18px; }
}
