/* Flantordoku — draft-margin */

:root {
  --bg: #eef0f2;
  --bg-alt: #dfe3e7;
  --bg-dark: #1b2733;
  --ink: #151a20;
  --ink-2: #636d78;
  --ink-inv: #eef0f2;
  --accent: #2c4a7c;
  --accent-2: #a35a2a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --col: minmax(0, 1fr);
}

* { box-sizing: border-box; }

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

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

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

p { margin: 0 0 1.1em; }

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

a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.14;
  margin: 0;
}

h2 {
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.24;
  margin: 0 0 18px;
}

h3 {
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 10px;
}

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

.site-head {
  border-bottom: 1px solid #c9d0d7;
  padding: 18px 0;
}

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

.brand {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

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

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

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

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

.hero {
  padding: 64px 0 40px;
  position: relative;
}

.hero-inner { position: relative; }

.rule-v {
  grid-column: 1 / 2;
  position: relative;
  border-left: 1px solid var(--accent);
  min-height: 100%;
}

.rule-v::before,
.rule-v::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.rule-v::before { top: 0; }
.rule-v::after { bottom: 0; }

.hero-text { grid-column: 2 / 11; }

h1 .l2 {
  display: block;
  padding-left: 9%;
}

.measure {
  grid-column: 2 / 11;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 26px;
}

.measure .bar {
  flex: 1;
  height: 1px;
  background: var(--accent-2);
  position: relative;
}

.measure .bar::before,
.measure .bar::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--accent-2);
}

.measure .bar::before { left: 0; }
.measure .bar::after { right: 0; }

.measure .tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}

.hero-intro {
  grid-column: 2 / 9;
  font-size: 18px;
  color: var(--ink);
}

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

.figure-row {
  padding: 8px 0 24px;
  align-items: start;
}

.fig-main { grid-column: 1 / 8; margin: 0; }

.fig-main img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #c4ccd4;
}

.callout {
  grid-column: 9 / 13;
  position: relative;
  padding-top: 26px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.callout::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -14%;
  width: 14%;
  height: 1px;
  background: var(--accent-2);
}

.callout strong {
  display: block;
  font-weight: normal;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 6px;
}

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

section { padding: 72px 0; }
section.r2 { padding: 88px 0; }
section.r3 { padding: 104px 0; }
section.alt { background: var(--bg-alt); }

.sec-body { grid-column: 1 / 8; }
.sec-body.wide { grid-column: 1 / 10; }

.sep {
  grid-column: 1 / 13;
  margin-bottom: 30px;
}

.sep i {
  display: block;
  height: 1px;
  background: #b9c2cb;
}

.sep i + i {
  height: 3px;
  width: 15%;
  background: var(--accent-2);
  margin-top: 5px;
}

ul.checks {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
}

ul.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}

ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

ol.steps {
  padding-left: 22px;
  margin: 14px 0 20px;
}

ol.steps li { margin-bottom: 9px; }

/* ---------- dark section ---------- */

.dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
}

.dark h2, .dark h3 { color: var(--ink-inv); }
.dark .num { color: #d08b53; }
.dark .label { color: #9fadba; }
.dark a { color: #a8c2e8; }
.dark a:focus-visible { outline-color: #a8c2e8; }

.dark .sep i { background: #33404e; }
.dark .sep i + i { background: #a35a2a; }

.dark-grid { align-items: start; }

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

.fig-detail img {
  width: 100%;
  height: auto;
  display: block;
}

.fig-detail figcaption {
  font-size: 13px;
  line-height: 1.55;
  color: #9fadba;
  margin-top: 10px;
}

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

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

.about-col {
  grid-column: 1 / 9;
  border-left: 1px solid #b9c2cb;
  padding-left: 28px;
  position: relative;
}

.about-block {
  position: relative;
  padding-top: 4px;
  margin-bottom: 38px;
}

.about-block::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 14px;
  width: 16px;
  height: 1px;
  background: var(--accent-2);
}

.about-block:last-child { margin-bottom: 0; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { grid-column: 1 / 10; }
.page-head .kicker { grid-column: 1 / 10; margin-bottom: 12px; }

.legal { grid-column: 1 / 9; }
.legal h2 { margin-top: 40px; }
.legal h2:first-of-type { margin-top: 0; }

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

.site-foot {
  padding: 44px 0 30px;
  background: var(--bg-alt);
}

.foot-top {
  border-top: 1px solid #b9c2cb;
  padding-top: 4px;
}

.foot-top i {
  display: block;
  height: 3px;
  width: 14%;
  background: var(--accent-2);
}

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

.foot-brand { grid-column: 1 / 7; }

.foot-brand .name {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.foot-brand p {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 34em;
}

.foot-nav { grid-column: 8 / 11; }
.foot-contact { grid-column: 11 / 13; }

.foot-grid h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-nav li { margin-bottom: 7px; }

.foot-nav a, .foot-contact a { font-size: 15px; }

.foot-bottom {
  margin-top: 34px;
  border-top: 1px solid #c4ccd4;
  padding-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

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

@media (max-width: 980px) {
  .hero-text, .measure, .hero-intro { grid-column: 2 / 13; }
  .fig-main { grid-column: 1 / 9; }
  .callout { grid-column: 9 / 13; }
  .sec-body, .sec-body.wide { grid-column: 1 / 10; }
  .fig-detail { grid-column: 1 / 6; }
  .dark-text { grid-column: 6 / 13; }
  .about-col, .legal { grid-column: 1 / 11; }
  .page-head h1, .page-head .kicker { grid-column: 1 / 12; }
  .foot-brand { grid-column: 1 / 13; }
  .foot-nav { grid-column: 1 / 7; }
  .foot-contact { grid-column: 7 / 13; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .grid { display: block; }
  section { padding: 48px 0; }
  section.r2 { padding: 52px 0; }
  section.r3 { padding: 56px 0; }
  .hero { padding: 40px 0 26px; }
  .rule-v { display: none; }
  h1 .l2 { padding-left: 0; }
  .measure { margin: 22px 0 20px; }
  .fig-main { margin-bottom: 22px; }
  .callout { padding-top: 0; }
  .callout::before { display: none; }
  .fig-detail { margin-bottom: 24px; }
  .about-col { padding-left: 20px; }
  .about-block::before { left: -20px; }
  .sep i + i, .foot-top i { width: 42%; }
  .foot-nav, .foot-contact { margin-top: 26px; }
  .site-nav ul { gap: 6px 18px; }
}
