:root {
  color-scheme: light dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  --page: light-dark(#f8f8fa, #14141b);
  --ink: light-dark(#14141b, #f8f8fa);
  --muted: light-dark(#524e60, #c6bfd2);
  --accent: light-dark(#6135a9, #cbb6ff);
  --line: light-dark(#ded9e7, #443b53);
  --control-line: light-dark(#91879f, #807491);
  --surface: light-dark(#fff, #201d2a);
  --monogram-panel: light-dark(#eee8fa, #242032);
  --monogram-grid: light-dark(#d9cbed, #3b324e);
  --feature-rule: light-dark(#b6a0ed, #8c71c3);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(calc(100% - 3rem), 72rem); margin-inline: auto; }

.site-header, .site-footer {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
}
.site-header > nav { display: flex; flex-wrap: wrap; gap: 0 clamp(0.75rem, 2.5vw, 1.75rem); margin-left: auto; }
.site-header > nav a, .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header > nav a:hover, .back-link:hover, .text-link:hover { color: var(--accent); }
.site-header > nav a:hover, .site-header > nav a[aria-current="page"], .back-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.site-preferences {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.language-switcher {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--surface);
}
.language-choice {
  display: grid;
  place-items: center;
  min-width: 2.375rem;
  min-height: 2.125rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.language-choice[aria-current="page"], .language-link:hover {
  color: var(--accent);
  background: var(--monogram-panel);
}
.language-link:focus-visible { outline-offset: 1px; }
.theme-toggle:not([hidden]) {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--control-line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--monogram-panel); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-icon { display: block; border-radius: 50%; }
.theme-toggle[data-mode="dark"] .theme-icon--sun,
.theme-toggle[data-mode="light"] .theme-icon--moon { display: none; }
.theme-icon--sun {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
  border: 1.5px solid currentColor;
}
.theme-icon--sun::before,
.theme-icon--sun::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: 0 -8px, 0 8px, -8px 0, 8px 0;
  transform: translate(-50%, -50%);
  content: "";
}
.theme-icon--sun::after { transform: translate(-50%, -50%) rotate(45deg); }
.theme-icon--moon {
  width: 1.125rem;
  height: 1.125rem;
  box-shadow: inset 5px -3px currentColor;
  transform: translateY(-1px) rotate(-12deg);
}
@media (forced-colors: active) {
  .theme-icon { forced-color-adjust: none; color: ButtonText; }
  .language-choice[aria-current="page"] { outline: 1px solid Highlight; }
}
.skip-link { position: absolute; z-index: 1; top: 0.5rem; left: 0.5rem; padding: 0.75rem 1rem; color: var(--page); background: var(--ink); }
.skip-link:not(:focus) { clip-path: inset(50%); }

.hero, .product-hero {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.product-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -0.065em; }
h1 span { color: var(--accent); }
.product-hero h1 { font-size: clamp(3.7rem, 9vw, 7.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.08; letter-spacing: -0.045em; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.035em; }
p { color: var(--muted); line-height: 1.6; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.intro { max-width: 41ch; margin-top: 1.4rem; font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.35rem;
  color: var(--page);
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--accent); }

.monogram {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.13;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background-color: var(--monogram-panel);
  background-image: linear-gradient(var(--monogram-grid) 1px, transparent 1px), linear-gradient(90deg, var(--monogram-grid) 1px, transparent 1px);
  background-position: center;
  background-size: 12.5% 12.5%;
}
.monogram img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .monogram img { filter: invert(1); mix-blend-mode: screen; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .monogram img { filter: invert(1); mix-blend-mode: screen; }
}

.section { padding-block: clamp(2.25rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.section > h2 { margin-bottom: 1.5rem; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}
.project-art { width: 100%; border-radius: 0.5rem; background: #1b1039; }
.project-copy { padding: 0.25rem clamp(0.25rem, 2vw, 1.25rem) 0.5rem; }
.project-copy .eyebrow { margin-bottom: 0.5rem; }
.project-copy h3 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.project-copy h3 + p, .studio-info h2 + p, .features h3 + p { margin-top: 0.65rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.45rem; font-weight: 700; text-underline-offset: 0.25em; }

.studio-info, .features { display: grid; gap: 1.5rem clamp(1.5rem, 5vw, 3.5rem); }
.studio-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-info p { max-width: 46ch; }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features article { padding-top: 1rem; border-top: 2px solid var(--feature-rule); }
.back-link { margin: -0.5rem 0 1rem; text-decoration: underline; text-underline-offset: 0.25em; }
.availability { margin-top: 1rem; color: var(--accent); font-size: 0.9375rem; font-weight: 700; }
.product-hero .button { margin-top: 1rem; }
.product-screenshot { margin: clamp(1.75rem, 4vw, 3rem) 0 0; }
.product-screenshot img { width: 100%; border: 1px solid var(--line); border-radius: 0.75rem; }
.product-screenshot figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.product-contact h2 { margin-bottom: 0.65rem; }
.privacy-notice { max-width: 70ch; padding-block: clamp(2.75rem, 8vw, 5rem); }
.privacy-notice header { padding-bottom: 1.75rem; }
.privacy-notice .notice-date { margin-top: 0.75rem; font-size: 0.9375rem; }
.privacy-notice .intro { max-width: none; }
.privacy-notice section { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.privacy-notice h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.privacy-notice section p { margin-top: 0.7rem; }
.privacy-notice a { text-underline-offset: 0.2em; }
.privacy-notice a:hover { color: var(--accent); }
.journal-heading { padding-block: clamp(2.75rem, 7vw, 5rem); }
.journal-heading .intro { max-width: 52ch; }
.journal-feed { padding-bottom: clamp(2.75rem, 7vw, 5rem); }
.journal-entry .project-copy { padding-block: 0.5rem; }
.journal-entry h2 { margin: 0.6rem 0; }
.journal-entry h2 a, .journal-article a { text-underline-offset: 0.2em; }
.journal-entry h2 a { text-decoration-thickness: 0.04em; }
.journal-entry h2 a:hover, .journal-article a:hover { color: var(--accent); }
.journal-date { font-size: 0.9375rem; }
.journal-article { max-width: 72ch; padding-block: clamp(2.75rem, 8vw, 5rem); }
.journal-article header { padding-bottom: clamp(1.75rem, 5vw, 2.75rem); border-bottom: 1px solid var(--line); }
.journal-article h1 { margin-top: 0.65rem; }
.journal-article .intro { max-width: none; }
.journal-article section { margin-top: clamp(1.75rem, 5vw, 2.75rem); }
.journal-article section h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.journal-article section p { margin-top: 0.8rem; }
.journal-article figure { margin: clamp(1.75rem, 5vw, 2.75rem) 0 0; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: 0.875rem; text-underline-offset: 0.25em; }

@media (max-width: 44rem) {
  .hero, .product-hero, .project, .studio-info, .features { grid-template-columns: 1fr; }
  .monogram { width: min(100%, 25rem); }
  .project-copy { padding: 0 0.5rem 0.5rem; }

  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    padding-block: 0.5rem;
  }
  .site-header > nav { justify-content: flex-end; }
  .site-preferences { grid-column: 1 / -1; justify-self: end; padding-left: 0; border-left: 0; }
}

@media (max-width: 30rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-footer { flex-wrap: wrap; padding-block: 0.75rem; }
  .site-header > nav { gap: 0 0.6rem; }
  .site-header > nav a { font-size: 0.875rem; }
  .site-header .brand { font-size: 1rem; }
}

@media (max-width: 26rem) {
  .site-header { column-gap: 0.5rem; }
  .site-header > nav { gap: 0 0.45rem; }
}

@media (max-width: 24rem) {
  .site-header { grid-template-columns: 1fr; }
  .site-header .brand { justify-self: start; }
  .site-header > nav { justify-content: flex-start; margin-left: 0; }
}
