/* Bromabotru — canvas-field */

:root {
  --bg: #f4f0e8;
  --bg-alt: #e7e1d5;
  --bg-dark: #20242a;
  --ink: #22201b;
  --muted: #776f62;
  --pale: #f4f0e8;
  --a1: #2c4668;
  --a2: #a06a2c;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.2vw, 28px);
  --rhythm-lg: 112px;
  --rhythm-sm: 64px;
}

* { box-sizing: border-box; }

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

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

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

a {
  color: var(--a1);
  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(--a1);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: var(--pale);
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 13px;
  z-index: 10;
}
.skip:focus { left: var(--pad); top: 8px; }

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

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

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

.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }

.off2 { grid-column: 3 / 9; }
.off3 { grid-column: 4 / 10; }
.right5 { grid-column: 8 / 13; }

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

h1, h2, h3 { font-weight: 400; }

h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.22;
  margin: 0 0 18px;
}

h3 {
  font-style: italic;
  font-size: clamp(1.14rem, 1.7vw, 1.33rem);
  line-height: 1.35;
  margin: 32px 0 10px;
}

p { margin: 0 0 22px; }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.26rem);
  line-height: 1.6;
  color: #33302a;
}

.meta,
.kicker,
.caption,
nav,
footer .fmeta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker { display: block; margin-bottom: 20px; }
.kicker .num { color: var(--a2); margin-right: 10px; }

.caption {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 12px;
}

ul, ol { margin: 0 0 24px; padding-left: 1.15em; }
li { margin-bottom: 9px; }
ul { list-style: none; padding-left: 0; }
ul li {
  position: relative;
  padding-left: 22px;
}
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 3px;
  background: var(--a1);
}
ol { padding-left: 1.3em; }
ol li::marker { color: var(--a2); font-family: var(--sans); font-size: 0.8em; }

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

.rule { height: 3px; margin: 0 0 30px; }
.rule.w2 { width: 14%; background: var(--a2); }
.rule.w3 { width: 23%; background: var(--a1); }
.rule.w4 { width: 32%; background: var(--a1); }
.rule.w5 { width: 41%; background: var(--a2); }
.rule.r { margin-left: auto; }

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

.site-head {
  padding-top: 26px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #d9d2c4;
}

.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.site-head nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-head nav li { margin: 0; padding: 0; }
.site-head nav li::before { display: none; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--a1); text-decoration: underline; }

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

.hero { padding-top: clamp(44px, 7vw, 84px); padding-bottom: 8px; }

.hero .h-title { grid-column: 1 / 8; }

.hero .h-void {
  grid-column: 9 / 13;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.hero .h-void span {
  display: block;
  width: 10px;
  background: var(--a2);
  height: 2.2em;
  align-self: flex-start;
  margin-top: 0.3em;
}

.hero .h-lede { grid-column: 1 / 6; margin-top: 40px; }

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

.band { padding-top: var(--rhythm-lg); }
.block { margin-top: var(--rhythm-sm); }
.block:first-child { margin-top: 0; }

.section-dark {
  background: var(--bg-dark);
  color: var(--pale);
  margin-top: var(--rhythm-lg);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.section-dark h2,
.section-dark h3 { color: var(--pale); }
.section-dark p { color: #ddd6c8; }
.section-dark .caption { color: #a29a8b; }
.section-dark a { color: #9fb8d8; }
.section-dark ul li::before { background: var(--a2); }
.section-dark .rule.w3 { background: #9fb8d8; }

.alt-band {
  background: var(--bg-alt);
  margin-top: var(--rhythm-lg);
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 92px);
}

/* ---------- images ---------- */

.figure-main {
  grid-column: 1 / 9;
  margin: 0;
}
.figure-main .caption { text-align: right; }

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

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

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

.about-body { grid-column: 3 / 9; }

.about-marks {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-top: 14px;
}
.about-marks span { display: block; height: 3px; }
.about-marks span:nth-child(1) { width: 62%; background: var(--a1); }
.about-marks span:nth-child(2) { width: 88%; background: var(--a2); }
.about-marks span:nth-child(3) { width: 44%; background: var(--a1); }

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

.page-head { padding-top: clamp(40px, 6vw, 76px); }
.page-head h1 { grid-column: 1 / 9; }
.page-head .lede { grid-column: 1 / 7; margin-top: 28px; }

.prose { grid-column: 1 / 8; }
.prose-wide { grid-column: 2 / 10; }

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

.site-foot {
  background: var(--bg-alt);
  margin-top: var(--rhythm-lg);
  padding-top: 0;
  padding-bottom: 56px;
}
.foot-bar { height: 6px; width: 33%; background: var(--a1); }
.foot-inner {
  padding-top: 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 24px;
  align-items: start;
}
.foot-left { grid-column: 1 / 8; }
.foot-right { grid-column: 9 / 13; text-align: right; }
.foot-name {
  font-size: 1.85rem;
  line-height: 1.1;
  margin: 0 0 18px;
}
.site-foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot nav li { margin: 0; }
.site-foot nav li::before { display: none; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--a1); text-decoration: underline; }
.foot-mail { font-family: var(--serif); font-size: 1rem; text-transform: none; letter-spacing: 0; }
.foot-note {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- desktop offset for main image ---------- */

@media (min-width: 1360px) {
  .figure-main { margin-left: -92px; }
}

/* ---------- tablet ---------- */

@media (max-width: 1000px) {
  .hero .h-title { grid-column: 1 / 11; }
  .hero .h-void { grid-column: 11 / 13; }
  .hero .h-lede { grid-column: 1 / 9; }
  .figure-main { grid-column: 1 / 11; }
  .figure-detail { grid-column: 1 / 7; }
  .detail-text { grid-column: 7 / 13; }
  .about-body { grid-column: 2 / 12; }
  .about-marks { grid-column: 1 / 2; gap: 90px; }
  .prose { grid-column: 1 / 11; }
  .prose-wide { grid-column: 1 / 12; }
  .page-head h1 { grid-column: 1 / 12; }
  .page-head .lede { grid-column: 1 / 10; }
  .foot-left { grid-column: 1 / 9; }
  .foot-right { grid-column: 9 / 13; }
}

/* ---------- mobile ---------- */

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

  body { font-size: 17px; }

  .grid > *,
  .foot-inner > * { grid-column: 1 / -1 !important; }

  .hero .h-void { display: none; }
  .hero .h-lede { margin-top: 28px; }

  .figure-main { margin-left: 0; }
  .figure-main .caption { text-align: left; }
  .figure-detail { margin-bottom: 28px; }

  .about-marks {
    flex-direction: row;
    gap: 14px;
    padding-top: 0;
    margin-bottom: 26px;
  }
  .about-marks span { width: 56px !important; }

  .rule.w2 { width: 28%; }
  .rule.w3 { width: 40%; }
  .rule.w4 { width: 52%; }
  .rule.w5 { width: 64%; }

  .foot-bar { width: 58%; }
  .foot-right { text-align: left; }
  .foot-inner { row-gap: 20px; }
  .site-head { padding-bottom: 18px; }
  .site-head nav ul { gap: 6px 18px; }
}
