/* Bioway — bioway.au
   Direction: soil profile. Sections are horizons (O/A/B/C/R); the depth rail
   is the signature. Palette sampled from a real profile rather than the
   cream-and-terracotta default. */

:root {
  /* profile palette */
  --humus:  #17130F;   /* page ground — wet organic near-black */
  --loam:   #241D16;   /* raised bands */
  --ochre:  #B4712C;   /* iron oxide — the one hot colour */
  --gley:   #93A1A6;   /* waterlogged mineral grey-blue — body copy */
  --chalk:  #EAE4D8;   /* carbonate — headings */
  --root:   #57806220; /* living green, only ever as a wash */
  --root-s: #6E9A79;   /* same green, solid, for small marks */

  --rail-w: 5.5rem;
  --measure: 34rem;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--humus);
  color: var(--gley);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--chalk);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1rem; max-width: var(--measure); }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ochre); color: var(--humus);
  padding: 0.6rem 1rem; font-family: var(--f-mono); font-size: 0.8rem;
  z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* ── depth rail ─────────────────────────────────────────────── */

.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  padding: 0;
  border-right: 1px solid #ffffff12;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff44;
  z-index: 20;
}
@media (min-width: 62rem) { .rail { display: flex; } }

/* The marks span the full viewport edge, so the rail reads as a profile
   being descended rather than a legend parked in the corner. */
.rail__marks {
  list-style: none;
  margin: 0; padding: 12vh 0;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.rail__marks li {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: #ffffff3a;
  transition: color 220ms ease;
}
.rail__marks i {
  display: block; width: 1px; height: 1.6rem;
  background: currentColor;
}
.rail__marks li.is-on { color: var(--ochre); }
.rail__marks li.is-on i { width: 3px; }

@media (prefers-reduced-motion: reduce) {
  .rail__marks li { transition: none; }
}

/* ── masthead ───────────────────────────────────────────────── */

.mast {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem clamp(1.25rem, 4vw, 2.5rem);
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in oklab, var(--humus) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid #ffffff10;
}
@media (min-width: 62rem) { .mast { padding-left: calc(var(--rail-w) + 1.5rem); } }

.mast__mark {
  font-family: var(--f-display);
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--chalk);
}
.mast__cta {
  font-family: var(--f-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  color: var(--ochre);
  border-bottom: 1px solid #b4712c55;
  padding-bottom: 2px;
}
.mast__cta:hover { border-bottom-color: var(--ochre); }

/* ── hero / O horizon ───────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(4.5rem, 12vh, 9rem) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
@media (min-width: 62rem) { .hero { padding-left: var(--rail-w); } }

/* the strata sit behind the headline: the reader is standing on the
   profile, not looking at a picture of one */
.hero__strata {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  z-index: 0;
}
.stratum { flex: 1 1 auto; }
.stratum--o { background: linear-gradient(180deg, #241d16 0%, #1d1712 100%); flex-grow: 0.7; }
.stratum--a { background: linear-gradient(180deg, #1d1712 0%, #17130f 100%); }
.stratum--b { background: linear-gradient(180deg, #17130f 0%, #191410 100%); }
.stratum--c { background: linear-gradient(180deg, #191410 0%, #12100d 100%); flex-grow: 1.4; }

.hero__body { position: relative; z-index: 1; }

.hero__head {
  font-size: clamp(2.6rem, 1.5rem + 5.2vw, 5.6rem);
  margin: 1.4rem 0 1.6rem;
}
.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  max-width: 40rem;
  color: #b6bfc2;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: #ffffff55;
  margin: 0 0 0.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow__h {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem;
  border: 1px solid #b4712c66;
  color: var(--ochre);
  font-weight: 500;
  letter-spacing: 0;
}

.btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  color: var(--humus);
  background: var(--ochre);
  padding: 0.85rem 1.5rem;
  transition: transform 160ms ease, background 160ms ease;
}
.btn:hover { background: #c67f33; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ── horizon bands ──────────────────────────────────────────── */

.band {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
  border-top: 1px solid #ffffff0d;
}
@media (min-width: 62rem) { .band { padding-left: var(--rail-w); } }

.band--alt { background: var(--loam); }

.grid { display: grid; gap: 1.6rem; }
@media (min-width: 52rem) {
  .grid { grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .grid .eyebrow { padding-top: 0.55rem; }
}

.grid__main h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.9rem);
  margin-bottom: 1.2rem;
}

/* ── R / contact ────────────────────────────────────────────── */

.talk {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
  border-top: 1px solid #ffffff0d;
  background:
    radial-gradient(120% 80% at 12% 0%, var(--root) 0%, transparent 62%),
    var(--humus);
}
@media (min-width: 62rem) { .talk { padding-left: var(--rail-w); } }

.talk__head {
  font-size: clamp(1.9rem, 1.4rem + 2.1vw, 3.1rem);
  margin: 1.1rem 0 2.4rem;
}

.ways {
  list-style: none; margin: 0 0 3.2rem; padding: 0;
  display: grid; gap: 1.6rem;
}
@media (min-width: 48rem) { .ways { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.ways li { border-top: 2px solid var(--root-s); padding-top: 1rem; }
.ways h3 {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.ways p { font-size: 0.98rem; margin: 0; }

.contact { border-top: 1px solid #ffffff14; padding-top: 2rem; }
.contact__label {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: #ffffff55; margin-bottom: 0.5rem;
}
.contact__mail {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  letter-spacing: -0.02em;
}
.contact__mail:hover { border-bottom-color: var(--ochre); }
.contact__note { margin-top: 1rem; font-size: 0.98rem; }

/* ── foot ───────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid #ffffff0d;
  padding: 2.2rem 0 2.8rem;
  font-size: 0.85rem;
  color: #ffffff44;
}
@media (min-width: 62rem) { .foot { padding-left: var(--rail-w); } }

.foot__in { display: grid; gap: 1rem; }
@media (min-width: 52rem) {
  .foot__in { grid-template-columns: minmax(0, 40rem) auto; align-items: end; }
}
.foot__legal { margin: 0; max-width: 40rem; }
.foot__by { margin: 0; font-family: var(--f-mono); font-size: 0.72rem;
            letter-spacing: 0.1em; text-transform: uppercase; }
.foot__by a { color: var(--gley); text-decoration: none;
              border-bottom: 1px solid #93a1a655; }
.foot__by a:hover { color: var(--chalk); }
