/* Doperde — draft-margin */

:root {
  --bg: #f2e8df;
  --bg-alt: #e6d6c8;
  --bg-dark: #3d2b22;
  --ink: #2a1e18;
  --ink-soft: #7a6a5d;
  --ink-invert: #f2e8df;
  --accent: #a8502f;
  --accent-2: #6b7a4e;
  --rule: rgba(42, 30, 24, 0.22);
  --rule-invert: rgba(242, 232, 223, 0.28);
  --gutter: 28px;
  --max: 1180px;
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- grid shell ---------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.col-4 { grid-column: 1 / span 4; }
.col-5 { grid-column: 1 / span 5; }
.col-6 { grid-column: 1 / span 6; }
.col-7 { grid-column: 1 / span 7; }
.col-8 { grid-column: 1 / span 8; }
.col-9 { grid-column: 1 / span 9; }

/* ---------- typography ---------- */

h1, h2, h3 { font-weight: 700; color: var(--ink); }

h1 {
  font-size: clamp(2.35rem, 6.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}

h1 .line-2 { display: block; padding-left: 8.333%; }

h2 {
  font-size: clamp(1.4rem, 2.9vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 30px 0 10px;
}

p { margin: 0 0 18px; }

.lede { font-size: 1.16rem; line-height: 1.62; }

.cap {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cap-plain {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  text-transform: none;
}

.num {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

/* ---------- separators ---------- */

.rule-double { margin: 0 0 34px; }
.rule-double::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--rule);
  width: 100%;
}
.rule-double::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
  width: 16.666%;
  min-width: 84px;
  margin-top: 6px;
}

.rule-double.on-dark::before { background: var(--rule-invert); }

/* ---------- header / nav ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 20px;
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 26px;
}

.brand {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 78px 0 88px; position: relative; }

.hero-inner { position: relative; }

.dim-vert {
  position: absolute;
  left: -18px;
  top: 4px;
  bottom: 14px;
  width: 9px;
  border-left: 1px solid var(--accent-2);
}
.dim-vert::before,
.dim-vert::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
  background: var(--accent-2);
}
.dim-vert::before { top: 0; }
.dim-vert::after { bottom: 0; }

.dim-horiz {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 30px;
  grid-column: 1 / span 8;
}
.dim-horiz .seg {
  flex: 1;
  height: 1px;
  background: var(--accent-2);
  position: relative;
}
.dim-horiz .seg::before,
.dim-horiz .seg::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--accent-2);
}
.dim-horiz .seg::before { left: 0; }
.dim-horiz .seg::after { right: 0; }
.dim-horiz .label {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}

.hero p.lede { grid-column: 1 / span 6; margin-bottom: 0; }

/* ---------- main figure ---------- */

.figure-main {
  margin: 0;
  padding: 0 0 8px;
  align-items: start;
}

.figure-main img {
  grid-column: 1 / span 7;
  width: 100%;
}

.figure-main figcaption {
  grid-column: 9 / span 4;
  position: relative;
  padding-top: 14px;
  align-self: end;
  padding-bottom: 6px;
}

.figure-main figcaption::before {
  content: "";
  position: absolute;
  left: -25%;
  top: 26px;
  width: 25%;
  height: 1px;
  background: var(--accent-2);
}

/* ---------- sections ---------- */

.band { padding: 72px 0; }
.band-2 { padding: 88px 0; }
.band-3 { padding: 104px 0; }
.band-alt { background: var(--bg-alt); }

.band-dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: 96px 0;
}
.band-dark h2, .band-dark h3 { color: var(--ink-invert); }
.band-dark .cap, .band-dark .cap-plain { color: rgba(242, 232, 223, 0.66); }
.band-dark .num { color: #b4c07f; }
.band-dark a { color: #e0a184; }

.detail-wrap { align-items: center; row-gap: 40px; }

.figure-detail { margin: 0; grid-column: 2 / span 4; }
.figure-detail img { width: 100%; }
.figure-detail figcaption { margin-top: 12px; }

.detail-text { grid-column: 7 / span 6; }
.detail-text p:last-child { margin-bottom: 0; }

/* ---------- lists ---------- */

ul.checks, ol.steps {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

ul.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
}
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 3px;
  background: var(--accent);
}

.band-dark ul.checks li::before { background: #c9743f; }

ol.steps { counter-reset: st; }
ol.steps li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  counter-increment: st;
}
ol.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.def-list { margin: 0; }
.def-list dt {
  font-weight: 700;
  margin-top: 20px;
  letter-spacing: -0.005em;
}
.def-list dt:first-child { margin-top: 0; }
.def-list dd { margin: 5px 0 0; color: var(--ink); }

/* ---------- section head ---------- */

.sec-head { margin-bottom: 8px; }

.stack > * + * { margin-top: 0; }

.note-side {
  grid-column: 10 / span 3;
  padding-top: 6px;
}

/* ---------- about layout ---------- */

.about-body {
  grid-column: 1 / span 9;
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--rule);
}

.about-body section {
  position: relative;
  padding-top: 6px;
  margin-bottom: 46px;
}
.about-body section:last-child { margin-bottom: 0; }

.about-body section::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 16px;
  width: 15px;
  height: 1px;
  background: var(--accent);
}

.about-body p, .about-body ul { max-width: 62ch; }

/* ---------- legal / prose pages ---------- */

.prose { grid-column: 1 / span 9; }
.prose p, .prose li { max-width: 68ch; }
.prose section { margin-bottom: 40px; }
.prose section:last-child { margin-bottom: 0; }

.page-head { padding: 62px 0 34px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head .col-8 p { margin-bottom: 0; }

.contact-line {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 8px;
}

/* ---------- footer ---------- */

.site-foot { padding: 66px 0 40px; }

.foot-top { border-top: 1px solid var(--rule); }
.foot-top::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
  width: 16.666%;
  min-width: 84px;
  margin-top: 6px;
}

.foot-grid { padding-top: 34px; row-gap: 34px; }

.foot-brand { grid-column: 1 / span 6; }
.foot-brand .fname {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.foot-brand p { color: var(--ink-soft); max-width: 42ch; margin-bottom: 0; font-size: 15.5px; }

.foot-nav { grid-column: 8 / span 2; }
.foot-contact { grid-column: 10 / span 3; }

.foot-grid h2 {
  font-size: 12.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 14px;
}

.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 8px; }
.foot-nav a, .foot-contact a { font-size: 15.5px; }

.foot-bottom {
  margin-top: 44px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: space-between;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .hero { padding: 52px 0 56px; }
  .band, .band-2, .band-3 { padding: 48px 0; }
  .band-dark { padding: 52px 0; }
  .page-head { padding: 42px 0 26px; }
  .site-foot { padding: 46px 0 32px; }

  .col-4, .col-5, .col-6, .col-7, .col-8, .col-9,
  .hero p.lede, .dim-horiz,
  .figure-main img, .figure-main figcaption,
  .figure-detail, .detail-text,
  .about-body, .prose,
  .foot-brand, .foot-nav, .foot-contact,
  .note-side {
    grid-column: 1 / -1;
  }

  h1 .line-2 { padding-left: 0; }

  .dim-vert { left: -14px; }

  .figure-main figcaption { padding-top: 16px; }
  .figure-main figcaption::before {
    left: 0;
    top: 4px;
    width: 56px;
  }

  .about-body { padding-left: 20px; }
  .about-body section::before { left: -20px; }

  .foot-brand .fname { font-size: 1.55rem; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .band, .band-2, .band-3, .band-dark { padding: 44px 0; }
  .hero { padding: 44px 0 48px; }
  .site-nav ul { gap: 6px 16px; }
  .site-nav a { font-size: 14px; }
  .dim-vert { display: none; }
}
