/* Straynode site. Canon: brand/brandkit.html. Defaults: ~/vault/ops/FRONTEND_GUIDE.md.
   Four type sizes only: display, title, body, small. */
:root {
  --bg: #ffffff; --ink: #1b1b19; --soft: rgba(27,27,25,.64);
  --display: clamp(40px, 5.4vw, 68px);
  --title: clamp(28px, 2.8vw, 36px);
  --body: 17px;
  --small: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 13vw, 168px);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121211; --ink: #f2f2f0; --soft: rgba(242,242,240,.64); }
}
:root[data-theme="dark"] { --bg: #121211; --ink: #f2f2f0; --soft: rgba(242,242,240,.64); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--ink); font: 400 var(--body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-optical-sizing: auto; }
h1 { font-size: var(--display); line-height: 1.06; max-width: 15em; }
h2 { font-size: var(--title); line-height: 1.15; }
/* Figures are never set in the serif. */
.fig { font-family: var(--sans); letter-spacing: 0; font-size: .92em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 34em; }
p + p { margin-top: 1em; }
.soft { color: var(--soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: block; font: 400 25px/1 "Space Grotesk", sans-serif; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.logo svg { display: inline-block; width: .728em; height: .728em; vertical-align: -0.014em; margin-right: .157em; }
.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.menu-btn { display: none; }

/* Mobile menu: always a hamburger below 760px. */
@media (max-width: 759px) {
  .nav { display: none; }
  .menu-btn { all: unset; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
  .menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .2s; }
  .menu-btn span + span { margin-top: 6px; }
  .menu-btn > i { display: grid; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .panel { position: fixed; inset: 76px 0 0; background: var(--bg); padding: 40px var(--gutter); display: flex; flex-direction: column; gap: 22px; }
  .panel[hidden] { display: none; }
  .panel a { font: 400 var(--title)/1.15 var(--serif); letter-spacing: -0.02em; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 760px) { .panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }

/* Sections */
.hero { padding-top: clamp(72px, 12vw, 160px); padding-bottom: var(--section); }
.hero > p { margin-top: 32px; }
.hero > .btn { margin-top: 40px; }
.section { padding-bottom: var(--section); }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 48px; }
}
.list { list-style: none; display: grid; gap: 14px; }
.steps { list-style: none; display: grid; gap: 28px; max-width: 34em; }
.close { padding-bottom: var(--section); }
.close .btn { margin-top: 36px; }

/* The one button style. */
.btn { display: inline-block; background: var(--ink); color: var(--bg); font: 500 var(--body)/1 var(--sans); padding: 17px 26px; border-radius: 3px; text-decoration: none; }
.btn:hover { opacity: .86; }

/* Products */
.product { display: grid; gap: 28px; }
@media (min-width: 900px) { .product { grid-template-columns: 5fr 7fr; gap: 48px; } }
.product { align-items: center; }
.jelly { width: min(100%, 340px); height: auto; }
@media (max-width: 899px) { .jelly { width: 220px; } }
.product-text p { margin-top: 20px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }

/* Every page is at least one screen tall and the footer sits at the bottom: main takes the spare height. */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
/* A page whose content should fit one screen (products) also centres what's in main. */
body.fit main { display: grid; align-content: center; padding: clamp(32px, 6vh, 72px) 0; }
body.fit main > .wrap { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer */
.foot { padding: 0 0 48px; font-size: var(--small); color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
.foot .logo { font-size: 18px; color: var(--ink); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; }
