:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #000000;
  --muted: #3a3a3c;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 3px 7px rgba(0, 0, 0, 0.035);
  --mark-filter: none;
  --radius-surface: 22px;
  --radius-card: 14px;
  --radius-chip: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --measure: 70ch;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --text: #ffffff;
  --muted: #aeaeb2;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 3px 7px rgba(0, 0, 0, 0.45);
  --mark-filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --card: #1c1c1e;
    --text: #ffffff;
    --muted: #aeaeb2;
    --line: rgba(255, 255, 255, 0.16);
    --shadow: 0 3px 7px rgba(0, 0, 0, 0.45);
    --mark-filter: invert(1);
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: var(--text);
    --line: currentColor;
  }

  .card,
  .bezel,
  .chip {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .wordmark img,
  .hero-mark img {
    filter: none;
  }

  .card,
  .bezel,
  .chip {
    border: 1px solid CanvasText;
    background: Canvas;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
.skip:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--card);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus {
  top: 0.5rem;
}

.site-header,
.site-footer,
main {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 1rem 0.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.wordmark img,
.hero-mark img {
  filter: var(--mark-filter);
}

.wordmark img {
  display: block;
  height: 1.7rem;
  width: auto;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow);
}

main {
  padding-block: 1.25rem 3rem;
}

.hero-mark {
  margin: 0.5rem 0 0.75rem;
}

.hero-mark img {
  display: block;
  width: min(100%, 16rem);
  height: auto;
}

.phrase {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4.2vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.phrase strong {
  font-weight: 700;
}

.lead,
.prose {
  max-width: var(--measure);
}

.lead p,
.prose p,
.prose li {
  margin: 0 0 0.9rem;
}

.muted,
figcaption,
.site-footer {
  color: var(--muted);
}

.card {
  max-width: var(--measure);
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow);
}

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

.callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.375rem;
  text-align: left;
  background: rgba(52, 199, 89, 0.16);
  border: 1px solid rgba(36, 138, 61, 0.45);
  box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.08), 0 10px 28px rgba(52, 199, 89, 0.16);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.callout p,
.callout .chip {
  margin: 0;
}

html[data-theme="dark"] .callout {
  background: rgba(48, 209, 88, 0.18);
  border-color: rgba(48, 209, 88, 0.5);
  box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.1), 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout {
    background: rgba(48, 209, 88, 0.18);
    border-color: rgba(48, 209, 88, 0.5);
    box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.1), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .callout {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(52, 199, 89, 0.28);
  }

  html[data-theme="dark"] .callout {
    background: rgba(48, 209, 88, 0.28);
  }
}

@media (prefers-color-scheme: dark) and (prefers-reduced-transparency: reduce) {
  :root:not([data-theme="light"]) .callout {
    background: rgba(48, 209, 88, 0.28);
  }
}

.chip {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 0.05em;
}

h1 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.draft {
  max-width: var(--measure);
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 2px solid currentColor;
  border-radius: var(--radius-card);
}

.draft p {
  margin: 0.35rem 0 0;
  font-weight: 400;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1.75rem;
  width: 100%;
}

.phone {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.bezel {
  padding: 0.6rem;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.45rem;
  background: #f2f2f7;
}

.phone figcaption {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}

.site-footer {
  padding-block: 0 2.5rem;
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a,
.prose a,
.lead a {
  text-underline-offset: 0.15em;
}

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

@media (min-width: 1000px) {
  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (forced-colors: active) {
  .wordmark img,
  .hero-mark img {
    filter: none;
  }
}
