/* Letriva — stitched-margins */

:root {
  --bg: #101a24;
  --bg-alt: #16232f;
  --bg-contrast: #e9edf0;
  --text: #e3e9ee;
  --text-dim: #8b9aa6;
  --text-on-contrast: #101a24;
  --accent: #3fb3ae;
  --accent-2: #d8a15a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 28px;
  --pad: 32px;
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(63, 179, 174, .45); }
a:hover { border-bottom-color: var(--accent); }

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

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

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

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

.c8 { grid-column: 1 / span 8; }
.c7 { grid-column: 1 / span 7; }
.c6 { grid-column: 1 / span 6; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 .6em;
}

h1 { font-size: 2.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.5em; }

.lead { color: var(--text-dim); }

.caption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  font-family: var(--sans);
  margin: 12px 0 0;
}

.num {
  display: block;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  font-family: var(--sans);
}

ul, ol { margin: 0 0 1.6em; padding-left: 1.3em; }
li { margin-bottom: .7em; }
li::marker { color: var(--accent); }

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

.site-head {
  border-bottom: 1px dashed rgba(139, 154, 166, .45);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .04em;
  color: var(--text);
  border: 0;
}
.brand:hover { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

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

.hero { padding: 56px 0 0; }

.hero-frame {
  border: 2px dashed var(--accent);
  padding: 40px 24px;
}

.hero-top { align-items: start; }

.hero-title { grid-column: 1 / span 8; padding-right: var(--gap); }
.hero-title h1 { margin-bottom: 0; }

.hero-intro {
  grid-column: 9 / span 4;
  border-left: 2px dashed rgba(139, 154, 166, .5);
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-dim);
}
.hero-intro p:last-child { margin-bottom: 0; }

.hero-figure {
  grid-column: 7 / span 6;
  margin: 48px 0 0;
}
.hero-figure .shot {
  border: 2px dashed rgba(216, 161, 90, .65);
  padding: 12px;
}
.hero-figure .caption { max-width: 46ch; }

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

.band { padding: 80px 0; }
.band--alt { background: var(--bg-alt); }

.rule-double {
  border: 0;
  border-top: 1px solid rgba(139, 154, 166, .4);
  margin: 0;
  position: relative;
  height: 6px;
}
.rule-double::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 5px;
  border-top: 1px dashed rgba(139, 154, 166, .4);
}

.rule-dash {
  border: 0;
  border-top: 1px dashed rgba(139, 154, 166, .45);
  margin: 40px 0;
}

/* alternating text blocks */

.blk { max-width: none; }
.blk--l7 {
  grid-column: 1 / span 7;
  border-right: 1px dashed rgba(139, 154, 166, .4);
  padding-right: 32px;
}
.blk--r5 {
  grid-column: 8 / span 5;
  border-left: 1px dashed rgba(63, 179, 174, .5);
  padding-left: 32px;
}
.blk--l5 {
  grid-column: 1 / span 5;
  border-right: 1px dashed rgba(63, 179, 174, .5);
  padding-right: 32px;
}
.blk--r7 {
  grid-column: 6 / span 7;
  border-left: 1px dashed rgba(139, 154, 166, .4);
  padding-left: 32px;
}
.blk > *:last-child { margin-bottom: 0; }

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

/* checklists */

.check {
  list-style: none;
  padding-left: 0;
}
.check li {
  position: relative;
  padding-left: 30px;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 16px;
  border-top: 2px dashed var(--accent);
}

.steps {
  counter-reset: st;
  list-style: none;
  padding-left: 0;
}
.steps li {
  counter-increment: st;
  position: relative;
  padding-left: 46px;
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--accent-2);
}

/* ---------- contrast section ---------- */

.contrast {
  background: var(--bg-contrast);
  color: var(--text-on-contrast);
  padding: 80px 0;
}
.contrast .num { color: #8a5f21; }
.contrast .caption { color: #4c5b66; }
.contrast a { color: #14706c; border-bottom-color: rgba(20, 112, 108, .5); }
.contrast .rule-dash { border-top-color: rgba(16, 26, 36, .3); }
.contrast li::marker { color: #14706c; }
.contrast .check li::before { border-top-color: #14706c; }

.detail-fig {
  grid-column: 2 / span 4;
  margin: 0;
}
.detail-fig img { border: 2px dashed rgba(16, 26, 36, .45); padding: 10px; }
.detail-text {
  grid-column: 7 / span 6;
  border-left: 1px dashed rgba(16, 26, 36, .35);
  padding-left: 32px;
}
.detail-text > *:last-child { margin-bottom: 0; }

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

.ab {
  border-top: 1px dashed rgba(139, 154, 166, .45);
  border-bottom: 1px dashed rgba(139, 154, 166, .45);
  padding: 28px 0;
}
.ab--w8 { grid-column: 1 / span 8; }
.ab--w6 { grid-column: 7 / span 6; border-left: 1px dashed rgba(63, 179, 174, .5); padding-left: 32px; }
.ab--w7 { grid-column: 1 / span 7; border-right: 1px dashed rgba(216, 161, 90, .5); padding-right: 32px; }
.ab > *:last-child { margin-bottom: 0; }

.about-stack > * + * { margin-top: 64px; }

/* ---------- legal / long text ---------- */

.doc { grid-column: 1 / span 8; }
.doc-side {
  grid-column: 10 / span 3;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  border-left: 1px dashed rgba(216, 161, 90, .5);
  padding-left: 24px;
}
.doc-side p:last-child { margin-bottom: 0; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { max-width: 20ch; }

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

.site-foot {
  background: var(--bg-alt);
  padding: 64px 0 72px;
}
.foot-frame {
  border: 1px dashed rgba(139, 154, 166, .5);
  padding: 32px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
}
.foot-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.foot-a p { color: var(--text-dim); font-size: 16px; margin: 0 0 10px; max-width: 46ch; }
.foot-b ul { list-style: none; margin: 0 0 16px; padding: 0; }
.foot-b li { margin-bottom: 8px; }
.foot-b a { font-size: 16px; }
.foot-mail { font-size: 16px; }
.foot-note {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

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

@media (max-width: 900px) {
  :root { --pad: 22px; --gap: 20px; }
  body { font-size: 17px; line-height: 1.85; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.55rem; }

  .band, .contrast { padding: 48px 0; }
  .hero { padding: 36px 0 0; }
  .hero-frame { padding: 24px 16px; }

  .hero-title,
  .hero-intro,
  .hero-figure,
  .blk--l7, .blk--r5, .blk--l5, .blk--r7,
  .detail-fig, .detail-text,
  .ab--w8, .ab--w6, .ab--w7,
  .doc, .doc-side {
    grid-column: 1 / -1;
  }

  .hero-intro {
    border-left: 0;
    border-top: 2px dashed rgba(139, 154, 166, .5);
    padding-left: 0;
    padding-top: 20px;
    margin-top: 24px;
  }
  .hero-figure { margin-top: 32px; }

  .blk--l7, .blk--l5, .ab--w7 { border-right: 0; padding-right: 0; }
  .blk--r5, .blk--r7, .ab--w6, .detail-text, .doc-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed rgba(139, 154, 166, .45);
    padding-top: 20px;
  }
  .contrast .detail-text { border-top-color: rgba(16, 26, 36, .35); }
  .detail-fig { max-width: 420px; margin-bottom: 28px; }

  .stack > * + *, .about-stack > * + * { margin-top: 40px; }
  .doc-side { margin-top: 32px; }

  .foot-frame { grid-template-columns: 1fr; padding: 22px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .site-nav ul { gap: 6px 18px; }
}
