/* Flebintibro — stepped-poster */

:root {
  --bg: #fbf9f5;
  --bg-alt: #e4e8e1;
  --bg-dark: #223129;
  --ink: #22201c;
  --ink-soft: #797468;
  --ink-inv: #fbf9f5;
  --accent: #54684e;
  --accent2: #a87c48;
  --gap: 24px;
  --pad: 40px;
  --maxw: 1180px;
  --rhythm-lg: 120px;
  --rhythm-sm: 56px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: clip;
}

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: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

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

.site-head {
  padding: 26px 0 22px;
  border-bottom: 1px solid rgba(34, 32, 28, .14);
}

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

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 9px;
}

.brand:hover { text-decoration: none; }

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

.site-nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent2); font-weight: 600; }

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

h1, h2, h3 { font-weight: 700; margin: 0; }

.h1-stepped {
  font-size: clamp(2.35rem, 7.3vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.04em;
  margin: 0 0 34px;
}

.h1-stepped span { display: block; }
.h1-stepped span:nth-child(2) { margin-left: 8%; }
.h1-stepped span:nth-child(3) { margin-left: 16%; }

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 30px 0 10px;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 20px; line-height: 1.6; }
.sect-num {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
  font-weight: 600;
}

.cap {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

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

.hero { padding: 74px 0 var(--rhythm-sm); }

.hero-head {
  grid-column: 1 / 13;
  position: relative;
  padding-left: 26px;
}

.hero-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.hero-intro { grid-column: 1 / 6; }
.hero-side { grid-column: 7 / 13; align-self: end; }

.topic-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.topic-inline li { display: inline; }

.topic-inline li + li::before {
  content: "/";
  color: var(--accent2);
  margin: 0 9px;
  font-weight: 700;
}

/* ---------- figures ---------- */

.fig-main {
  margin: 0;
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 14px;
  margin-right: calc(-1 * min(3vw, 34px));
}

.fig-main img { width: 100%; }

.fig-main figcaption {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: right;
  justify-self: start;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.fig-block { padding-bottom: var(--rhythm-lg); }

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

.band { padding: var(--rhythm-lg) 0; }
.band-tight { padding: var(--rhythm-sm) 0; }
.band-alt { background: var(--bg-alt); }

.band-dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: var(--rhythm-lg) 0;
}

.band-dark h2, .band-dark h3 { color: var(--ink-inv); }
.band-dark p { color: #d9ded6; }
.band-dark .sect-num { color: #c69a63; }
.band-dark a { color: #c9d6c2; }
.band-dark .cap { color: #a7b1a5; }
.band-dark .num-list li::before { color: #c69a63; }
.band-dark .num-list li { border-top-color: rgba(251, 249, 245, .22); }
.band-dark :focus-visible { outline-color: #c9d6c2; }

.col-5 { grid-column: 1 / 6; }
.col-5-right { grid-column: 8 / 13; }
.col-6 { grid-column: 1 / 7; }
.col-7 { grid-column: 1 / 8; }
.col-7-right { grid-column: 6 / 13; }
.col-9 { grid-column: 1 / 10; }
.col-9-right { grid-column: 4 / 13; }
.col-full { grid-column: 1 / 13; }

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

.rule {
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 0;
  grid-column: 1 / 5;
}

.rule-c { grid-column: 5 / 9; }
.rule-r { grid-column: 9 / 13; }
.rule-gold { background: var(--accent2); }

/* ---------- numbered checklists ---------- */

.num-list {
  list-style: none;
  counter-reset: nl;
  margin: 26px 0 0;
  padding: 0;
}

.num-list li {
  counter-increment: nl;
  position: relative;
  padding: 14px 0 14px 62px;
  border-top: 1px solid rgba(34, 32, 28, .16);
}

.num-list li:last-child { border-bottom: 1px solid rgba(34, 32, 28, .16); }

.num-list li::before {
  content: counter(nl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.03em;
}

.plain-list { margin: 18px 0 0; padding-left: 20px; }
.plain-list li { margin-bottom: 8px; }
.plain-list li::marker { color: var(--accent); }

/* ---------- dark section w/ detail image ---------- */

.fig-detail {
  margin: 0;
  grid-column: 1 / 6;
}

.fig-detail img { width: 100%; }
.fig-detail figcaption { margin-top: 12px; }

.dark-text { grid-column: 7 / 13; }

/* ---------- about page ---------- */

.about-lead { font-size: 22px; line-height: 1.58; }

.about-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  margin-top: 46px;
}

.about-block > h2 { grid-column: 1 / 4; font-size: 1.28rem; }
.about-block > div { grid-column: 4 / 10; }

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

.doc-head { padding: 66px 0 var(--rhythm-sm); }
.doc-body { padding-bottom: var(--rhythm-lg); }
.doc-body h2 { margin-top: 44px; }
.doc-body h2:first-of-type { margin-top: 0; }

/* ---------- contact block ---------- */

.contact-mail {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  word-break: break-word;
}

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

.site-foot {
  border-top: 3px solid var(--accent);
  padding: 40px 0 56px;
  background: var(--bg);
}

.foot-name {
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 34px;
}

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

.foot-nav { grid-column: 1 / 6; }
.foot-meta { grid-column: 7 / 13; }

.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 7px; }
.foot-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(84, 104, 78, .5); }
.foot-nav a:hover { border-bottom-color: var(--accent); }

.foot-meta p { font-size: 15px; color: var(--ink-soft); }
.foot-meta a { font-weight: 600; }

.foot-bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(34, 32, 28, .16);
  font-size: 13px;
  color: var(--ink-soft);
}

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

@media (max-width: 900px) {
  :root { --pad: 28px; --gap: 18px; --rhythm-lg: 72px; --rhythm-sm: 44px; }

  .hero-intro, .hero-side { grid-column: 1 / 13; }
  .hero-side { margin-top: 26px; }
  .col-5, .col-5-right, .col-6, .col-7, .col-7-right,
  .col-9, .col-9-right { grid-column: 1 / 13; }
  .fig-main { grid-column: 1 / 13; margin-right: 0; }
  .fig-detail, .dark-text { grid-column: 1 / 13; }
  .dark-text { margin-top: 26px; }
  .rule, .rule-c, .rule-r { grid-column: 1 / 8; }
  .about-block > h2, .about-block > div { grid-column: 1 / 13; }
  .about-block > div { margin-top: 12px; }
  .foot-nav, .foot-meta { grid-column: 1 / 13; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; --rhythm-lg: 64px; --rhythm-sm: 40px; }

  body { font-size: 16.5px; }
  .hero { padding-top: 48px; }
  .h1-stepped span:nth-child(2) { margin-left: 5%; }
  .h1-stepped span:nth-child(3) { margin-left: 10%; }
  .lead { font-size: 18px; }
  .about-lead { font-size: 19.5px; }

  .fig-main { grid-template-columns: 1fr; }
  .fig-main figcaption {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    margin-top: 10px;
  }

  .num-list li { padding-left: 46px; }
  .num-list li::before { font-size: 18px; top: 14px; }
}
