:root {
  color-scheme: light;
  --ink: #1f2a25;
  --muted: #607068;
  --surface: rgba(255, 253, 247, 0.88);
  --surface-strong: #fffefb;
  --line: rgba(31, 42, 37, 0.12);
  --accent: #0f766e;
  --accent-deep: #0e6760;
  --shadow: 0 20px 60px rgba(31, 42, 37, 0.1);
  --background: linear-gradient(180deg, #f4ecdf 0%, #e9dbc5 100%);
  --ambient-glow: rgba(15, 118, 110, 0.12);
  --surface-glass: rgba(255, 253, 247, 0.78);
  --surface-soft: rgba(31, 37, 34, 0.04);
  --theme-toggle-shadow: 0 10px 24px rgba(31, 42, 37, 0.1);
  --brand-mark-opacity: 0.12;
  font-family: "Aptos", "IBM Plex Sans", "Trebuchet MS", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8f0eb;
  --muted: #a5bbb2;
  --surface: rgba(12, 21, 19, 0.88);
  --surface-strong: #14201d;
  --line: rgba(223, 239, 233, 0.14);
  --accent: #59c7ad;
  --accent-deep: #92f2db;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --background: linear-gradient(180deg, #0d1513 0%, #172421 52%, #0b1211 100%);
  --ambient-glow: rgba(89, 199, 173, 0.16);
  --surface-glass: rgba(11, 19, 18, 0.8);
  --surface-soft: rgba(225, 241, 235, 0.06);
  --theme-toggle-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  --brand-mark-opacity: 0.08;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 10% 8%, var(--ambient-glow), transparent 24%), var(--background);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/android-chrome-512x512.png") center 58% / min(82vw, 760px) auto no-repeat;
  opacity: var(--brand-mark-opacity);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-deep);
}

.utility-strip {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
}

.utility-shell,
.page-shell {
  width: min(1120px, calc(100% - clamp(1rem, 4vw, 3rem)));
  margin: 0 auto;
}

.utility-shell {
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.utility-copy,
.page-intro,
.content-section > p,
.content-list,
.question-list dd,
.site-footer {
  color: var(--muted);
}

.utility-copy,
.site-footer {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.4;
}

.utility-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-toggle {
  min-height: 1.3rem;
  min-width: 1.3rem;
  width: 1.3rem;
  margin-left: 1rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: var(--surface-strong);
  box-shadow: var(--theme-toggle-shadow);
  cursor: pointer;
}

.theme-toggle svg {
  width: 0.85rem;
  height: 0.85rem;
}

.theme-toggle-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

.utility-nav a,
.site-footer a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.utility-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: clamp(0.8rem, 2vw, 1.5rem) 0 clamp(2rem, 6vw, 3rem);
  display: grid;
  gap: 1rem;
}

.page-shell--narrow {
  width: min(720px, calc(100% - clamp(1rem, 4vw, 3rem)));
}

.page-shell--center {
  min-height: calc(100vh - 5rem);
  align-content: center;
}

.content-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(0.95rem, 2.6vw, 1.35rem);
  border-radius: clamp(18px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.page-hero {
  gap: 0.75rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title,
.content-section h2 {
  margin: 0;
}

.page-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.05;
}

.page-intro,
.content-section > p,
.content-list li,
.question-list dd {
  line-height: 1.6;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.content-section {
  align-content: start;
}

.content-card--center {
  text-align: center;
  justify-items: center;
}

.content-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.question-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.question-list div {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: var(--surface-soft);
}

.question-list dt {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.question-list dd {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 0.8rem;
}

.site-footer p {
  margin: 0;
  max-width: 48rem;
  line-height: 1.55;
}

.contact-email {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.5;
}

.contact-email a {
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .utility-shell,
  .page-shell {
    width: min(1200px, calc(100% - 4rem));
  }
}

@media (hover: hover) {
  .utility-nav a:hover,
  .site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
  }

  .theme-toggle:hover {
    transform: translateY(-1px);
  }
}

@media (min-width: 768px) {
  .utility-actions {
    gap: 0.35rem;
  }

  .theme-toggle {
    min-height: 1.9rem;
    min-width: 1.9rem;
    width: 1.9rem;
  }
}