/* Greenbrier, LLC — corporate landing page.
   Palette is the Ibis brand set with oxide held back for the product identity only. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --carbon: #1b1d1a;
  --ivory: #f2eee3;
  --near-white: #faf8f2;
  --bone: #e3ded2;
  --slate: #294e6d;
  --lichen: #747565;
  --oxide: #cf472c;

  --rule: color-mix(in srgb, var(--carbon) 16%, transparent);
  --rule-strong: color-mix(in srgb, var(--carbon) 38%, transparent);

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --shell: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --band-space: clamp(3.5rem, 8vw, 7rem);

  /* One grid for the whole page: label column + gap defines where body copy starts,
     so the hero lead and every section body share the same left edge. */
  --label-col: 13rem;
  --row-gap: clamp(2rem, 6vw, 5rem);
  --body-offset: calc(var(--label-col) + var(--row-gap));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--carbon); }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--carbon);
  color: var(--near-white);
  padding: 0.5rem 0.875rem;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.375rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--carbon);
}
.wordmark-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wordmark-suffix {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lichen);
  border-left: 1px solid var(--rule-strong);
  padding-left: 0.5rem;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(0.875rem, 3vw, 1.5rem);
}
.masthead nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lichen);
}
.masthead nav a:hover { color: var(--carbon); }

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

.hero {
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 9vw, 7rem);
}

/* keeps hyphenated compounds like "data-intensive" from breaking at the hyphen */
.nb { white-space: nowrap; }

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6.2vw, 4.125rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-lead {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--carbon) 88%, transparent);
}
.hero-lead p { margin: 0 0 1.25em; }
.hero-lead p:last-child { margin-bottom: 0; }

/* let the browser avoid single-word last lines; ignored where unsupported */
.hero-lead p, .prose p, .principles p, .statement { text-wrap: pretty; }

/* controlled asymmetry: lead drops into the body column, under the headline's right shoulder */
@media (min-width: 52rem) {
  .hero-lead { margin-left: var(--body-offset); }
}

/* ---------- bands ---------- */

.band {
  border-top: 1px solid var(--rule);
  padding-block: var(--band-space);
}

.row { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 52rem) {
  .row {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: var(--row-gap);
  }
}

.row-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lichen);
  line-height: 1.6;
  padding-top: 0.25rem;
}

.row-body { max-width: 60ch; }

.prose p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- principles ---------- */

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}
.principles > li {
  counter-increment: principle;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.principles > li:first-child { padding-top: 0; border-top: 0; }
.principles > li:last-child { padding-bottom: 0; }

.principles h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.principles h3::before {
  content: counter(principle, decimal-leading-zero);
  display: inline-block;
  width: 2.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--lichen);
  vertical-align: 0.06em;
}
.principles p {
  margin: 0;
  color: color-mix(in srgb, var(--carbon) 84%, transparent);
}
@media (min-width: 34rem) {
  .principles p { margin-left: 2.75rem; }
}

/* ---------- product ---------- */

.product-card {
  background: var(--near-white);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--oxide);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.product-mark {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-line {
  margin: 0.375rem 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.4;
  color: color-mix(in srgb, var(--carbon) 90%, transparent);
  max-width: 34ch;
}

.product-link {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.product-link a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ---------- statement ---------- */

.statement {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.35;
  max-width: 26ch;
}

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

.contact { margin: 0; }
.contact > div {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule);
}
.contact > div:first-child { padding-top: 0; border-top: 0; }
.contact > div:last-child { padding-bottom: 0; }
@media (min-width: 34rem) {
  .contact > div {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1.5rem;
  }
}
.contact dt {
  font-size: 0.8125rem;
  color: var(--lichen);
}
.contact dd { margin: 0; }

/* ---------- colophon ---------- */

.colophon {
  border-top: 1px solid var(--rule-strong);
  padding-block: 2rem 3rem;
}
.colophon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}
.colophon p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--lichen);
}
