/* Forest green, sage, soft lavender and cool white drawn from img/pfp.jpg. */
:root {
  color-scheme: light;
  --page: #eef2ec;
  --surface: #f5f7f2;
  --surface-raised: #fafbf8;
  --text: #182d29;
  --muted: #52655e;
  --line: #b6c8b8;
  --line-strong: #5e8069;
  --accent: #3c6a53;
  --accent-fill: #365f4a;
  --accent-hover: #2d523e;
  --accent-shadow: #203e30;
  --accent-ink: #f7f6fb;
  --switch-thumb-active: #f7f6fb;
  --neutral-shadow: #cbd5c9;
  --photo-border: #9d96b5;
  --flag-outline: rgba(24, 45, 41, 0.35);
  --fire-deep: #182d29;
  --fire-mid: #365f4a;
  --backdrop: rgba(11, 30, 26, 0.7);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #132b26;
  --surface: #1b3830;
  --surface-raised: #24463a;
  --text: #eef0f5;
  --muted: #b9c8bd;
  --line: #507662;
  --line-strong: #8dac98;
  --accent: #b4cdb7;
  --accent-fill: #41684f;
  --accent-hover: #4a7358;
  --accent-shadow: #0b2118;
  --accent-ink: #f7f6fb;
  --switch-thumb-active: #eef0f5;
  --neutral-shadow: #0b1e1a;
  --photo-border: #aaa3c5;
  --flag-outline: rgba(238, 240, 245, 0.32);
  --fire-deep: #0b1e1a;
  --fire-mid: #41684f;
  --backdrop: rgba(6, 18, 14, 0.82);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #132b26;
    --surface: #1b3830;
    --surface-raised: #24463a;
    --text: #eef0f5;
    --muted: #b9c8bd;
    --line: #507662;
    --line-strong: #8dac98;
    --accent: #b4cdb7;
    --accent-fill: #41684f;
    --accent-hover: #4a7358;
    --accent-shadow: #0b2118;
    --accent-ink: #f7f6fb;
    --switch-thumb-active: #eef0f5;
    --neutral-shadow: #0b1e1a;
    --photo-border: #aaa3c5;
    --flag-outline: rgba(238, 240, 245, 0.32);
    --fire-deep: #0b1e1a;
    --fire-mid: #41684f;
    --backdrop: rgba(6, 18, 14, 0.82);
  }
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.support-content {
  width: min(calc(100% - 40px), 720px);
  margin: 40px auto;
  padding: clamp(22px, 5vw, 40px);
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
}

.support-content h1 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 6vw, 3rem);
}

.support-content h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 1.15rem;
}

.support-content a,
.support-footer a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.support-content a:focus-visible,
.support-footer a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.support-footer {
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 2;
}

.modal.blog-modal {
  width: min(calc(100% - 32px), 760px);
  max-height: min(88vh, 850px);
  max-height: min(88svh, 850px);
  border-width: 1px;
  border-radius: 8px;
  box-shadow: none;
}
.blog-modal .modal__close, .blog-modal .modal__close:hover, .blog-modal .modal__close:active {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
  transform: none;
}
.blog-intro, .blog-status, .blog-entry__date, .blog-entry__description,
.blog-article__date, .blog-article__description { color: var(--muted); }
.blog-list { display: grid; border-top: 1px solid var(--line); }
.blog-entry {
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.blog-entry:hover .blog-entry__title { text-decoration: underline; text-underline-offset: 3px; }
.blog-entry:focus-visible, .blog-back:focus-visible, .blog-page:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.blog-entry__date, .blog-article__date { font-size: .85rem; }
.blog-entry__title { font-size: 1.2rem; font-weight: 800; }
.blog-entry__description { font-size: .95rem; line-height: 1.5; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.blog-tag { padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .8rem; }
.blog-banner { margin: 20px 0; padding: 12px 14px; border-left: 3px solid var(--line-strong); background: var(--surface); font-weight: 700; }
.blog-banner.is-opinion { border-left-color: var(--accent); }
.blog-article__body { margin-top: 24px; line-height: 1.75; }
.blog-article__body p { margin-bottom: 1.1em; }
.blog-article__body h3 { margin: 1.8em 0 .55em; font-size: 1.5rem; line-height: 1.3; }
.blog-article__body h4 { margin: 1.5em 0 .5em; font-size: 1.15rem; line-height: 1.4; }
.blog-article__body u { text-underline-offset: .17em; }
.blog-article__body ul, .blog-article__body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.blog-article__body blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 2px solid var(--line-strong); }
.blog-article__body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.blog-article__body a { color: var(--accent); text-underline-offset: .15em; }
.blog-spacer--small { height: 1rem; }
.blog-spacer--medium { height: 2rem; }
.blog-spacer--large { height: 4rem; }
.blog-back { margin-bottom: 24px; padding: 0; border: 0; color: var(--accent); background: transparent; cursor: pointer; }
.blog-back:hover { text-decoration: underline; }
.blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.blog-page { min-width: 38px; min-height: 38px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: transparent; cursor: pointer; }
.blog-page[aria-current="page"] { border-color: var(--line-strong); font-weight: 800; }

.advice-card__visual svg,
.advice-modal__title > svg,
.alternative-card > svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  transition: color 180ms ease, background-color 180ms ease;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  display: none;
}

.js .page-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 24px;
  overflow: hidden;
  color: var(--text);
  background-color: var(--page);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 32%),
    var(--page);
  place-items: center;
  transition: visibility 0s linear 620ms;
}

.js .page-loader::before,
.js .page-loader::after {
  position: absolute;
  width: min(34vw, 280px);
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  content: "";
  opacity: 0.42;
}

.js .page-loader::before {
  top: -12%;
  right: -6%;
  animation: loader-orbit 9s linear infinite;
}

.js .page-loader::after {
  bottom: -18%;
  left: -8%;
  animation: loader-orbit 12s linear infinite reverse;
}

.page-loader__panel {
  position: relative;
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 38px);
}

.page-loader__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--text);
  font-size: clamp(0.88rem, 3vw, 1rem);
  font-weight: 800;
}

.page-loader__status.is-changing {
  animation: loader-copy-in 260ms ease-out both;
}

.page-loader__track {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--neutral-shadow);
}

.page-loader__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0;
  background: var(--accent-fill);
  transform-origin: left;
  transition: width 110ms ease-out;
}

.page-loader__copy {
  margin-top: 20px;
}

.page-loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
}

.page-loader__meta > span:first-child {
  color: var(--accent);
  font-weight: 900;
}

.page-loader.is-complete {
  visibility: hidden;
  pointer-events: none;
}

.page-loader.is-complete .page-loader__panel {
  animation: loader-panel-out 540ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.page-loader.is-complete::before,
.page-loader.is-complete::after {
  opacity: 0;
  transition: opacity 300ms ease;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  width: min(100% - 40px, 920px);
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 16px 0;
}

.pressable {
  text-decoration: none;
  border: 2px solid var(--line-strong);
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 5px 0 var(--neutral-shadow);
  cursor: pointer;
  transform: translateY(0);
  transition: background-color 120ms ease, transform 80ms ease, box-shadow 80ms ease;
}

.pressable:hover {
  background: var(--surface);
}

.pressable:active {
  box-shadow: 0 1px 0 var(--neutral-shadow);
  transform: translateY(4px);
}

.pressable:focus-visible,
.flag-list:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.theme-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.theme-toggle__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 180ms ease, opacity 180ms ease;
}

.theme-toggle__track {
  position: relative;
  width: 44px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  transition: background-color 180ms ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle__track {
  background: var(--accent-fill);
}

.theme-toggle[aria-checked="true"] .theme-toggle__thumb {
  background: var(--switch-thumb-active);
  transform: translateX(18px);
}

.theme-toggle[aria-checked="false"] .theme-toggle__moon,
.theme-toggle[aria-checked="true"] .theme-toggle__sun {
  color: var(--muted);
  opacity: 0.65;
}

.theme-toggle:hover .theme-toggle__track {
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.page-shell {
  min-height: 200vh;
  min-height: 200svh;
}

.landing-section {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(112px, 14vh, 154px) 24px clamp(102px, 13vh, 138px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  place-items: center;
}

.profile-card {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 52px;
}

.portrait-wrap {
  width: 190px;
  height: 190px;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border: 6px solid var(--photo-border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 0 var(--neutral-shadow);
  object-fit: cover;
  object-position: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.45rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.tagline {
  margin-bottom: 30px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.languages {
  margin-bottom: 32px;
}

.section-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-control {
  position: relative;
  width: max-content;
}

.flag-list {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--neutral-shadow);
  cursor: help;
}

.flag-list > span {
  display: flex;
}

.flag-art {
  display: block;
  width: 30px;
  height: 22px;
  overflow: hidden;
  border: 1px solid var(--flag-outline);
  border-radius: 3px;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 13px);
  left: 0;
  z-index: 2;
  width: 275px;
  margin: 0;
  padding: 11px 13px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 4px 4px 0 var(--neutral-shadow);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.language-control:hover .tooltip,
.language-control:focus-within .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.contact-button {
  display: flex;
  min-width: 190px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 22px;
  border-color: var(--accent-shadow);
  border-radius: 14px;
  color: var(--accent-ink);
  background: var(--accent-fill);
  box-shadow: 0 6px 0 var(--accent-shadow);
  font-weight: 900;
}

.contact-button:hover {
  background: var(--accent-hover);
}

.contact-button:active {
  box-shadow: 0 1px 0 var(--accent-shadow);
  transform: translateY(5px);
}

.contact-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.advice-layout {
  width: min(100%, 920px);
}

.section-heading {
  max-width: 580px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading > p:first-child {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.advice-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  border-radius: 18px;
  text-align: left;
}

.advice-card:hover {
  background: var(--surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--neutral-shadow);
}

.advice-card:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--neutral-shadow);
}

.advice-card__visual {
  display: grid;
  min-height: 156px;
  margin-bottom: 22px;
  border: 2px solid var(--line);
  border-radius: 13px;
  color: var(--accent-ink);
  background: var(--accent-fill);
  place-items: center;
}

.advice-card__visual svg {
  width: 58px;
  height: 58px;
}

.advice-card__title {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.15;
}

.advice-card__description {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

.advice-modal__credit {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

.advice-modal__credit a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

.advice-modal__credit a:hover {
  color: var(--accent);
}

.advice-modal__credit a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.modal {
  width: min(calc(100% - 32px), 480px);
  max-height: min(82vh, 720px);
  max-height: min(82svh, 720px);
  padding: 40px;
  overflow-y: auto;
  border: 3px solid var(--line-strong);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 9px 9px 0 var(--neutral-shadow);
}

.modal[open] {
  animation: modal-in 360ms cubic-bezier(0.2, 0.9, 0.25, 1.12) both;
}

.modal::backdrop {
  background: var(--backdrop);
}

.modal[open]::backdrop {
  animation: backdrop-in 260ms ease-out both;
}

.modal[open] > * {
  animation: modal-content-in 340ms ease-out both;
}

.modal[open] > :nth-child(2) {
  animation-delay: 70ms;
}

.modal[open] > :nth-child(n + 3) {
  animation-delay: 120ms;
}

.modal.is-closing {
  animation: modal-out 220ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.modal.is-closing::backdrop {
  animation: backdrop-out 220ms ease-in both;
}

.modal__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border-color: var(--accent-shadow);
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent-fill);
  box-shadow: 0 4px 0 var(--accent-shadow);
  place-items: center;
}

.modal__close:hover {
  background: var(--accent-hover);
}

.modal__close:active {
  box-shadow: 0 1px 0 var(--accent-shadow);
  transform: translateY(3px);
}

.modal__close svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.modal h2 {
  max-width: 350px;
  margin: 0 0 26px;
  padding-right: 34px;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.modal__editable-content {
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal__editable-content p {
  margin-bottom: 6px;
}

.modal__editable-content p:last-child {
  margin-bottom: 0;
}

.modal__editable-content strong {
  color: var(--text);
}

.modal__editable-content a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.modal__editable-content a:hover {
  color: var(--accent);
}

.modal__editable-content a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.modal__hint {
  font-size: 0.76rem;
}

.modal__hint code {
  color: var(--text);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.review-modal {
  width: min(calc(100% - 32px), 680px);
  max-height: min(88vh, 820px);
  max-height: min(88svh, 820px);
}

.review-modal__eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.review-modal h2 {
  max-width: 520px;
  margin-bottom: 10px;
}

.review-modal__intro {
  max-width: 540px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.review-form {
  display: grid;
  gap: 22px;
  font-family: system-ui, sans-serif;
}

.review-field {
  display: grid;
  gap: 8px;
}

.review-field label,
.review-choice legend,
.review-rating legend,
.review-result__heading label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.review-field label span {
  color: var(--muted);
  font-weight: 600;
}

.review-field input,
.review-field textarea,
.review-result textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.review-field input:focus,
.review-field textarea:focus,
.review-result textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.review-choice,
.review-rating {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-choice legend {
  margin-bottom: 10px;
}

.review-segments,
.feature-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.review-segments label,
.feature-options label,
.star-options label {
  position: relative;
  cursor: pointer;
}

.review-segments input,
.feature-options input,
.star-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-segments span,
.feature-options span,
.star-options label > span[aria-hidden="true"] {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 800;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease, transform 80ms ease;
}

.review-segments input:checked + span,
.feature-options input:checked + span,
.star-options input:checked + span[aria-hidden="true"] {
  border-color: var(--accent-shadow);
  color: var(--accent-ink);
  background: var(--accent-fill);
}

.review-segments input:focus-visible + span,
.feature-options input:focus-visible + span,
.star-options input:focus-visible + span[aria-hidden="true"] {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.review-segments label:active span,
.feature-options label:active span,
.star-options label:active > span[aria-hidden="true"] {
  transform: translateY(2px);
}

.review-ratings {
  display: grid;
  gap: 14px;
}

.review-rating {
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.review-rating legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.review-rating output {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
}

.star-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.star-options--infinite {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.star-options label > span[aria-hidden="true"] {
  min-height: 42px;
  padding: 6px;
  color: var(--accent);
  font-size: clamp(0.58rem, 1.7vw, 0.78rem);
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.star-options .infinite-option > span[aria-hidden="true"] {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.review-generate,
.review-copy {
  min-height: 48px;
  padding: 10px 18px;
  border-color: var(--accent-shadow);
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent-fill);
  box-shadow: 0 5px 0 var(--accent-shadow);
  font-weight: 900;
}

.review-generate:hover,
.review-copy:hover {
  background: var(--accent-hover);
}

.review-result {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 2px dashed var(--line);
}

.review-result[hidden] {
  display: none;
}

.review-result__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.review-result__heading span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.review-result textarea {
  min-height: 230px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8rem;
}

.review-copy {
  justify-self: end;
  min-height: 42px;
  padding-inline: 16px;
}

.review-static-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.early-access-modal {
  width: min(calc(100% - 32px), 500px);
  text-align: center;
}

.early-access-modal__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  font-size: 2rem;
  place-items: center;
}

.early-access-modal h2 {
  max-width: 400px;
  margin-inline: auto;
  padding-right: 0;
}

.early-access-modal > p:not(.review-modal__eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
}

.early-access-modal > .early-access-modal__constructive {
  margin-top: -10px;
  padding: 13px 15px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.82rem;
}

.early-access-modal__constructive strong {
  color: var(--accent);
}

.early-access-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.early-access-modal__actions button {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.early-access-modal__confirm {
  border-color: var(--accent-shadow);
  color: var(--accent-ink);
  background: var(--accent-fill);
  box-shadow: 0 5px 0 var(--accent-shadow);
}

.early-access-modal__confirm:hover {
  background: var(--accent-hover);
}

@media (max-width: 460px) {
  .early-access-modal__actions {
    grid-template-columns: 1fr;
  }
}

.legal-modal {
  width: min(calc(100% - 32px), 570px);
}

.legal-copy {
  text-align: left;
}

.legal-copy__lead {
  color: var(--text);
  font-weight: 750;
}

.legal-copy h3 {
  margin: 22px 0 6px;
  color: var(--text);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: 0.95rem;
}

.legal-copy p {
  margin-bottom: 0;
}

.advice-modal {
  width: min(calc(100% - 32px), 540px);
}

.advice-modal__title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 48px;
}

.advice-modal__title > svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
}

.advice-modal__title h2 {
  margin-bottom: 0;
  padding-right: 0;
}

.user-level {
  margin: 28px 0 24px;
  padding: 0;
  border: 0;
}

.user-level legend {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.user-level__labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.user-level__labels span {
  transition: color 120ms ease;
}

.user-level__labels .is-selected {
  color: var(--text);
}

.user-level__slider {
  position: relative;
  height: 54px;
}

.user-level__fire {
  position: absolute;
  inset: 3px;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 115%, color-mix(in srgb, var(--photo-border) 72%, transparent), transparent 54%),
    linear-gradient(180deg, var(--fire-deep) 0%, var(--fire-mid) 100%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.user-level__fire canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  filter: blur(0.45px) saturate(1.08) contrast(1.08);
}

.user-level.is-hardcore .user-level__fire {
  opacity: 1;
}

.user-level input[type="range"] {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 6px;
  border: 3px solid var(--line-strong);
  border-radius: 999px;
  appearance: none;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--neutral-shadow);
  cursor: grab;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 120ms ease;
}

.user-level input[type="range"]:active {
  box-shadow: 0 2px 0 var(--neutral-shadow);
  cursor: grabbing;
}

.user-level input[type="range"]::-webkit-slider-runnable-track {
  height: 46px;
  border-radius: 999px;
  background: transparent;
}

.user-level input[type="range"]::-webkit-slider-thumb {
  width: 66px;
  height: 40px;
  margin-top: 1px;
  border: 3px solid var(--accent-shadow);
  border-radius: 999px;
  appearance: none;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-shadow);
  transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.user-level input[type="range"]::-moz-range-track {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.user-level input[type="range"]::-moz-range-thumb {
  width: 62px;
  height: 36px;
  border: 3px solid var(--accent-shadow);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-shadow);
  transform: translateY(-2px);
  transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.user-level input[type="range"]:active::-webkit-slider-thumb {
  transform: translateY(-1px) scale(0.96);
}

.user-level input[type="range"]:active::-moz-range-thumb {
  transform: translateY(-2px) scale(0.96);
}

.user-level.is-hardcore input[type="range"] {
  border-color: var(--accent-shadow);
  background: transparent;
  box-shadow: 0 4px 0 var(--accent-shadow);
}

.user-level.is-hardcore input[type="range"]::-webkit-slider-thumb {
  border-color: var(--accent-shadow);
  background: var(--switch-thumb-active);
  box-shadow: 0 3px 0 var(--accent-shadow);
}

.user-level.is-hardcore input[type="range"]::-moz-range-thumb {
  border-color: var(--accent-shadow);
  background: var(--switch-thumb-active);
  box-shadow: 0 3px 0 var(--accent-shadow);
}

.user-level input[type="range"]:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

.advice-copy {
  min-height: 115px;
}

.advice-copy [hidden] {
  display: none;
}

.alternatives-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alternative-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.alternative-card > svg {
  width: 16px;
  color: var(--accent);
}

.alternative-card__current {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 750;
}

.alternative-card__replacement {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 850;
}

.alternative-card__replacement a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

.alternative-card__replacement a:hover {
  color: var(--accent);
}

.alternative-card__replacement a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.alternative-card__replacement small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

#browser-advice-modal {
  width: min(calc(100% - 32px), 720px);
}

.browser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.browser-grid--single {
  width: min(100%, 310px);
  grid-template-columns: 1fr;
  margin-inline: auto;
}

.browser-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.browser-card__image {
  display: grid;
  min-height: 130px;
  border-bottom: 2px solid var(--line);
  background: var(--surface-raised);
  place-items: center;
}

.browser-card__image img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.browser-card__content {
  padding: 16px;
}

.browser-card__tag {
  margin-bottom: 5px;
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.browser-card h3 {
  margin: 0 0 7px;
  font-size: 1.05rem;
}

.browser-card__content > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
}

.site-footer__inner {
  display: flex;
  width: min(100% - 40px, 920px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 13px 0 16px;
}

.site-footer p {
  flex-shrink: 0;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  box-shadow: 0 3px 0 var(--neutral-shadow);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.footer-link:active {
  box-shadow: 0 1px 0 var(--neutral-shadow);
  transform: translateY(2px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(0.6deg) scale(0.94);
  }

  72% {
    transform: translateY(-3px) rotate(-0.15deg) scale(1.006);
  }
}

@keyframes modal-out {
  to {
    opacity: 0;
    transform: translateY(18px) rotate(-0.4deg) scale(0.96);
  }
}

@keyframes modal-content-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes backdrop-in {
  from {
    background: transparent;
    backdrop-filter: blur(0);
  }

  to {
    background: var(--backdrop);
    backdrop-filter: blur(3px);
  }
}

@keyframes backdrop-out {
  from {
    background: var(--backdrop);
    backdrop-filter: blur(3px);
  }

  to {
    background: transparent;
    backdrop-filter: blur(0);
  }
}

@keyframes loader-copy-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes loader-panel-out {
  35% {
    transform: rotate(0.8deg) scale(1.02);
  }

  to {
    opacity: 0;
    transform: translateY(-28px) rotate(-1deg) scale(0.96);
  }
}

@keyframes loader-orbit {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: y proximity;
  }

  .advice-layout {
    width: min(100vw - 44px, 620px);
  }

  .advice-grid {
    display: grid;
    grid-auto-columns: min(78vw, 285px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 18px;
    margin-inline: calc((100vw - min(100vw - 44px, 620px)) / -2);
    padding: 4px calc((100vw - min(100vw - 44px, 620px)) / 2) 10px;
    overflow-x: auto;
    scroll-padding-inline: 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .advice-card {
    scroll-snap-align: center;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
  }

  .site-header__inner {
    width: min(100% - 32px, 500px);
    padding: 12px 0;
  }

  .landing-section {
    min-height: 100svh;
    padding: clamp(94px, 13vh, 118px) 22px clamp(90px, 12vh, 108px);
  }

  .profile-card {
    width: min(100%, 410px);
    grid-template-columns: 1fr;
    gap: 38px;
    text-align: center;
  }

  .portrait-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .language-control {
    margin-inline: auto;
  }

  .tooltip {
    left: 50%;
    transform: translate(-50%, 4px);
  }

  .language-control:hover .tooltip,
  .language-control:focus-within .tooltip {
    transform: translate(-50%, 0);
  }

  .contact-button {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 8px;
    padding: 9px 0 11px;
    text-align: center;
  }

  .footer-link {
    min-height: 30px;
    padding: 4px 10px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .advice-card {
    min-height: 315px;
  }

  .browser-grid {
    grid-template-columns: 1fr;
  }

  .browser-grid--single {
    width: 100%;
  }
}

@media (max-height: 680px) {
  html {
    scroll-snap-type: y proximity;
  }

  .landing-section {
    padding-top: 98px;
    padding-bottom: 92px;
  }
}

@media (max-width: 390px) {
  .js .page-loader {
    padding: 18px;
  }

  .page-loader__panel {
    padding: 24px 10px;
  }

  .page-loader__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .flag-list {
    gap: 10px;
    padding-inline: 12px;
  }

  .flag-art {
    width: 27px;
    height: 20px;
  }

  .tooltip {
    width: min(270px, calc(100vw - 36px));
  }

  .modal {
    padding: 34px 24px 26px;
  }

  .review-modal {
    padding-inline: 16px;
  }

  .review-rating {
    padding-inline: 8px;
  }

  .star-options {
    gap: 4px;
  }

  .star-options label > span[aria-hidden="true"] {
    min-height: 38px;
    padding-inline: 2px;
    font-size: 0.51rem;
  }

  .star-options .infinite-option > span[aria-hidden="true"] {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .page-loader::before,
  .js .page-loader::after {
    display: none;
  }
}

/* Static HTML is the baseline, including when scripts are blocked or fail to load. */
.js .static-only,
.js .page-loader[hidden],
:root:not(.js) .theme-toggle,
:root:not(.js) .user-level,
:root:not(.js) .modal__close,
:root:not(.js) .review-generate,
:root:not(.js) .review-result,
:root:not(.js) .early-access-modal {
  display: none;
}

.theme-note {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  text-align: right;
}

.static-intro {
  width: min(calc(100% - 40px), 920px);
  margin: 32px auto 0;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

.static-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.static-nav a,
.section-return {
  color: var(--accent);
  text-underline-offset: 3px;
}

.static-nav a:focus-visible,
.section-return:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.section-return {
  display: inline-block;
  margin-top: 28px;
}

.advice-level-heading {
  margin: 28px 0 16px;
  color: var(--text);
  font-size: 1rem;
}

:root:not(.js) {
  scroll-snap-type: none;
}

:root:not(.js) .site-header,
:root:not(.js) .site-footer {
  position: static;
}

:root:not(.js) .page-shell {
  min-height: 0;
  padding-bottom: 28px;
}

:root:not(.js) .landing-section {
  min-height: 0;
  padding: 56px 24px;
}

:root:not(.js) .modal {
  width: min(calc(100% - 40px), 720px);
  max-height: none;
  margin: 32px auto;
  padding: clamp(22px, 5vw, 40px);
  overflow: visible;
  scroll-margin-block: 24px;
}

:root:not(.js) .modal:target {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

:root:not(.js) .modal h2,
:root:not(.js) .advice-modal__title {
  padding-right: 0;
}

:root:not(.js) .advice-grid {
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: visible;
}

@media (max-width: 760px) {
  :root:not(.js) .advice-grid {
    grid-template-columns: 1fr;
  }

  :root:not(.js) .advice-card {
    min-height: 0;
  }

  :root:not(.js) .advice-card__visual {
    min-height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
