:root {
  color-scheme: light dark;
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --ink: #151719;
  --muted: #3f3a34;
  --line: #d9d1c3;
  --accent: #d8b66a;
  --accent-hover: #e4c98a;
  --accent-pressed: #c9a45e;
  --accent-ink: #151719;
  --chip: #efeae0;
  --focus: #d8b66a;
  --link: #151719;
  --shadow: 0 1px 2px rgb(21 23 25 / 0.06), 0 12px 32px rgb(21 23 25 / 0.06);
  --radius: 14px;
  --motion: 180ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151719;
    --surface: #1e2124;
    --ink: #f7f4ee;
    --muted: #d5cfc3;
    --line: #8a7044;
    --accent: #d8b66a;
    --accent-hover: #e4c98a;
    --accent-pressed: #c9a45e;
    --accent-ink: #151719;
    --chip: #22262a;
    --focus: #d8b66a;
    --link: #d8b66a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 16px 36px rgb(0 0 0 / 0.32);
  }
}

@media (forced-colors: active) {
  :root {
    --bg: Canvas;
    --surface: Canvas;
    --ink: CanvasText;
    --muted: CanvasText;
    --line: CanvasText;
    --accent: LinkText;
    --accent-hover: LinkText;
    --accent-pressed: LinkText;
    --accent-ink: Canvas;
    --chip: Canvas;
    --focus: Highlight;
    --link: LinkText;
    --shadow: none;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  transition: background-color var(--motion), color var(--motion);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.75rem;
}

.product-mark {
  display: block;
  width: min(17.5rem, 100%);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: #151719;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  margin: 1rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

p {
  margin: 0.65rem 0;
}

main > p:not(#status-summary) {
  max-width: 40rem;
  color: var(--muted);
}

a {
  color: var(--link);
  text-decoration-color: #d8b66a;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  transition: color var(--motion), text-decoration-color var(--motion);
}

a:hover {
  text-decoration-color: var(--accent-hover);
}

code,
.value,
dd,
dt {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

code {
  padding: 0.08rem 0.35rem;
  border-radius: 0.35rem;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.92em;
}

#status-summary,
section,
.value,
code,
button {
  transition:
    background-color var(--motion),
    color var(--motion),
    border-color var(--motion),
    box-shadow var(--motion);
}

#status-summary,
section {
  margin-top: 1.15rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#status-summary {
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-size: 1.02rem;
}

section p {
  color: var(--muted);
  font-size: 0.95rem;
}

dl {
  margin: 0;
}

dl > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr);
  gap: 0.2rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

dt {
  margin: 0;
  padding-top: 0.15rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.value {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
}

button {
  margin-top: 1.35rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

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

button:active {
  background: var(--accent-pressed);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-color-scheme: light) {
  :focus-visible {
    /* Gold on the light surface is below 3:1, so a charcoal ring keeps the gold stroke visible. */
    box-shadow: 0 0 0 6px #151719;
  }
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none;
  }
}

@media (max-width: 40rem) {
  main {
    padding: 1.35rem 1rem 2rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}
