:root {
  color-scheme: light;
  --ink: #191917;
  --paper: #f1f0eb;
  --paper-light: #faf9f5;
  --rule: #8b887f;
  --soft-rule: #d1d0ca;
  --quiet: #5f5d57;
  --wash: #e1e0db;
  --sheet-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: auto;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--soft-rule) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  min-height: 48px;
  padding: 12px 18px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper-light);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(100% - 40px, var(--sheet-max));
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wordmark {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  object-fit: cover;
}

.site-footer a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer a:hover {
  text-decoration: underline;
}

main,
.site-footer {
  width: min(100% - 40px, var(--sheet-max));
  margin: 0 auto;
}

.paper-spread {
  min-height: min(830px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}

.paper-sheet {
  min-width: 0;
  padding: clamp(40px, 6.3vw, 100px) clamp(30px, 5vw, 80px);
}

.paper-sheet + .paper-sheet {
  border-left: 1px solid var(--ink);
}

.cover-copy {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.edition,
.section-mark,
.small-label,
.rhythm-time,
.release-kicker,
.release-status {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.edition {
  margin-bottom: clamp(54px, 8vw, 112px);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  max-width: 8.5ch;
  margin-bottom: 36px;
  font-size: clamp(4rem, 7.8vw, 7.5rem);
}

h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 5.5vw, 5.25rem);
}

h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
}

.lead {
  max-width: 39rem;
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.5;
}

.cover-actions {
  max-width: 35rem;
}

.cover-actions p,
.release-caution {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
}

.primary-action {
  min-height: 54px;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--paper-light);
  color: var(--ink);
}

.visual-sheet {
  padding: 0;
  overflow: hidden;
  background: var(--paper-light);
}

.cover-photo {
  width: 100%;
  height: 100%;
  margin: 0;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  min-height: 700px;
  display: block;
  object-fit: cover;
  object-position: center 56%;
}

.content-section {
  padding: clamp(64px, 8.1vw, 130px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--ink);
}

.section-mark {
  margin-bottom: clamp(52px, 8.1vw, 108px);
  display: flex;
  gap: 18px;
}

.section-mark span {
  min-width: 3ch;
  color: var(--quiet);
}

.section-heading {
  margin-bottom: clamp(50px, 7.2vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 48px;
}

.section-heading > p {
  max-width: 32rem;
  margin-bottom: 0;
  font-size: 1.2rem;
}

.method-section {
  padding-block: clamp(56px, 7vw, 104px);
}

.method-section .section-mark {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.method-heading {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.method-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
}

.rhythm-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: stretch;
  border-block: 1px solid var(--ink);
}

.rhythm-stage {
  min-width: 0;
  padding: 38px clamp(20px, 2.8vw, 44px) 48px;
}

.rhythm-cue {
  min-height: 74px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.rhythm-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.6vw, 4.75rem);
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.rhythm-time {
  padding-bottom: 2px;
  color: var(--quiet);
}

.rhythm-stage h3 {
  margin: clamp(36px, 4vw, 58px) 0 16px;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
}

.rhythm-stage p {
  margin-bottom: 0;
}

.rhythm-arrow {
  border-inline: 1px solid var(--soft-rule);
  display: grid;
  place-items: center;
  color: var(--rule);
  font-size: 0;
}

.rhythm-arrow::before {
  content: "→";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.install-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.install-steps li {
  min-height: 166px;
  padding: 32px 0;
  border-bottom: 1px solid var(--soft-rule);
  display: grid;
  grid-template-columns: minmax(72px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
}

.install-steps li > div {
  max-width: 720px;
}

.install-steps p {
  margin-bottom: 0;
}

.step-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.release-card {
  padding: clamp(28px, 5vw, 64px);
  border: 2px solid var(--ink);
  background: var(--paper-light);
}

.release-card-heading {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.release-card-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.release-kicker {
  margin-bottom: 10px;
}

.release-status {
  height: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  white-space: nowrap;
}

.release-facts {
  margin: 0 0 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-facts div {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--soft-rule);
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 0.65fr);
  gap: 20px;
}

.release-facts div:nth-child(odd):not(.full-fact) {
  padding-right: 28px;
}

.release-facts div:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--soft-rule);
}

.release-facts .full-fact {
  grid-column: 1 / -1;
}

.release-facts dt {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.release-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.release-facts code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.83rem;
}

.release-progress {
  margin: 0 0 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.release-progress div {
  min-width: 0;
  padding: 28px 24px 30px;
  border-bottom: 1px solid var(--soft-rule);
}

.release-progress div + div {
  border-left: 1px solid var(--soft-rule);
}

.release-progress dt {
  margin-bottom: 16px;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-progress dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.25;
}

.download-action {
  width: min(100%, 430px);
}

.disabled-action,
.disabled-action:hover {
  border-color: var(--rule);
  background: var(--wash);
  color: var(--quiet);
  cursor: not-allowed;
}

.install-block {
  margin-top: clamp(64px, 8vw, 112px);
}

.install-block > h3 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.updates-panel {
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(28px, 4vw, 52px);
  border-block: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(40px, 6vw, 96px);
  background: var(--paper-light);
}

.updates-panel h3 {
  max-width: 18ch;
  margin: 12px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.updates-panel > div > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
}

.updates-form {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.updates-form label {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.updates-form input,
.updates-form button {
  min-height: 54px;
  border: 1px solid var(--ink);
  border-radius: 0;
}

.updates-form input {
  min-width: 0;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--quiet);
}

.updates-form button {
  padding: 12px 18px;
  background: var(--wash);
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.updates-form p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
}

.privacy-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--soft-rule);
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
  gap: 32px;
}

.privacy-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.privacy-note p {
  max-width: 50rem;
  margin-bottom: 0;
  color: var(--quiet);
}

.site-footer {
  min-height: 150px;
  padding: 36px clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer-copy span:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.site-footer-copy span:last-child {
  color: var(--quiet);
  font-size: 0.85rem;
}

.lumany-credit {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--soft-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--quiet);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lumany-credit a {
  min-height: auto;
  transition: transform 160ms ease;
}

.lumany-credit a:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.lumany-credit img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15) brightness(0.48)
    drop-shadow(0 0 6px rgba(92, 89, 81, 0.28));
}

@media (max-width: 920px), (orientation: portrait) {
  body {
    background: var(--paper);
  }

  .site-header {
    padding: 14px 0;
    align-items: center;
  }

  .paper-spread,
  .section-heading,
  .updates-panel {
    grid-template-columns: 1fr;
  }

  .paper-sheet + .paper-sheet {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .cover-copy {
    min-height: min(760px, calc(100vh - 76px));
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p {
    max-width: 42rem;
  }

  .rhythm-path {
    grid-template-columns: 1fr;
  }

  .rhythm-stage {
    padding-block: 38px 44px;
  }

  .rhythm-stage h3 {
    margin-top: 28px;
  }

  .rhythm-arrow {
    min-height: 58px;
    border-inline: 0;
    border-block: 1px solid var(--soft-rule);
  }

  .rhythm-arrow::before {
    content: "↓";
    font-size: 2.4rem;
  }

  .release-progress {
    grid-template-columns: 1fr;
  }

  .release-progress div + div {
    border-left: 0;
  }

  .updates-panel {
    gap: 36px;
  }

}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--sheet-max));
  }

  .site-header {
    min-height: 72px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .paper-sheet,
  .content-section {
    padding-inline: 20px;
  }

  .cover-copy {
    min-height: 680px;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .cover-photo img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .install-steps li {
    grid-template-columns: 48px 1fr;
  }

  .step-number {
    font-size: 2.2rem;
  }

  .release-card-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-facts {
    grid-template-columns: 1fr;
  }

  .release-facts div,
  .release-facts div:nth-child(odd):not(.full-fact),
  .release-facts div:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .release-facts .full-fact {
    grid-column: auto;
  }

  .updates-form {
    grid-template-columns: 1fr;
  }

  .updates-form label,
  .updates-form p {
    grid-column: auto;
  }

  .updates-form button {
    border-top: 0;
  }

  .privacy-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rule: #4b4a46;
    --soft-rule: #77746b;
    --quiet: #343330;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .site-footer,
  .cover-actions,
  .download-action {
    display: none;
  }

  main {
    width: 100%;
  }

  .content-section,
  .paper-spread {
    break-inside: avoid;
  }
}
