/* darknano in the Taenite kit (draft): Philosopher type, grey-green neutrals, lime rationed to status, focus
   and the primary button; the oxide ramp only on the mark and one headline word. Tokens from Taenite Brand Kit.md. */
:root {
  --background: #f5f7f4; --foreground: #141714;
  --primary: #212621; --primary-foreground: #eef1ee;
  --muted: #e4e9e3; --muted-foreground: #535f53; --border: #d0d7cf;
  --taenite: #9edb1e; --fern: #5bc15b; --lichen: #d4f098;
  --taenite-ink: #435e0d; --ignition-ink: #c44400;
  --ignition: #f36730; --ignition-2: #f9a733;
  --oxide-gradient: linear-gradient(100deg, #f36730 0%, #f9a733 32%, #9edb1e 72%, #5bc15b 100%);
  --kamacite: #141714; --kamacite-2: #212621; --plessite: #313931; --olive: #1a2405;
  --on-dark: #eef1ee; --on-dark-muted: #9aa79a;
  --font: "Philosopher", system-ui, sans-serif;
  --header-font: "Jura", system-ui, sans-serif;   /* the top bar only: wordmark and nav */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--foreground); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--taenite); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1184px; margin: 0 auto; padding: 0 20px; }
.label { margin: 0; font: 700 11px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }

/* bar */
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
/* The header as Liquid Glass: a floating capsule over the page, frosted (blur plus a colour boost, so what's behind it
   shows through), with a bright rim along the top edge and a faint one along the bottom, like light on glass. It's
   dark glass over dark sections and turns light, with dark text, over light ones (the script at the end of index.html
   sets .on-light). The hero is pulled up underneath it (the negative bottom margin) so there is always something to
   see through. */
.bar { position: sticky; top: 12px; z-index: 10; width: min(1144px, calc(100% - 24px)); margin: 12px auto -68px;
  border-radius: 999px; color: var(--on-dark); font-family: var(--header-font);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .08) 100%), rgba(24, 26, 24, .38);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .1), inset 0 0 14px rgba(255, 255, 255, .05), 0 8px 28px rgba(0, 0, 0, .28);
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.bar .bar-in { height: 52px; padding: 0 8px 0 16px; }
.bar.on-light { color: var(--foreground);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .66) 55%, rgba(255, 255, 255, .76) 100%), rgba(245, 247, 244, .4);
  border-color: rgba(20, 23, 20, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(20, 23, 20, .04), 0 8px 26px rgba(20, 23, 20, .12); }
.wordmark { display: flex; align-items: center; gap: 10px; font: 700 15px var(--header-font); letter-spacing: .16em; text-transform: lowercase; text-decoration: none; }
nav { display: flex; gap: 4px; }
nav a { font-size: 15px; text-decoration: none; color: var(--on-dark-muted); padding: 7px 14px; border-radius: 999px; transition: color 150ms var(--ease), background 150ms var(--ease); }
nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .1); }
.bar.on-light .wordmark { color: var(--foreground); }
.bar.on-light nav a { color: var(--muted-foreground); }
.bar.on-light nav a:hover { color: var(--foreground); background: rgba(20, 23, 20, .06); }

/* hero: the only patterned surface, the Dot grid that Linear and Scalar use by default (dots 12 px apart).
   Everything else is plain white or Kamacite. */
.stage { position: relative; background: var(--kamacite); color: var(--on-dark); overflow: hidden; }
.dots-dark { background: #181a18 radial-gradient(circle, rgba(238, 241, 238, .17) 1px, transparent 1.4px) 6px 6px / 12px 12px; }   /* the apps' Dot grid: fine dots 12 pt apart */
.hero { display: flex; align-items: center; }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: 96px;
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.hero .label { color: var(--on-dark-muted); }
/* The home hero is a slideshow of the apps, each picture floating straight on the dots with nothing behind it. The
   current slide sits in the middle; the one leaving glides out to the left and the next comes in from the right. */
.showcase { position: relative; width: 100%; height: 700px; }
.slide { position: absolute; left: 50%; top: 104px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px;
  transform: translateX(calc(-50% + 55vw)); opacity: 0;
  transition: transform 1100ms var(--ease), opacity 700ms var(--ease); }
.slide.is-current { transform: translateX(-50%); opacity: 1; }
.slide.is-past { transform: translateX(calc(-50% - 55vw)); opacity: 0; }
.slide img { display: block; height: 440px; width: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .35); }
.slide img.phone { border-radius: 34px; }
/* menus captured from the screen already have macOS's own rounded edge and shadow */
.slide img.cutout { border: 0; border-radius: 0; box-shadow: none; height: 470px;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 1px rgba(255, 255, 255, .25)); }   /* follows the menu's own shape, arrow included */
/* app windows: landscape, so sized by width */
.slide img.wide { height: auto; width: min(860px, 88vw); max-width: none; }
.slide figcaption { font-size: 15px; color: var(--on-dark-muted); white-space: nowrap; }
.slide figcaption b { color: var(--on-dark); font-weight: 700; margin-right: 8px; }
.hero h1 { margin: 10px 0 12px; font: 700 clamp(34px, 5vw, 56px)/.98 var(--font); letter-spacing: -.01em; }
.lede { margin: 0 0 22px; max-width: 46ch; font-size: 19px; color: rgba(238, 241, 238, .78); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 28px; border-radius: 10px; font: 400 15px var(--font); text-decoration: none; transition: transform 150ms var(--ease), filter 150ms var(--ease); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary { background: linear-gradient(180deg, #d4f098, #c7ec78 40%, #9edb1e); color: var(--olive); box-shadow: 0 10px 22px rgba(158, 219, 30, .38); }
.btn-quiet { background: var(--kamacite-2); border: 1px solid rgba(255, 255, 255, .15); color: var(--on-dark); }

/* sections */
.section { padding: 88px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font: 700 32px/1.1 var(--font); letter-spacing: -.005em; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 80px; }
/* a card that spans the whole row: art on the left, details on the right */
.card.wide { grid-column: 1 / -1; flex-direction: row; }
.card.wide .art { flex: 0 0 46%; aspect-ratio: auto; min-height: 300px; }
.card.wide .icon { width: 44%; max-width: 220px; }
.card-actions { padding-top: 14px; }
.art { position: relative; aspect-ratio: 16 / 11; background: var(--kamacite); overflow: hidden; }
.art img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art .icon { width: 44%; border-radius: 22%; }
/* iPhone, iPad and watch icons fill their square, unlike Mac icons, which carry their own margin and tile */
.art .icon.bleed { width: 36%; }
.art .icon.round { border-radius: 50%; }
.art .shot { height: 86%; width: auto; max-width: none; border-radius: 14px; }
.art .phone { height: 92%; border-radius: 20px; }
.art .watch { height: 72%; border-radius: 34px; }
.meta { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta h3 { margin: 0; font: 700 22px/1.2 var(--font); letter-spacing: -.005em; }
.meta p:not(.label) { margin: 0; }
.chip { font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--muted); color: var(--taenite-ink); white-space: nowrap; }
.chip.warm { color: var(--ignition-ink); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; }
dt { font: 700 11px/2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
dd { margin: 0; }

/* hardware, on Kamacite */
.dark { background: var(--kamacite); color: var(--on-dark); }
.dark .label, .dark .muted { color: var(--on-dark-muted); }
.hw { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hw-art { background: var(--kamacite-2); border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; padding: clamp(20px, 4vw, 48px); }
.hw-art svg { width: 100%; height: auto; }
.hw-art .body { fill: var(--kamacite); stroke: rgba(238, 241, 238, .5); stroke-width: 1.5; }
.hw-art .knob circle { fill: var(--plessite); stroke: rgba(238, 241, 238, .6); stroke-width: 1.5; }
.hw-art .knob line { stroke: var(--on-dark); stroke-width: 2; stroke-linecap: round; }
.hw-art .fader rect { fill: var(--plessite); }
.hw-art .fader .cap, .hw-art .keys rect { fill: var(--kamacite-2); stroke: rgba(238, 241, 238, .6); stroke-width: 1.5; }
.hw-art .lit { fill: var(--taenite) !important; stroke: none !important; }
.hw-art .dot { fill: var(--taenite); filter: drop-shadow(0 0 6px var(--taenite)); }
.hw-text p { margin: 0 0 14px; font-size: 21px; max-width: 34ch; }
.hw-text .muted { font-size: 17px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cols p { margin: 0; font-size: 19px; max-width: 46ch; }

.foot { border-top: 1px solid var(--border); }
.foot-in { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 40px; font-size: 15px; color: var(--muted-foreground); }

@media (max-width: 820px) {
  nav { gap: 0; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; padding-top: 104px; padding-bottom: 44px; }
  .showcase { height: 540px; }
  .slide { top: 88px; }
  .slide img, .slide img.cutout { height: 370px; }
  .slide img.wide { height: auto; width: 88vw; }
  .slide figcaption { font-size: 13px; }
  .bar .bar-in { padding: 0 4px 0 10px; }
  .wordmark { font-size: 14px; letter-spacing: .06em; gap: 8px; }
  nav a { padding: 6px 7px; font-size: 13px; }
  .section { padding: 64px 0; }
  .grid, .hw, .cols { grid-template-columns: 1fr; }
  .card.wide { flex-direction: column; }
  .card.wide .art { flex: none; aspect-ratio: 16 / 11; min-height: 0; }
  .hw, .cols { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-past { transform: translateX(-50%) !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
