/* yarramate.dev shared stylesheet.
   The editor's own tokens (yarramate/src/visual-app/styles.css), so the
   site and the tool read as one instrument. Light only; system faces only.
   Page-specific rules live inline in each page. */

:root {
  --paper: #e8eef0;
  --ink: #182228;
  --cobalt: #2457a6;
  --eucalyptus: #416f65;
  --ochre: #8c4d18;
  --failure: #a3403a;
  --quiet: #5c676c;
  --rule: #c3ccd0;
  --rule-firm: #9aa5aa;
  --sheet: #f5f8f9;
  --white: #ffffff;
  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --body: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --utility: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --nav-h: 64px;
  --gutter-l: clamp(20px, 5vw, 72px);
  --gutter-r: clamp(20px, 6.67vw, 96px);
  --shadow: 0 14px 40px rgba(24, 34, 40, 0.16);
  color-scheme: light;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

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

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

figure { margin: 0; }

.skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule-firm);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Nav, identical on every page */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--eucalyptus); }
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.site-nav nav a { color: var(--quiet); text-decoration: none; white-space: nowrap; }
.site-nav nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-nav nav a.btn { color: var(--sheet); }
.site-nav nav a.btn:hover { text-decoration: none; }

/* Buttons: square blocks, eucalyptus fill, paper text */

.btn, .btn-big {
  display: inline-block;
  background: var(--eucalyptus);
  color: var(--sheet);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  border: 0;
  border-radius: 0;
}
.btn-big { padding: 16px 26px; font-size: 18px; }
.btn:hover, .btn-big:hover { background: #355d54; }
.btn-quiet {
  display: inline-block;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 6px;
  text-decoration: none;
}
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Links out of copy: cobalt, 600, the trailing chevron is in the text */

.go {
  display: inline-block;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.go:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Type scale at 1440 wide: thesis 66/1.02, screen 44/1.08, lede 18,
   body 17/1.5, captions 13 utility, eyebrows 12 utility. */

.eyebrow {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eucalyptus);
}
.h-screen { font-size: clamp(30px, 3.05vw, 44px); line-height: 1.08; }
.h-thesis { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; }
.h-sub { font-size: 22px; line-height: 1.25; }
.lede { font-size: clamp(16px, 1.25vw, 18px); color: var(--quiet); }
.small { font-size: 14px; color: var(--quiet); }
.mono { font-family: var(--utility); font-size: 12.5px; }
figcaption, .caption {
  font-size: 13px;
  color: var(--quiet);
  font-family: var(--utility);
}

/* Screenshot frame */

.shot {
  border: 1px solid var(--rule-firm);
  box-shadow: var(--shadow);
  background: var(--white);
}

/* Small furniture shared by pages */

.card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card p { font-size: 14.5px; color: var(--quiet); }
.chip {
  display: inline-block;
  border: 1px solid var(--rule-firm);
  background: var(--white);
  padding: 5px 9px;
  font-family: var(--utility);
  font-size: 12px;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--quiet);
}
.site-footer a { color: var(--quiet); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .links { display: flex; gap: 0 8px; flex-wrap: wrap; }

@media (max-width: 1023px) {
  body { font-size: 16px; }
  .site-nav {
    position: static;
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 14px var(--gutter-l);
  }
  .site-nav nav {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
  }
  .btn-big { padding: 14px 20px; font-size: 16px; }
}

/* Phones: the brand on one row, the links on one scrollable row beneath,
   so the header stays short and the thesis keeps its first screen. */
@media (max-width: 599px) {
  .site-nav { padding: 10px var(--gutter-l); row-gap: 6px; }
  .brand { font-size: 20px; }
  .site-nav nav {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    font-size: 13.5px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .site-nav nav a.btn { padding: 6px 10px; }
}
