:root {
  color-scheme: dark;
  --ink: #101110;
  --paper: #f1efe8;
  --soft: #bcbdb5;
  --line: #373935;
  --warm: #e9bd8b;
  font-family: "Segoe UI",system-ui,sans-serif;
  background: var(--ink);
  color: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

a:focus-visible,input:focus-visible+span {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.mast,main,footer {
  width: min(1440px,100%);
  margin: auto;
  padding-inline: clamp(20px,5.2vw,88px);
}

.mast,footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mast {
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -.04em;
  font-size: 1.32rem;
}

.free,footer {
  font-size: .88rem;
}

.free span,footer a span {
  margin-left: .28em;
  color: var(--warm);
}

.product {
  display: grid;
  grid-template-columns: minmax(0,.77fr) minmax(0,1.23fr);
  align-items: center;
  gap: clamp(24px,5vw,76px);
  padding-block: clamp(42px,7.6vw,120px);
}

h1,h2,p {
  margin: 0;
}

h1,.intro,h2 {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(3.7rem,6.6vw,6.8rem);
  letter-spacing: -.075em;
  line-height: 1;
}

h1 span {
  color: var(--warm);
}

.intro {
  font-size: clamp(1.35rem,2.3vw,2.2rem);
  margin-top: .8em;
  letter-spacing: -.035em;
}

.description,dd {
  color: var(--soft);
  line-height: 1.58;
}

.description {
  margin-top: .85rem;
  max-width: 40ch;
}

.order {
  margin-top: 1.8rem;
}

.order a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-radius: 5px;
  background: var(--paper);
  color: #191a17;
  font-weight: 650;
  padding: 10px 18px;
}

.order small {
  display: block;
  margin-top: 10px;
  line-height: 1.4;
  color: var(--soft);
}

.frame {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #53534a;
  border-radius: 6px;
  background: linear-gradient(0deg,#080b0ba8,transparent 56%),url("./horizon.jpg") center 58%/cover no-repeat,#292e30;
}

.safe-area {
  position: absolute;
  inset: 7%;
  border: 1px solid #eee9d53d;
  pointer-events: none;
}

.readout {
  position: absolute;
  display: flex;
  align-items: center;
  font-family: "Arial Narrow","Segoe UI",sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  filter: drop-shadow(0 1px 8px #0004);
}

.frame {
  container-type: inline-size;
}

[data-scene=stack] .readout {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  flex-direction: column;
  gap: 1.18cqw;
  font-size: 24cqw;
}

[data-scene=stack] .readout span:not(#separator) {
  text-align: center;
  background: linear-gradient(to bottom,#131614 48%,#050605 49% 51%,#1c1e1b 52%);
  padding: .035em .14em .09em;
  border-radius: .075em;
  min-width: 1.5em;
}

[data-scene=stack] #separator,[data-scene=stack] .last {
  display: none;
}

[data-scene=elapsed] .readout {
  bottom: 8%;
  left: 5%;
  padding: .16em .34em .22em .38em;
  font-size: 12.9cqw;
  color: #ffbf63;
  background: #101013;
  border-left: .055em solid currentColor;
  letter-spacing: -.045em;
}

[data-scene=wall] .readout {
  top: 7%;
  right: 5%;
  font: 600 6.5cqw/1 "Segoe UI",sans-serif;
  color: #9ce2ff;
  background: #151517;
  padding: .23em .35em;
  border-radius: .07em;
  letter-spacing: -.065em;
}

[data-scene=elapsed] .last {
  font-size: .68em;
  align-self: flex-end;
  margin-bottom: .07em;
}

[data-scene=wall] .last {
  opacity: .76;
}

#choices {
  border: 0;
  margin: .75rem 0 0;
  padding: 0;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

#choices legend {
  padding: 0;
  margin: 0 0 .45rem;
  color: var(--soft);
  font-size: .78rem;
}

#choices label {
  position: relative;
  cursor: pointer;
}

#choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#choices span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 7px 14px;
  font-size: .86rem;
}

#choices input:checked+span {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.detail {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 30px;
  padding-block: clamp(32px,5vw,75px);
}

h2 {
  font-size: clamp(1.85rem,3.1vw,3.3rem);
  letter-spacing: -.055em;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 18px;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

dl div:first-child {
  padding-top: .3rem;
}

dt {
  font-weight: 650;
}

dd {
  margin: 0;
  font-size: .92rem;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  color: var(--soft);
}

@media(max-width:780px) {
  .product,.detail {
    grid-template-columns: 1fr;
  }
  .product {
    gap: 28px;
  }
  .description {
    max-width: 58ch;
  }
  .detail {
    gap: 20px;
  }
  .mast {
    padding-block: 18px;
  }
}

@media(max-width:450px) {
  dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .product {
    padding-block: 34px;
  }
  #choices span {
    padding-inline: 11px;
  }
  .order {
    margin-top: 1.25rem;
  }
}
