* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --background: #FBF3E7;
  --surface: #FFFDF8;
  --border: #F1E5CE;
  --text: #2A2620;
  --muted: #5f5544;
  --muted-2: #a08a5e;
  --accent: #B87A1B;
  --yellow: oklch(0.82 0.14 92);
  --yellow-soft: oklch(0.82 0.14 92 / 0.2);
  --highlight: oklch(0.82 0.14 92 / 0.5);
  font-family: "Comic Sans MS", "Comic Neue", cursive;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

h1, h2, h3, p {
  text-wrap: pretty;
}

h1, h2, h3 {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

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

mark {
  background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%);
  color: inherit;
  padding: 0 2px;
}

s {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 40px;
}

.wz-mark {
  position: relative;
  display: inline-flex;
  font-weight: 700;
  font-size: 32px;
  line-height: 0.9;
}

.wz-mark__dot {
  position: absolute;
  top: 1px;
  right: -9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.wz-mark--small {
  font-size: 20px;
}

.wz-mark--small .wz-mark__dot {
  top: 0;
  right: -6px;
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #7a6b52;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 40px 0;
  text-align: center;
}

.hero__sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 240px;
  height: 120px;
  border-radius: 240px 240px 0 0;
  background: var(--yellow);
}

.hero__sun--halo {
  width: 340px;
  height: 170px;
  border-radius: 340px 340px 0 0;
  background: var(--yellow-soft);
}

.hero__content {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 170px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2.25rem, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* alternating bands */
.band {
  padding: 90px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.band h2 {
  margin: 0 0 22px;
  font-size: 30px;
}

.band p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: #4f4635;
}

.motto {
  margin-top: 12px;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.motto__translation {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted-2);
  font-style: italic;
}

/* products */
.products {
  padding: 90px 40px 70px;
}

.products__inner {
  max-width: 880px;
  margin: 0 auto;
}

.products h2 {
  margin: 0 0 44px;
  font-size: 30px;
  text-align: center;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px;
}

.product-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  background: #1C1A17;
}

.product-card h3 {
  margin: 0;
  font-size: 22px;
}

.product-card p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.product-card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 13px;
  color: var(--muted-2);
  background: var(--background);
  border: 1px solid #EAD6AE;
  border-radius: 999px;
  padding: 5px 12px;
}

.product-card__badge--available {
  color: #7a5f1d;
  background: color-mix(in oklab, var(--yellow) 20%, transparent);
  border-color: color-mix(in oklab, var(--yellow) 50%, transparent);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.product-card__actions a {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.product-card__primary-action {
  background: #211F1A;
  color: var(--background);
}

.product-card__primary-action:hover {
  color: var(--yellow);
}

.product-card__secondary-action {
  border: 1px solid #EAD6AE;
  color: var(--accent);
}

/* follow along */
.follow-along {
  padding: 80px 40px 100px;
  text-align: center;
}

.follow-along__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.follow-along h2 {
  margin: 0;
  font-size: 30px;
}

.follow-along p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.follow-along__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.follow-along__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
}

.follow-along__link--x {
  background: #211F1A;
  color: var(--background);
}

.follow-along__link--x:hover {
  color: var(--yellow);
}

.follow-along__link--instagram,
.follow-along__link--youtube {
  border-color: #EAD6AE;
  background: var(--surface);
  color: var(--accent);
}

.follow-along__link:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

/* interest registration */
.interest-registration__heading {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.interest-registration > p {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.interest-registration__form {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 7px 7px 7px 20px;
  text-align: left;
}

.interest-registration__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.interest-registration__form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
}

.interest-registration__form input[type="email"]:focus {
  outline: none;
}

.interest-registration__form input[type="submit"] {
  border: 0;
  border-radius: 11px;
  background: #211F1A;
  color: var(--background);
  cursor: pointer;
  padding: 12px 22px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
}

.interest-registration__privacy {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-2);
}

.interest-registration__form input[type="submit"]:focus-visible,
.product-card__actions a:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

/* Ordinary Space product page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ordinary-space-header__nav {
  font-size: 15px;
  font-weight: 700;
}

.ordinary-space-header__nav a {
  color: #7a6b52;
}

.ordinary-space-header__nav .ordinary-space-header__download {
  padding: 10px 18px;
  color: var(--background);
  font-size: 14px;
}

.ordinary-space-hero {
  padding: 64px 40px 72px;
  text-align: center;
}

.ordinary-space-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 680px;
  margin: 0 auto;
}

.ordinary-space-app-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #1C1A17;
  box-shadow: 0 14px 30px rgb(33 31 27 / 0.18);
}

.ordinary-space-kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ordinary-space-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.5rem, 7vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.ordinary-space-hero__subtitle {
  max-width: 36rem;
  margin: 20px auto 0;
  color: #4f4635;
  font-size: 17px;
  line-height: 1.8;
}

.ordinary-space-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ordinary-space-download p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.ordinary-space-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ordinary-space-button--dark {
  padding: 14px 26px;
  background: #211F1A;
  color: var(--background);
  font-size: 15px;
}

.ordinary-space-button--dark:hover {
  color: var(--yellow);
}

.ordinary-space-button--outline {
  border: 1px solid #EAD6AE;
  color: var(--accent);
}

.ordinary-space-button--outline:hover {
  background: #FCEBC7;
}

.interest-registration--compact {
  width: 100%;
  max-width: 26rem;
}

.interest-registration--compact .interest-registration__form {
  gap: 8px;
  border-color: #EAD6AE;
  padding: 6px 6px 6px 18px;
}

.interest-registration--compact .interest-registration__form input[type="email"] {
  font-size: 15px;
}

.interest-registration--compact .interest-registration__form input[type="submit"] {
  padding: 11px 18px;
  background: #FCEBC7;
  color: var(--accent);
  font-size: 14px;
}

.interest-registration--compact .interest-registration__privacy {
  margin: 8px 0 0;
  font-size: 12.5px;
}

.interest-registration__success {
  border: 1px solid #F1D9A6;
  border-radius: 16px;
  background: #FCEBC7;
  padding: 14px 18px;
  color: #211F1A;
  font-size: 14.5px;
}

.ordinary-space-demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 90px;
}

.ordinary-space-demo__frame {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 24px 60px rgb(33 31 27 / 0.08);
}

.ordinary-space-demo__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 64 / 27;
  border-radius: 14px;
  background: #000;
}

.ordinary-space-demo__video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ordinary-space-demo > p {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 14px;
  text-align: center;
}

.ordinary-space-features {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 90px 40px;
}

.ordinary-space-section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.ordinary-space-features h2 {
  margin: 0 0 44px;
  font-size: 30px;
  text-align: center;
}

.ordinary-space-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.ordinary-space-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
  padding: 26px;
}

.ordinary-space-feature__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--yellow) 25%, transparent);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.ordinary-space-feature h3 {
  margin: 0;
  font-size: 18px;
}

.ordinary-space-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.ordinary-space-story {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 90px 40px;
}

.ordinary-space-story__inner {
  max-width: 34rem;
  margin: 0 auto;
}

.ordinary-space-story h2 {
  margin: 14px 0 22px;
  font-size: 30px;
  line-height: 1.2;
}

.ordinary-space-story__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #4f4635;
  font-size: 16.5px;
  line-height: 1.9;
}

.ordinary-space-story__copy p {
  margin: 0;
}

.ordinary-space-releases {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 90px 40px;
}

.ordinary-space-releases__inner {
  max-width: 44rem;
  margin: 0 auto;
}

.ordinary-space-releases__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 34px;
}

.ordinary-space-releases__heading h2 {
  margin: 14px 0 0;
  font-size: 30px;
}

.ordinary-space-releases__heading > p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13.5px;
}

.ordinary-space-release-archive {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px 24px;
}

.ordinary-space-release-archive__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--yellow) 25%, transparent);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.ordinary-space-release-archive__copy {
  flex: 1;
}

.ordinary-space-release-archive h3 {
  margin: 0;
  font-size: 16px;
}

.ordinary-space-release-archive p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* legal pages */
.legal-page {
  min-height: 100vh;
}

.legal-header__home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #EAD6AE;
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 18px;
  color: #7a6b52;
  font-size: 14.5px;
  font-weight: 700;
}

.legal-title {
  padding: 56px 40px 44px;
  text-align: center;
}

.legal-tabs {
  display: inline-flex;
  gap: 4px;
  border: 1px solid #EAD6AE;
  border-radius: 999px;
  background: var(--surface);
  padding: 5px;
}

.legal-tabs__tab {
  border-radius: 999px;
  padding: 9px 20px;
  color: #7a6b52;
  font-size: 14.5px;
  font-weight: 700;
}

.legal-tabs__tab--active {
  background: #211F1A;
  color: var(--background);
}

.legal-title h1 {
  margin: 30px 0 10px;
  font-size: 44px;
  letter-spacing: -0.01em;
}

.legal-title p {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
}

.legal-document {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px 90px;
}

.legal-document__card {
  display: flex;
  flex-direction: column;
  gap: 38px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 48px 52px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.legal-document__card p,
.legal-document__card ul,
.legal-document__card h2,
.legal-document__card h3 {
  margin: 0;
}

.legal-document__lead {
  color: #4f4635;
  font-size: 17px;
  line-height: 1.9;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-section h2 {
  color: var(--text);
  font-size: 20px;
}

.legal-section h3 {
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
}

.legal-section ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 22px;
}

.legal-document__card a {
  color: var(--accent);
  font-weight: 700;
}

.legal-header__home-link:focus-visible,
.legal-tabs__tab:focus-visible,
.legal-document__card a:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 40px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.site-footer__brand,
.site-footer__links {
  display: flex;
  align-items: center;
}

.site-footer__brand {
  gap: 12px;
}

.site-footer__links {
  flex-wrap: wrap;
  gap: 8px 20px;
}

.flash {
  position: fixed;
  z-index: 1;
  top: 1rem;
  left: 50%;
  width: min(calc(100% - 2rem), 36rem);
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  padding: 0.85rem 1rem;
  box-shadow: 0 0.75rem 2rem rgb(33 31 27 / 0.12);
  color: var(--text);
  text-align: center;
}

.flash--alert {
  border-color: #b96a5b;
}

@media (max-width: 44rem) {
  .products__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 44rem) {
  .ordinary-space-release-archive {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ordinary-space-release-archive__copy {
    min-width: calc(100% - 66px);
  }

  .ordinary-space-release-archive .ordinary-space-button {
    margin-left: 66px;
  }
}

@media (max-width: 34rem) {
  .ordinary-space-header,
  .ordinary-space-hero,
  .ordinary-space-features,
  .ordinary-space-story,
  .ordinary-space-releases {
    padding-right: 24px;
    padding-left: 24px;
  }

  .ordinary-space-hero {
    padding-top: 44px;
  }

  .ordinary-space-demo {
    padding-right: 18px;
    padding-left: 18px;
  }

  .interest-registration--compact .interest-registration__form {
    padding: 7px;
  }

  .interest-registration--compact .interest-registration__form input[type="email"] {
    padding: 10px 13px;
  }

  .ordinary-space-release-archive__copy {
    min-width: calc(100% - 66px);
  }

  .ordinary-space-release-archive .ordinary-space-button {
    width: 100%;
    margin-left: 0;
  }

  .legal-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .legal-title {
    padding: 40px 20px 36px;
  }

  .legal-tabs__tab {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13.5px;
  }

  .legal-title h1 {
    font-size: 36px;
  }

  .legal-document {
    padding: 0 20px 64px;
  }

  .legal-document__card {
    gap: 32px;
    border-radius: 20px;
    padding: 32px 24px;
  }

  .follow-along {
    padding-right: 24px;
    padding-left: 24px;
  }

  .follow-along__actions {
    flex-direction: column;
  }

  .follow-along__link {
    width: 100%;
  }

  .interest-registration__form {
    flex-direction: column;
    padding: 7px;
  }

  .interest-registration__form input[type="email"] {
    padding: 10px 13px;
  }
}
