/* Bateze — light-axis */

:root {
  --bg: #f5f4f0;
  --bg-alt: #e2ded4;
  --bg-deep: #14456b;
  --ink: #1c1e20;
  --ink-soft: #6a6d6e;
  --ink-invert: #f5f4f0;
  --accent: #c2522f;
  --accent-2: #1d6b8f;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
}

* { 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.8;
  overflow-x: hidden;
}

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

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

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

.deep :focus-visible { outline-color: #f0b39c; }

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.band { padding: var(--step) 0; }
.band-alt { background: var(--bg-alt); }
.deep { background: var(--bg-deep); color: var(--ink-invert); }
.deep a { color: #f0b39c; }

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

.site-head {
  padding: 26px 0 22px;
  border-bottom: 0;
}

.site-head .wrap { row-gap: 14px; align-items: baseline; }

.brand {
  grid-column: 1 / 4;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav { grid-column: 5 / 13; }

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  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: 56px 0 var(--step); }
.hero .wrap { row-gap: 40px; align-items: start; }

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

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 15ch;
}

.axis { margin-top: 34px; max-width: 520px; }
.axis-bar { height: 2px; background: var(--accent); }

.axis-drops {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  column-gap: 64px;
}

.axis-drops span {
  width: 2px;
  background: var(--accent-2);
  position: relative;
}

.axis-drops span::after {
  content: '';
  position: absolute;
  left: -3px;
  bottom: -8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.axis-drops span:nth-child(1) { height: 54px; }
.axis-drops span:nth-child(2) { height: 30px; }
.axis-drops span:nth-child(3) { height: 76px; }

.hero-lead {
  grid-column: 9 / 13;
  margin: 0;
  font-size: 17px;
}

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

/* ---------- main image ---------- */

.figure-main { padding-bottom: var(--step); }
.figure-main .wrap { row-gap: 16px; align-items: start; }
.figure-main img { grid-column: 4 / 13; width: 100%; }
.figure-main figcaption { grid-column: 1 / 4; }

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.deep figcaption { color: #b9c9d8; }

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

.sec .wrap { row-gap: 0; }

.sec-head { grid-column: 1 / 4; }

.sec-head::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-bottom: 18px;
}

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  padding-top: 2px;
  letter-spacing: -0.005em;
}

h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  margin: 34px 0 10px;
}

.sec-body { grid-column: 4 / 11; }
.sec-body > :first-child { margin-top: 0; }
.sec-body > :last-child { margin-bottom: 0; }

p { margin: 0 0 20px; max-width: 68ch; }

ul, ol { margin: 0 0 22px; padding-left: 20px; max-width: 66ch; }
li { margin-bottom: 10px; }

ul { list-style: none; padding-left: 0; }

ul li {
  position: relative;
  padding-left: 22px;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

ol li::marker { color: var(--accent-2); }

.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- deep section with detail image ---------- */

.deep .sec-head::before { background: #f0b39c; }
.deep .note { color: #b9c9d8; }
.deep ul li::before { background: #f0b39c; }

.deep .sec-head { grid-column: 1 / 13; margin-bottom: 4px; }
.deep-figure { grid-column: 2 / 6; grid-row: 2; }
.deep-figure figcaption { margin-top: 14px; }
.deep-body { grid-column: 7 / 13; grid-row: 2; }
.deep-body > :first-child { margin-top: 0; }
.deep-body > :last-child { margin-bottom: 0; }
.deep .wrap { row-gap: 40px; align-items: start; }

.deep h2 { margin-bottom: 22px; }

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

.about .wrap { row-gap: 0; }
.about-head { grid-column: 1 / 4; }
.about-body {
  grid-column: 4 / 11;
  border-left: 1px solid rgba(28, 30, 32, 0.18);
  padding-left: 28px;
}

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

.contact-line {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}

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

.site-foot { padding: 56px 0 48px; }
.site-foot .wrap { row-gap: 0; }

.foot-name {
  grid-column: 1 / 7;
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
}

.foot-mail {
  grid-column: 7 / 13;
  text-align: right;
  margin: 0;
  align-self: end;
}

.foot-rule {
  grid-column: 1 / 13;
  height: 1px;
  background: rgba(245, 244, 240, 0.28);
  margin: 22px 0 24px;
}

.foot-nav { grid-column: 1 / 9; }

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

.foot-nav li { margin: 0; padding: 0; }
.foot-nav li::before { display: none; }
.foot-nav a { font-size: 15px; }

.foot-note {
  grid-column: 1 / 9;
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #b9c9d8;
  max-width: 70ch;
}

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

@media (max-width: 900px) {
  .hero-main, .hero-lead,
  .sec-head, .sec-body,
  .about-head, .about-body,
  .deep-figure, .deep-body,
  .figure-main img, .figure-main figcaption,
  .foot-name, .foot-mail, .foot-nav, .foot-note, .foot-rule,
  .brand, .site-nav {
    grid-column: 1 / 13;
  }

  .about-body { border-left: 0; padding-left: 0; border-top: 1px solid rgba(28, 30, 32, 0.18); padding-top: 22px; }
  .sec-head { margin-bottom: 18px; }
  .about-head { margin-bottom: 18px; }
  .site-nav ul { justify-content: flex-start; }
  .foot-mail { text-align: left; margin-top: 10px; }
  .deep-figure img { max-width: 420px; }
  .deep-figure, .deep-body { grid-row: auto; }
  .deep-figure { order: 2; }
}

@media (max-width: 640px) {
  :root { --step: 48px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 32px 0 var(--step); }
  .axis-drops { column-gap: 40px; }
  .foot-name { font-size: 22px; }
}
