/* bowral.ai website: interim design system. Tokens first, then base, then
   components. Rules and rationale: site/DESIGN.md. Identity: brand/brand.md. */

:root {
  /* colour: the six brand colours, nothing else */
  --trachyte: #4e5a52;
  --slate: #2f3a3c;
  --oak: #b4532a;
  --paper: #f2eee5;
  --mist: #dde0d8;
  --ink: #1c1f1e;

  /* roles */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-quiet: var(--trachyte);
  --line: rgba(28, 31, 30, 0.16);
  --action: var(--oak);

  /* type */
  --font-head: 'Zilla Slab', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --t-small: 0.875rem;
  --t-body: clamp(1.0625rem, 0.99rem + 0.3vw, 1.1875rem);
  --t-lede: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --t-h3: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --t-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --t-h1: clamp(2.5rem, 1.5rem + 5vw, 4.75rem);

  /* space: one scale, 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  /* layout */
  --page: 70rem;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(3.5rem, 9vw, 7rem);
  --radius: 3px;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body) / 1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p { max-width: var(--measure); text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* layout */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--s-6); }
.cols { display: grid; gap: var(--s-12) var(--s-16); }
@media (min-width: 48rem) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* components */
.lockup { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.lockup img { width: 2.5rem; height: 2.5rem; }
.wordmark { font: 600 1.75rem / 1 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.wordmark i { font-style: normal; color: var(--oak); }

.site-header { padding: var(--s-8) 0; }

.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero h1 { max-width: 14ch; }
.lede { font-size: var(--t-lede); line-height: 1.4; color: var(--slate); margin-top: var(--s-8); }
.hero .btn { margin-top: var(--s-12); }

.kicker {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: var(--s-4);
}

.btn {
  display: inline-block;
  background: var(--action);
  color: var(--paper);
  font: 500 var(--t-body) / 1 var(--font-body);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius);
  text-decoration: none;
}
.btn:hover { background: var(--ink); }

.band { background: var(--slate); color: var(--paper); border: 0 !important; }
.band + .section { border-top: 0; }
.band .kicker, .band p { color: var(--mist); }
.band h2 { font-size: var(--t-h1); line-height: 1; color: var(--paper); }
.band h2 + p { margin-top: var(--s-8); font-size: var(--t-lede); line-height: 1.4; }
.band :focus-visible { outline-color: var(--paper); }

.person { display: flex; gap: var(--s-6); align-items: center; }
.person img { width: 5.5rem; height: 5.5rem; border-radius: 50%; flex: none; }
.links { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }

.site-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-12); font-size: var(--t-small); color: var(--fg-quiet); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-8); }

/* examples, lists and steps */
.section-head { margin-bottom: var(--s-12); }
.cols-3 { display: grid; gap: var(--s-12) var(--s-12); }
@media (min-width: 56rem) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { border-top: 2px solid var(--ink); padding-top: var(--s-6); }
.case h3 { margin-bottom: var(--s-4); }
.case .system { margin-top: var(--s-4); font-size: var(--t-small); color: var(--fg-quiet); }
.plain-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.stack > .plain-list { margin-top: var(--s-6); }
.plain-list li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.steps { counter-reset: step; list-style: none; margin: var(--s-12) 0 0; padding: 0; display: grid; gap: var(--s-8) var(--s-12); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; color: var(--mist); }
.steps li::before { content: counter(step); display: block; font: 600 var(--t-h2) / 1 var(--font-head); color: var(--paper); margin-bottom: var(--s-3); }
.steps strong { display: block; color: var(--paper); font-weight: 500; margin-bottom: var(--s-1); }
.after-cases { margin-top: var(--s-12); font-size: var(--t-lede); line-height: 1.4; color: var(--slate); }

/* recommendations */
.quote { margin: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: var(--s-6); }
.quote blockquote { margin: 0 0 var(--s-8); font: 600 var(--t-h3) / 1.3 var(--font-head); text-wrap: pretty; }
.quote figcaption { margin-top: auto; display: flex; gap: var(--s-4); align-items: center; font-size: var(--t-small); line-height: 1.4; color: var(--fg-quiet); }
.quote figcaption img { width: 3.25rem; height: 3.25rem; border-radius: 50%; flex: none; }
.quote figcaption strong { display: block; font-weight: 500; font-size: var(--t-body); color: var(--ink); }
.after-quotes { margin-top: var(--s-12); }
