/* tinkerpine.com styles. Fonts are served from this site; nothing is loaded from other companies. */

/* Young Serif, latin */
@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}
/* Young Serif, latin-ext (Turkish ğ ş İ and more) */
@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk, latin */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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;
}
/* Schibsted Grotesk, latin-ext (Turkish ğ ş İ and more) */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ================================================================ tokens */

:root {
  /* brand */
  --birch: #f2f4ef;
  --pine: #1d3a2e;
  --needle: #3e7558;
  --resin: #dfa13a;

  /* light theme */
  --bg: #f2f4ef;
  --bg-alt: #e9eee5;
  --surface: #fafbf8;
  --surface-2: #ffffff;
  --ink: #13251c;
  --ink-2: #435349;
  --ink-3: #5d6d63;
  --line: #d6ddd2;
  --line-strong: #b4bfb0;
  --brand: #1d3a2e;
  --brand-hover: #2c5541;
  --on-brand: #f2f4ef;
  --accent: #dfa13a;
  --accent-ink: #8a5508;
  --accent-soft: #f5e6c6;
  --green-soft: #dde9df;
  --focus: #a35f00;
  --grid: rgb(29 58 46 / 0.055);
  --sky-top: #f2f4ef;
  --sky-low: #e3ece0;
  --forest-far: #b3c8b6;
  --forest-mid: #6f9a7e;
  --forest-near: #1d3a2e;
  --sun: #f0c370;
  --sun-glow: rgb(240 195 112 / 0.28);
  --stars: 0;
  --panel: #1d3a2e;
  --panel-ink: #eef2ea;
  --panel-ink-2: #b9cbbd;
  --panel-tree: #24463a;
  --foot: #142a20;
  --scrim: rgb(10 22 16 / 0.5);
  --shadow-sm: 0 1px 2px rgb(19 37 28 / 0.06), 0 2px 8px -2px rgb(19 37 28 / 0.08);
  --shadow: 0 1px 2px rgb(19 37 28 / 0.06), 0 12px 32px -12px rgb(19 37 28 / 0.22);
  --shadow-lg: 0 2px 4px rgb(19 37 28 / 0.06), 0 40px 90px -24px rgb(19 37 28 / 0.4);

  --tile-a: #3e7558;
  --tile-b: #dfa13a;
  --tile-c: #6f9fb4;

  --font-display: "Young Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --head-h: 68px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.3, 1.45, 0.55, 1);
  color-scheme: light;
}

/* dark theme: follows the system unless the visitor picked light, or picked dark by hand */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1511;
    --bg-alt: #0f1a15;
    --surface: #131f19;
    --surface-2: #17251e;
    --ink: #e8ede5;
    --ink-2: #b3c0b7;
    --ink-3: #93a299;
    --line: #23342b;
    --line-strong: #345041;
    --brand: #e2a943;
    --brand-hover: #efbd62;
    --on-brand: #1b1205;
    --accent: #e2a943;
    --accent-ink: #e9b65a;
    --accent-soft: #2b2414;
    --green-soft: #18291f;
    --focus: #f0b955;
    --grid: rgb(232 237 229 / 0.035);
    --sky-top: #0b1410;
    --sky-low: #15271d;
    --forest-far: #1d3529;
    --forest-mid: #132a1e;
    --forest-near: #0a1510;
    --sun: #e6ece3;
    --sun-glow: rgb(230 236 227 / 0.08);
    --stars: 1;
    --panel: #132119;
    --panel-ink: #eef2ea;
    --panel-ink-2: #aebfb3;
    --panel-tree: #182b21;
    --foot: #070e0b;
    --scrim: rgb(0 0 0 / 0.6);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 34px -14px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 40px 90px -24px rgb(0 0 0 / 0.75);
    --tile-a: #5c9a77;
    --tile-b: #e2a943;
    --tile-c: #7fb0c6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1511;
  --bg-alt: #0f1a15;
  --surface: #131f19;
  --surface-2: #17251e;
  --ink: #e8ede5;
  --ink-2: #b3c0b7;
  --ink-3: #93a299;
  --line: #23342b;
  --line-strong: #345041;
  --brand: #e2a943;
  --brand-hover: #efbd62;
  --on-brand: #1b1205;
  --accent: #e2a943;
  --accent-ink: #e9b65a;
  --accent-soft: #2b2414;
  --green-soft: #18291f;
  --focus: #f0b955;
  --grid: rgb(232 237 229 / 0.035);
  --sky-top: #0b1410;
  --sky-low: #15271d;
  --forest-far: #1d3529;
  --forest-mid: #132a1e;
  --forest-near: #0a1510;
  --sun: #e6ece3;
  --sun-glow: rgb(230 236 227 / 0.08);
  --stars: 1;
  --panel: #132119;
  --panel-ink: #eef2ea;
  --panel-ink-2: #aebfb3;
  --panel-tree: #182b21;
  --foot: #070e0b;
  --scrim: rgb(0 0 0 / 0.6);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 34px -14px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 40px 90px -24px rgb(0 0 0 / 0.75);
  --tile-a: #5c9a77;
  --tile-b: #e2a943;
  --tile-c: #7fb0c6;
  color-scheme: dark;
}

/* Dark surfaces (product card, contact panel, footer) keep light text in both themes. */
.on-dark {
  --ink: #eef2ea;
  --ink-2: #b9cbbd;
  --ink-3: #9fb3a5;
  --line: rgb(238 242 234 / 0.14);
  --line-strong: rgb(238 242 234 / 0.3);
  --brand: #e2a943;
  --brand-hover: #efbd62;
  --on-brand: #1b1205;
  --accent-ink: #e9b65a;
  --focus: #f0b955;
  color: var(--ink);
}

/* ================================================================ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--head-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  outline: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
strong {
  font-weight: 650;
}
::selection {
  background: var(--accent);
  color: #1b1205;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
html:not(.js) .js-only {
  display: none !important;
}
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

/* ================================================================ buttons and small parts */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn .i {
  transition: transform 0.25s var(--ease-out);
}
.btn-solid {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}
.btn-solid:hover {
  background: var(--brand-hover);
}
.btn-ghost {
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.btn:active {
  transform: scale(0.97);
}
.btn:hover .i-arrow-right,
.btn:hover .i-external {
  transform: translateX(3px);
}
.btn:hover .i-external {
  transform: translate(2px, -2px);
}
.btn:hover .i-arrow-down {
  transform: translateY(3px);
}
.btn-sm {
  min-height: 40px;
  padding: 0.5em 1em;
  font-size: 0.9375rem;
}
.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 80%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover {
  text-decoration-color: var(--ink);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* a tiny workshop ruler */
.kicker::before {
  content: "";
  width: 30px;
  height: 9px;
  background: repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 6px) bottom / 100% 5px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 1.5px no-repeat;
  opacity: 0.85;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.status-soon .dot {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.status-live .dot {
  background: #3fae6e;
}
@media (prefers-reduced-motion: no-preference) {
  .status-beta .dot {
    animation: pulse 2.4s ease-out infinite;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 550;
}

.ticks {
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ticks .i {
  margin-top: 0.15em;
  padding: 3px;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  stroke-width: 2.4;
}

/* ================================================================ header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-head[data-scrolled] {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgb(0 0 0 / 0.35);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.logo {
  width: 32px;
  height: 32px;
  overflow: visible;
}
.logo-tree {
  fill: var(--forest-near);
  transform-origin: 50% 94%;
  transform-box: view-box;
}
:root[data-theme="dark"] .logo-tree,
.on-dark .logo-tree {
  fill: currentColor;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-tree {
    fill: currentColor;
  }
}
.logo-resin {
  fill: var(--resin);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-bottom: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .logo-tree {
    animation: sway 1.1s var(--ease-out);
  }
  .brand:hover .logo-resin {
    animation: drip 1.1s var(--ease-out);
  }
  .intro .site-head .logo-tree {
    animation: grow 1s var(--ease-spring) 0.15s both;
  }
  .intro .site-head .logo-resin {
    animation: pop 0.6s var(--ease-spring) 1s both;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-5deg);
  }
  55% {
    transform: rotate(3deg);
  }
  80% {
    transform: rotate(-1deg);
  }
}
@keyframes drip {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translateY(2px) scale(1.15);
  }
}

.nav ul {
  display: flex;
  gap: 4px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.975rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.nav a[aria-current="page"],
.nav a.is-active {
  color: var(--ink);
}
.nav a[aria-current="page"]::after,
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
.tool:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.tool:active {
  transform: scale(0.95);
}
.lang-now {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-caret {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease-out);
}
.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}
.lang {
  position: relative;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.lang-menu[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lang-menu:not([hidden]) {
    animation: menuIn 0.22s var(--ease-out);
    transform-origin: top right;
  }
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 550;
}
.lang-menu a:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.lang-menu .lang-code {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.lang-check {
  visibility: hidden;
  color: var(--accent-ink);
  stroke-width: 2.4;
}
.lang-menu a[aria-current="true"] .lang-check {
  visibility: visible;
}

.theme-btn .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .i-sun {
  display: block;
}
:root[data-theme="dark"] .theme-btn .i-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-btn .i-moon {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .theme-btn:hover .i-sun {
    transform: rotate(45deg);
  }
  .theme-btn:hover .i-moon {
    transform: rotate(-18deg);
  }
  .theme-btn .i {
    transition: transform 0.4s var(--ease-out);
  }
}

.menu-btn {
  display: none;
}
.menu-btn .m1,
.menu-btn .m2,
.menu-btn .m3 {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-btn[aria-expanded="true"] .m1 {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .m2 {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .m3 {
  transform: translateY(-5px) rotate(-45deg);
}
/* The header's backdrop-filter makes it the containing block for fixed children, so sizes are explicit. */
.scrim {
  position: fixed;
  top: var(--head-h);
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--scrim);
  z-index: -1;
}
.scrim[hidden] {
  display: none;
}

@media (max-width: 879px) {
  .js .menu-btn {
    display: inline-flex;
  }
  .js .nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
    padding: 8px 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .js .nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s, transform 0.3s var(--ease-out), visibility 0s;
  }
  .js .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .js .nav li + li {
    border-top: 1px solid var(--line);
  }
  .js .nav a {
    display: flex;
    min-height: 60px;
    padding: 0 4px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
  }
  .js .nav a::after {
    display: none;
  }
  .js .nav a:hover {
    background: none;
    color: var(--accent-ink);
  }
  html:not(.js) .head-row {
    flex-wrap: wrap;
    padding-block: 8px;
  }
  html:not(.js) .nav {
    order: 3;
    width: 100%;
  }
  html:not(.js) .nav ul {
    flex-wrap: wrap;
  }
}
@media (max-width: 400px) {
  .head-row {
    gap: 10px;
  }
  .head-tools {
    gap: 6px;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .lang-caret {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .nav {
    transition: none !important;
    transform: none !important;
  }
}
html.menu-open,
html.dialog-open {
  overflow: hidden;
}

/* ================================================================ forests */

.forest {
  width: 100%;
  overflow: hidden;
}
.forest use {
  fill: currentColor;
}
.forest .tree {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.layer-far {
  color: var(--forest-far);
}
.layer-mid {
  color: var(--forest-mid);
}
.layer-near {
  color: var(--forest-near);
}
.layer-near .ground {
  fill: var(--forest-near);
}
.stars {
  fill: #e8ede5;
  opacity: var(--stars);
  transition: opacity 0.6s;
}
.sun-disc {
  fill: var(--sun);
  transition: fill 0.6s;
}
.sun-glow {
  fill: var(--sun-glow);
}
.glint {
  fill: var(--resin);
  transform-box: fill-box;
  transform-origin: center;
}

/* ================================================================ hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-top) 35%, var(--sky-low) 100%);
  --px: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(36px, 6vw, 84px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 28px);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.eyebrow .i {
  color: var(--accent-ink);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 1.2rem + 6.4vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-line > span {
  display: inline-block;
}
.hero-accent {
  color: var(--needle);
}
:root[data-theme="dark"] .hero-accent {
  color: var(--accent-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-accent {
    color: var(--accent-ink);
  }
}
.hero-lede {
  max-width: 54ch;
  margin-top: clamp(20px, 3vw, 30px);
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}
.forest-hero {
  position: relative;
  height: clamp(170px, 16vw + 100px, 330px);
  margin-top: clamp(-20px, -2vw, 0px);
}
.forest-hero .layer {
  transition: transform 0.9s var(--ease-out);
}
.forest-hero .layer-far {
  transform: translateX(calc(var(--px) * -6px));
}
.forest-hero .layer-mid {
  transform: translateX(calc(var(--px) * -14px));
}
.forest-hero .layer-near {
  transform: translateX(calc(var(--px) * -24px));
}
.forest-hero .sun {
  transform: translateX(calc(var(--px) * 10px));
  transition: transform 1.2s var(--ease-out);
}
.forest-hero .ground {
  x: -40px;
  width: 1520px;
}

/* The one strong entrance: headline rises, the forest grows from the middle out, the sun comes up, a drop of resin catches the light. */
@media (prefers-reduced-motion: no-preference) {
  .intro .hero-line > span {
    animation: rise 1s var(--ease-out) 0.05s both;
  }
  .intro .hero-line + .hero-line > span {
    animation-delay: 0.16s;
  }
  .intro .hero .fade-up {
    animation: fadeUp 0.9s var(--ease-out) both;
  }
  .intro .hero .eyebrow {
    animation-delay: 0s;
  }
  .intro .hero .f2 {
    animation-delay: 0.32s;
  }
  .intro .hero .f3 {
    animation-delay: 0.44s;
  }
  .intro .forest-hero .tree {
    animation: grow 1.05s var(--ease-spring) both;
    animation-delay: calc(var(--ld, 0ms) + var(--d, 0ms));
  }
  .intro .forest-hero .layer-far {
    --ld: 150ms;
  }
  .intro .forest-hero .layer-mid {
    --ld: 330ms;
  }
  .intro .forest-hero .layer-near {
    --ld: 520ms;
  }
  .intro .forest-hero .sun-disc,
  .intro .forest-hero .sun-glow {
    animation: sunrise 1.8s var(--ease-out) 0.3s both;
  }
  .intro .forest-hero .glint {
    animation: pop 0.7s var(--ease-spring) 1.75s both;
  }
  .intro .forest-hero .stars {
    animation: fadeIn 2s ease 0.6s both;
  }
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes grow {
  from {
    transform: scale(0.55, 0);
  }
}
@keyframes sunrise {
  from {
    transform: translateY(90px);
    opacity: 0;
  }
}
@keyframes pop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.6);
  }
  100% {
    transform: scale(1);
  }
}

/* ================================================================ sections */

.section {
  padding-block: clamp(64px, 8vw, 112px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
  letter-spacing: -0.02em;
}
.section-intro {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.125rem;
}
.paper {
  position: relative;
  background-color: var(--bg);
  isolation: isolate;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 75%, transparent);
}

.reveal-ready [data-reveal] {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(22px);
}
.reveal-ready .cards > :nth-child(2),
.reveal-ready .principles > :nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-ready .principles > :nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-ready .principles > :nth-child(4) {
  transition-delay: 0.24s;
}

/* ================================================================ product cards */

.cards {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}
@media (min-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-6px);
  }
}
.card:has(.card-open:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.card-mos {
  background: var(--panel);
  border-color: transparent;
}
.card-art {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-mos .card-art {
  background: radial-gradient(120% 90% at 20% 0%, rgb(223 161 58 / 0.14), transparent 60%), linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent);
}
.card-photo .card-art {
  background: radial-gradient(120% 100% at 85% 0%, color-mix(in srgb, var(--tile-c) 18%, transparent), transparent 60%), var(--green-soft);
}
.art {
  width: 100%;
  height: 100%;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: clamp(22px, 3vw, 32px);
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-num {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--accent-ink);
}
.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  letter-spacing: -0.015em;
}
.card-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  letter-spacing: inherit;
}
.card-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-open:focus-visible {
  outline: none;
}
.card-summary {
  color: var(--ink-2);
  font-size: 1.0625rem;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ink);
}
.card-cta .i {
  transition: transform 0.3s var(--ease-out);
}
.card:hover .card-cta .i {
  transform: translateX(4px);
}

/* Cards that link to a product's own site: the whole card opens the site; "Details" sits above the link layer. */
.card-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.card-more {
  position: relative;
  z-index: 2;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.card-more:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.card-linked:hover .card-cta .i {
  transform: translate(3px, -3px);
}
.card-note {
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* Mos Terminal art: chart panes; on hover the lines redraw and the live dots pulse */
.art-mos .pane rect {
  fill: rgb(255 255 255 / 0.04);
  stroke: rgb(238 242 234 / 0.16);
}
.art-mos .spark {
  fill: none;
  stroke: #9fd0b0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.art-mos .p1 .spark {
  stroke: #e9b65a;
}
.art-mos .p2 .spark {
  stroke: #8fc1d6;
}
.art-mos .stop {
  stroke: #e9846d;
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}
.art-mos .live {
  fill: #eef2ea;
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .card-mos:is(:hover, :focus-within) .spark,
  .sheet[open] .is-drawn .spark {
    animation: draw 1.3s var(--ease-out) both;
  }
  .card-mos:is(:hover, :focus-within) .p1 .spark,
  .sheet[open] .is-drawn .p1 .spark {
    animation-delay: 0.1s;
  }
  .card-mos:is(:hover, :focus-within) .p2 .spark,
  .sheet[open] .is-drawn .p2 .spark {
    animation-delay: 0.2s;
  }
  .card-mos:is(:hover, :focus-within) .p3 .spark,
  .sheet[open] .is-drawn .p3 .spark {
    animation-delay: 0.3s;
  }
  .card-mos:is(:hover, :focus-within) .live {
    animation: blink 1.2s ease-in-out 1.1s infinite;
  }
  .card-mos:is(:hover, :focus-within) .stop {
    animation: stopFlash 0.9s ease 0.6s 2;
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes blink {
  50% {
    transform: scale(1.7);
    opacity: 0.6;
  }
}
@keyframes stopFlash {
  50% {
    stroke: #ffd9cf;
    stroke-width: 2.6;
  }
}

/* Photo organizer art: mixed tiles sort into three albums on hover (positions are generated by build.mjs) */
.art-photo .tile {
  transition: transform 0.7s var(--ease-spring);
}
.art-photo .tile rect {
  stroke: color-mix(in srgb, var(--surface-2) 70%, transparent);
  stroke-width: 2;
}
.tile-a rect {
  fill: var(--tile-a);
}
.tile-b rect {
  fill: var(--tile-b);
}
.tile-c rect {
  fill: var(--tile-c);
}
.art-photo .glyph {
  fill: rgb(255 255 255 / 0.78);
}
.art-photo .albums rect {
  fill: color-mix(in srgb, var(--ink) 22%, transparent);
}
.art-photo .albums {
  opacity: 0;
  transition: opacity 0.4s ease 0.35s;
}
@media (prefers-reduced-motion: no-preference) {
  .card-photo:is(:hover, :focus-within) .albums,
  .is-sorted .albums {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-photo .tile,
  .art-photo .albums {
    transition: none;
  }
}

.bench-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: 18px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 550;
}
.bench-note .i {
  width: 28px;
  height: 28px;
  color: var(--accent-ink);
}

/* ================================================================ principles */

.principles {
  display: grid;
  gap: 16px;
  counter-reset: rule;
}
@media (min-width: 640px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .principles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.principle {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: rule;
  transition: border-color 0.3s, background-color 0.3s, transform 0.45s var(--ease-out);
}
.principle::after {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.principle:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.principle-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-spring);
}
.principle-icon .i {
  width: 26px;
  height: 26px;
}
.principle:hover .principle-icon {
  background: var(--brand);
  color: var(--on-brand);
}
@media (prefers-reduced-motion: no-preference) {
  .principle:hover .principle-icon {
    transform: rotate(-8deg) scale(1.06);
  }
}
.principle h3 {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.principle p {
  color: var(--ink-2);
  font-size: 1rem;
}

/* ================================================================ contact */

.contact {
  padding-top: 0;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(110px, 12vw, 140px);
  border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(90% 120% at 100% 0%, rgb(223 161 58 / 0.16), transparent 55%), var(--panel);
}
.contact-copy p:not(.kicker) {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.125rem;
}
.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.mail-big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 0.9rem + 3.3vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: rgb(223 161 58 / 0.6);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.mail-big:hover {
  color: #f6dba4;
  text-decoration-color: var(--resin);
}
.btn-copy {
  border-color: var(--line-strong);
  color: var(--ink);
  min-height: 44px;
  padding: 0.5em 1.05em;
}
.btn-copy:hover {
  border-color: var(--ink);
}
.btn-copy .i-check {
  display: none;
  color: var(--resin);
  stroke-width: 2.4;
}
.btn-copy.is-done .i-check {
  display: block;
}
.btn-copy.is-done .i-copy {
  display: none;
}
.contact-mos {
  color: var(--ink-2);
}
.contact-mos a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}
.forest-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 600px);
  height: 120px;
  color: var(--panel-tree);
  pointer-events: none;
}
.layer-panel {
  color: var(--panel-tree);
}
.layer-panel .ground {
  fill: var(--panel-tree);
}

/* ================================================================ footer */

.site-foot {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  background: var(--foot);
}
.forest-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 70px;
  pointer-events: none;
}
.layer-foot {
  color: var(--foot);
}
.layer-foot .ground {
  fill: var(--foot);
}
.foot-grid {
  display: grid;
  gap: 36px;
  padding-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 980px) {
  .foot-grid {
    grid-template-columns: 1fr 2.6fr;
  }
}
.foot-brand .brand {
  color: var(--ink);
}
.foot-brand p {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--ink-2);
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px 28px;
}
.foot-h {
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: #f6dba4;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-ext {
  width: 0.9em;
  height: 0.9em;
  margin-left: 5px;
  opacity: 0.7;
}
.foot-col a[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--resin);
}
.foot-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* ================================================================ dialogs */

.sheet {
  width: min(100% - 32px, 760px);
  max-width: none;
  max-height: min(100dvh - 48px, 960px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.sheet::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sheet-panel {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.sheet-art {
  position: relative;
  height: clamp(150px, 26vw, 220px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sheet-art > div {
  height: 100%;
}
.sheet-art.card-mos {
  background: radial-gradient(120% 90% at 20% 0%, rgb(223 161 58 / 0.16), transparent 60%), var(--panel);
}
.sheet-art.card-photo {
  background: radial-gradient(120% 100% at 85% 0%, color-mix(in srgb, var(--tile-c) 18%, transparent), transparent 60%), var(--green-soft);
}
.sheet-art .art {
  height: 100%;
  width: auto;
  margin-inline: auto;
}
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  background: rgb(10 20 15 / 0.45);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.sheet-close:hover {
  background: rgb(10 20 15 / 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .sheet-close:hover {
    transform: rotate(90deg);
  }
}
.sheet-close:focus-visible {
  outline-color: #f0b955;
}
.sheet-body {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(24px, 4vw, 40px);
}
.sheet-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  letter-spacing: -0.02em;
}
.sheet-summary {
  font-size: 1.1875rem;
  font-weight: 550;
}
.sheet-body > p:not(.card-kicker):not(.status):not(.sheet-summary) {
  color: var(--ink-2);
}
.sheet-h {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sheet-body .ticks {
  width: 100%;
}
.callout {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 0.975rem;
}
.callout .i {
  margin-top: 0.15em;
  color: var(--accent-ink);
}
.callout div {
  display: grid;
  gap: 8px;
}
.sheet-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
}
@media (max-width: 639px) {
  .sheet {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
  }
  .sheet-panel {
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet-panel {
    animation: sheetIn 0.5s var(--ease-out) both;
  }
  .sheet[open]::backdrop {
    animation: fadeIn 0.3s ease both;
  }
  .sheet.is-closing .sheet-panel {
    animation: sheetOut 0.22s ease-in both;
  }
  .sheet.is-closing::backdrop {
    animation: fadeOut 0.22s ease-in both;
  }
}
@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
}
@keyframes sheetOut {
  to {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  @keyframes sheetIn {
    from {
      transform: translateY(100%);
    }
  }
  @keyframes sheetOut {
    to {
      transform: translateY(100%);
    }
  }
}

/* ================================================================ language suggestion */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: min(100% - 32px, 560px);
  padding: 16px 52px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  transition: transform 0.5s var(--ease-out);
}
.toast.is-in {
  transform: translate(-50%, 0);
}
.toast p {
  flex: 1 1 220px;
  font-weight: 600;
}
.toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toast-x {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.toast-x:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* ================================================================ inner pages */

.page-hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 88px);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-low));
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  letter-spacing: -0.025em;
}
.page-lede {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.125rem;
}
.forest-strip {
  height: 96px;
  margin-top: clamp(28px, 4vw, 48px);
}
.forest-strip .layer-near,
.forest-strip .layer-near .ground {
  color: var(--forest-mid);
  fill: var(--forest-mid);
}

/* privacy */
.doc-layout {
  display: grid;
  gap: 32px;
  padding-block: clamp(36px, 5vw, 64px) 24px;
}
@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
  }
  .toc {
    position: sticky;
    top: calc(var(--head-h) + 28px);
    align-self: start;
  }
}
.toc {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.toc-title {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
}
@media (min-width: 560px) and (max-width: 959px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
}
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
}
.doc {
  max-width: 70ch;
}
.doc h2 {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  letter-spacing: -0.015em;
}
.doc h3 {
  margin: 26px 0 10px;
  font-size: 1.1875rem;
  font-weight: 700;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc p + p {
  margin-top: 14px;
}
.doc ul:not(.ticks) {
  display: grid;
  gap: 12px;
}
.doc ul:not(.ticks) li {
  position: relative;
  padding-left: 24px;
}
.doc ul:not(.ticks) li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.doc a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--accent) 80%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.summary-card {
  margin-bottom: 32px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--needle) 22%, transparent);
}
.summary-card .summary-title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.summary-card li {
  color: var(--ink);
  font-weight: 550;
}

/* support */
.support-wrap {
  padding-block: clamp(36px, 5vw, 64px) 24px;
}
.help-cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .help-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s;
}
.help-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.help-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.help-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.help-card p {
  color: var(--ink-2);
}
.help-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.help-mail {
  font-weight: 650;
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 80%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.faq-section {
  margin-top: clamp(56px, 8vw, 96px);
  max-width: 820px;
}
.faq-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  letter-spacing: -0.02em;
}
.faq-group {
  margin-top: 36px;
}
.faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.faq-group-title .i {
  color: var(--accent-ink);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 650;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover .faq-q {
  color: var(--accent-ink);
}
.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.faq-icon .i {
  width: 18px;
  height: 18px;
}
.faq[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.faq-a {
  padding: 0 52px 22px 4px;
  color: var(--ink-2);
}
.faq-a strong {
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }
  .faq[open]::details-content {
    height: auto;
  }
}
.faq:target summary {
  color: var(--accent-ink);
}

/* 404 */
.nf {
  position: relative;
  padding-top: clamp(48px, 9vw, 120px);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-low));
}
.nf h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem);
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.forest-nf {
  height: clamp(150px, 14vw + 60px, 230px);
  margin-top: clamp(28px, 5vw, 56px);
}
.signpost {
  fill: var(--accent);
}
.signpost rect {
  fill: var(--forest-near);
}
/* the 404 forest already meets the footer */
main:has(.nf) + .site-foot {
  margin-top: 0;
}
main:has(.nf) + .site-foot .forest-foot {
  display: none;
}

/* ================================================================ theme switch: a circle that opens from the button */

@media (prefers-reduced-motion: no-preference) {
  .theme-vt::view-transition-old(root),
  .theme-vt::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }
  .theme-vt::view-transition-new(root) {
    animation: themeReveal 0.7s var(--ease-out);
  }
}
@keyframes themeReveal {
  from {
    clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0));
  }
  to {
    clip-path: circle(150vmax at var(--vt-x, 100%) var(--vt-y, 0));
  }
}

/* ================================================================ print */

@media print {
  .site-head,
  .forest,
  .toc,
  .site-foot,
  .toast {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ---- generated by build.mjs ---- */
.d0{--d:0ms}.d1{--d:75ms}.d2{--d:150ms}.d3{--d:225ms}.d4{--d:300ms}.d5{--d:375ms}.d6{--d:450ms}.d7{--d:525ms}.d8{--d:600ms}
@media (prefers-reduced-motion: no-preference){.art-photo .t0{transition-delay:0ms}.card-photo:is(:hover,:focus-within) .t0,.is-sorted .t0{transform:translate(-23px,41px)}.art-photo .t1{transition-delay:30ms}.card-photo:is(:hover,:focus-within) .t1,.is-sorted .t1{transform:translate(24px,41px)}.art-photo .t2{transition-delay:60ms}.card-photo:is(:hover,:focus-within) .t2,.is-sorted .t2{transform:translate(71px,41px)}.art-photo .t3{transition-delay:90ms}.card-photo:is(:hover,:focus-within) .t3,.is-sorted .t3{transform:translate(-163px,36px)}.art-photo .t4{transition-delay:45ms}.card-photo:is(:hover,:focus-within) .t4,.is-sorted .t4{transform:translate(171px,-12px)}.art-photo .t5{transition-delay:75ms}.card-photo:is(:hover,:focus-within) .t5,.is-sorted .t5{transform:translate(-63px,-17px)}.art-photo .t6{transition-delay:105ms}.card-photo:is(:hover,:focus-within) .t6,.is-sorted .t6{transform:translate(-20px,-12px)}.art-photo .t7{transition-delay:135ms}.card-photo:is(:hover,:focus-within) .t7,.is-sorted .t7{transform:translate(-64px,-17px)}.art-photo .t8{transition-delay:90ms}.card-photo:is(:hover,:focus-within) .t8,.is-sorted .t8{transform:translate(84px,-70px)}.art-photo .t9{transition-delay:120ms}.card-photo:is(:hover,:focus-within) .t9,.is-sorted .t9{transform:translate(127px,-65px)}.art-photo .t10{transition-delay:150ms}.card-photo:is(:hover,:focus-within) .t10,.is-sorted .t10{transform:translate(-107px,-70px)}.art-photo .t11{transition-delay:180ms}.card-photo:is(:hover,:focus-within) .t11,.is-sorted .t11{transform:translate(35px,-70px)}}
