:root {
  --plum: #452437;
  --wine: #6b2b3a;
  --teal: #9dd3cf;
  --mist: #eef7f7;
  --blush: #efa095;
  --lilac: #d9c9f2;
  --paper: #ffffff;
  --ink-soft: #6e5563;
  --display: "Silkscreen", "Courier New", monospace;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--plum);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--plum);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--plum);
  font-family: var(--display); font-size: 1.35rem;
}
.brand img { width: 40px; height: 40px; image-rendering: pixelated; border: 2px solid var(--plum); }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }

.extruded {
  font-family: var(--display);
  font-weight: 700;
  color: var(--paper);
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 1;
  letter-spacing: .02em;
  text-shadow:
    1px 1px 0 var(--plum), 2px 2px 0 var(--plum), 3px 3px 0 var(--plum),
    4px 4px 0 var(--plum), 5px 5px 0 var(--plum), 6px 6px 0 var(--plum),
    7px 7px 0 var(--plum), 8px 8px 0 var(--plum);
  -webkit-text-stroke: 2px var(--plum);
  paint-order: stroke fill;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.05rem;
  padding: .8rem 1.3rem;
  background: var(--plum); color: var(--paper);
  border: 3px solid var(--plum);
  box-shadow: 5px 5px 0 var(--blush);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--paper); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--blush); }
.btn.secondary { background: var(--paper); color: var(--plum); box-shadow: 5px 5px 0 var(--teal); }
.btn.secondary:hover { color: var(--plum); box-shadow: 3px 3px 0 var(--teal); }
.btn[aria-disabled="true"] { background: var(--ink-soft); border-color: var(--ink-soft); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: 5px 5px 0 var(--blush); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--lilac) 55%, var(--blush) 100%);
  border-bottom: 3px solid var(--plum);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 5fr 6fr; } }
.hero .extruded { margin-bottom: .35em; }
.hero .lede { font-size: 1.2rem; max-width: 36ch; }
.price-line { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; }
.price { font-family: var(--display); font-size: 2rem; }
.note { font-size: .95rem; color: var(--plum); margin-top: 1rem; }

.frame {
  border: 3px solid var(--plum);
  box-shadow: 10px 10px 0 var(--plum);
  background: var(--plum);
}
.frame video { width: 100%; aspect-ratio: 16 / 9; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--paper); border-block: 3px solid var(--plum); }

.features { display: grid; gap: 0; grid-template-columns: 1fr; border: 3px solid var(--plum); background: var(--paper); }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features > div { padding: 1.4rem; border: 1.5px solid var(--plum); }
.features h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.features p { margin: 0; }

.upcoming { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--paper);
  border: 3px solid var(--plum);
  padding: 1.5rem;
  box-shadow: 6px 6px 0 var(--lilac);
}
.card .ph {
  aspect-ratio: 16 / 9; margin-bottom: 1.1rem;
  background:
    repeating-linear-gradient(45deg, var(--mist) 0 12px, var(--lilac) 12px 24px);
  border: 2px solid var(--plum);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem;
}
.tag { display: inline-block; font-size: .85rem; font-weight: 600; background: var(--teal); padding: .1rem .55rem; border: 2px solid var(--plum); margin-bottom: .7rem; }

.about { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .about { grid-template-columns: 220px 1fr; } }
.about img { width: 220px; image-rendering: pixelated; border: 3px solid var(--plum); box-shadow: 8px 8px 0 var(--teal); }

.specs { border-collapse: collapse; width: 100%; max-width: 640px; background: var(--paper); }
.specs th, .specs td { text-align: left; padding: .75rem 1rem; border: 2px solid var(--plum); vertical-align: top; }
.specs th { width: 38%; font-weight: 600; background: var(--mist); }

.faq details { border: 2px solid var(--plum); background: var(--paper); padding: 1rem 1.2rem; margin-bottom: .8rem; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .7rem 0 0; }

.mac-banner { background: var(--blush); border-block: 3px solid var(--plum); padding-block: 1.1rem; text-align: center; font-weight: 500; }
.mac-banner p { margin-inline: auto; margin-bottom: 0; }

/* Legal pages */
.doc { padding-block: 3rem 4rem; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-family: var(--body); font-weight: 600; font-size: 1.3rem; margin-top: 2rem; }
.doc p, .doc li { max-width: 72ch; }
.doc .updated { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--plum); color: var(--mist); padding-block: 3rem 2rem; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h3 { font-family: var(--display); font-weight: 400; font-size: 1rem; color: var(--teal); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.fine { margin-top: 2.5rem; font-size: .9rem; opacity: .85; max-width: none; }

@media (max-width: 520px) {
  .brand { font-size: 1.1rem; }
  .brand img { width: 34px; height: 34px; }
  .nav { gap: .9rem; flex-wrap: nowrap; font-size: .95rem; }
  .frame { box-shadow: 6px 6px 0 var(--plum); }
}
