@font-face {
  font-family: "WeiBei Stele";
  src: url("./assets/fonts/WeiBeiStele.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "WeiBei Stele Mono";
  src: url("./assets/fonts/WeiBeiSteleMono.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Noto Serif SC Web";
  src: url("./assets/fonts/NotoSerifSC-Web-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Noto Serif SC Web";
  src: url("./assets/fonts/NotoSerifSC-Web-600.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600 700;
}

@font-face {
  font-family: "Noto Sans SC Web";
  src: url("./assets/fonts/NotoSansSC-Web-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  --brand-paper: #f2e2ca;
  --paper: #f4ead5;
  --paper-raised: #f9f1de;
  --paper-inset: #e8dbbf;
  --ink: #1d1814;
  --brand-ink: #231f1c;
  --ink-secondary: #55493e;
  --ink-tertiary: #7d6e5d;
  --brand-cinnabar: #aa2a23;
  --cinnabar: #91261b;
  --stone: #4d667a;
  --link: #305469;
  --moss: #3b624c;
  --hairline: rgba(83, 67, 50, 0.22);
  --hairline-strong: rgba(83, 67, 50, 0.38);
  --shadow: rgba(65, 42, 24, 0.16);
  --page: 1320px;
  --serif: ui-serif, "Songti SC", "STSong", "Noto Serif SC Web", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC Web", "Noto Sans CJK SC", sans-serif;
  --stele: "WeiBei Stele", serif;
  --stele-mono: "WeiBei Stele Mono", monospace;
}

html[data-theme="inkstone"] {
  --brand-paper: #0f0f0f;
  --paper: #0f0f0f;
  --paper-raised: #151515;
  --paper-inset: #1c1c1c;
  --ink: #d7cbb0;
  --brand-ink: #d7cbb0;
  --ink-secondary: #9b9178;
  --ink-tertiary: #6f6655;
  --brand-cinnabar: #a6362b;
  --cinnabar: #a6362b;
  --stone: #c8b98a;
  --link: #c8b98a;
  --moss: #b88a42;
  --hairline: rgba(155, 145, 120, 0.25);
  --hairline-strong: rgba(155, 145, 120, 0.42);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  color-scheme: light;
  background: var(--paper);
}

html[data-theme="inkstone"] {
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color 420ms ease, background-color 420ms ease;
}

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

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

button {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: color-mix(in srgb, var(--stone) 28%, transparent);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-raised);
  background: var(--ink);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(0.76);
  transition: min-height 180ms ease, border-color 180ms ease, background-color 420ms ease;
}

.site-header.is-scrolled {
  min-height: 60px;
  border-bottom-color: var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: fit-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.mark-ink {
  fill: var(--brand-ink);
}

.mark-seal {
  fill: var(--brand-cinnabar);
}

.brand-word {
  font-family: var(--stele);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.11em;
}

.brand-name {
  padding-left: 9px;
  border-left: 1px solid var(--hairline-strong);
  color: var(--ink-secondary);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.site-nav a,
footer nav a {
  position: relative;
}

.site-nav a::after,
footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--link);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
footer nav a:hover::after,
footer nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.theme-toggle,
.appearance-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--ink-secondary);
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.theme-symbol {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink-tertiary);
  border-radius: 50%;
}

.theme-symbol::after {
  position: absolute;
  inset: 2px 5px 2px 2px;
  content: "";
  background: var(--ink);
}

.header-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-download:hover {
  border-color: var(--cinnabar);
  color: #f8ead4;
  background: var(--cinnabar);
}

.header-download svg,
.text-link svg,
.button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.45;
}

.header-download svg {
  width: 15px;
}

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.kicker {
  margin: 0;
  color: var(--stone);
  font-family: var(--stele-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.13em;
}

.hero h1,
.section-intro h2,
.source-copy h2,
.relations-heading h2,
.appearance h2,
.download-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(410px, 0.86fr) minmax(420px, 0.74fr);
  gap: 48px clamp(40px, 6vw, 96px);
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 112px) 24px 128px;
}

.hero-copy {
  align-self: center;
  padding: 30px 0 22px;
}

.hero h1 {
  max-width: 710px;
  margin-top: 26px;
  font-size: clamp(58px, 6.3vw, 92px);
  line-height: 1.04;
}

.hero-claim {
  margin: 30px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 2.15vw, 31px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-detail {
  max-width: 580px;
  margin: 14px 0 0;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 18px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #f8ead4;
  background: var(--cinnabar);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--cinnabar) 20%, transparent);
}

.button-primary:hover {
  box-shadow: 0 14px 34px color-mix(in srgb, var(--cinnabar) 30%, transparent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--ink-secondary);
  font-size: 13px;
}

.text-link:hover {
  border-color: var(--link);
  color: var(--link);
}

.text-link svg {
  width: 15px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0;
  margin: 44px 0 0;
}

.hero-meta div {
  padding: 0 24px;
  border-left: 1px solid var(--hairline);
}

.hero-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta dt {
  margin-bottom: 7px;
  color: var(--ink-tertiary);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero-meta dd {
  margin: 0;
  font-family: var(--stele-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hero-brand-surface {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 13%, transparent);
  color: var(--brand-ink);
  background: var(--brand-paper);
  isolation: isolate;
}

.hero-brand-surface::before,
.download-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: url("./assets/brand/paper-texture.webp") center / cover;
  opacity: 0.62;
  mix-blend-mode: multiply;
}

html[data-theme="inkstone"] .hero-brand-surface::before,
html[data-theme="inkstone"] .download-panel::before {
  opacity: 0.055;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}

.hero-mark {
  position: absolute;
  top: 26px;
  right: -118px;
  width: min(540px, 112%);
  color: var(--brand-ink);
}

.hero-mark-paper {
  mix-blend-mode: multiply;
}

.hero-mark-inkstone {
  display: none;
}

html[data-theme="inkstone"] .hero-mark-paper {
  display: none;
}

html[data-theme="inkstone"] .hero-mark-inkstone {
  display: block;
}

.hero-brand-surface p {
  position: absolute;
  bottom: 38px;
  left: 36px;
  z-index: 2;
  margin: 0;
  color: var(--ink-secondary);
  font-family: var(--stele-mono);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.16em;
}

.brand-ruling {
  position: absolute;
  z-index: 1;
  width: 152px;
  height: 1px;
  background: var(--brand-ink);
  opacity: 0.52;
}

.brand-ruling::after {
  position: absolute;
  top: 10px;
  left: 0;
  width: 76%;
  height: 1px;
  content: "";
  background: inherit;
}

.brand-ruling-a {
  top: 44px;
  left: 36px;
}

.brand-ruling-b {
  top: 86px;
  left: 36px;
  width: 90px;
}

.source-anchor {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 13px;
  height: 13px;
  background: var(--brand-cinnabar);
}

.workspace-figure,
.relations-figure {
  margin: 0;
}

.workspace-figure {
  grid-column: 1 / -1;
  margin-top: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-raised);
  box-shadow: 0 34px 80px var(--shadow);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--paper-raised) 88%, transparent);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
}

.window-bar span:first-child {
  border-color: var(--cinnabar);
  background: var(--cinnabar);
}

.window-bar b {
  position: absolute;
  left: 50%;
  color: var(--ink-tertiary);
  font-family: var(--stele-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.workspace-viewport {
  overflow: hidden;
  background: var(--paper-inset);
}

.workspace-viewport img {
  width: 100%;
  height: auto;
}

.workspace-figure figcaption,
.relations-figure figcaption {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-figure figcaption span,
.relations-figure figcaption span {
  color: var(--cinnabar);
  font-family: var(--stele-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.workflow {
  padding-top: 132px;
  padding-bottom: 138px;
}

.section-intro {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 20px 80px;
  align-items: end;
  max-width: 980px;
}

.section-intro .kicker {
  grid-column: 1 / -1;
}

.section-intro h2,
.source-copy h2,
.relations-heading h2,
.appearance h2,
.download-copy h2 {
  font-size: clamp(40px, 4.5vw, 66px);
  line-height: 1.12;
}

.section-intro > p:last-child,
.source-copy > p,
.relations-heading > p,
.appearance-copy > p:not(.kicker) {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.workflow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 78px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline-strong);
  list-style: none;
}

.workflow-line::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--cinnabar);
}

.workflow-line li {
  min-height: 320px;
  padding: 30px clamp(24px, 3vw, 44px) 30px;
  border-left: 1px solid var(--hairline);
}

.workflow-line li:first-child {
  padding-left: 0;
  border-left: 0;
}

.step-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--stone);
}

.step-heading span,
.step-heading b {
  font-family: var(--stele-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.workflow-line h3 {
  margin: 86px 0 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.workflow-line p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.source-section {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(520px, 1fr);
  gap: clamp(54px, 8vw, 116px);
  align-items: center;
  padding-top: 122px;
  padding-bottom: 122px;
  border-top: 1px solid var(--hairline);
}

.source-copy h2 {
  margin-top: 24px;
}

.source-copy > p {
  max-width: 480px;
  margin-top: 26px;
}

.source-types {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.source-types li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 13px;
}

.source-types span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--stone);
  color: var(--link);
  font-family: var(--serif);
  font-weight: 700;
}

.source-proof {
  position: relative;
  min-height: 520px;
  padding: 38px 42px 48px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-raised);
  box-shadow: 16px 18px 0 color-mix(in srgb, var(--paper-inset) 75%, transparent);
}

.proof-label {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  color: var(--stone);
  font-family: var(--stele-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.proof-answer {
  max-width: 610px;
  margin: 38px 0 46px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.65;
}

.proof-citations {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.proof-citations a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 57px;
  border-bottom: 1px solid var(--hairline);
  transition: color 140ms ease, background 140ms ease;
}

.proof-citations a:hover {
  color: var(--link);
  background: color-mix(in srgb, var(--stone) 7%, transparent);
}

.proof-citations b {
  color: var(--link);
  font-family: var(--stele-mono);
  font-size: 11px;
  font-weight: 400;
}

.proof-citations span {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 650;
}

.proof-citations em {
  color: var(--ink-tertiary);
  font-family: var(--stele-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.proof-anchor {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 11px;
  height: 11px;
  background: var(--cinnabar);
}

.relations {
  padding-top: 138px;
  padding-bottom: 138px;
}

.relations-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 60px;
  align-items: end;
}

.relations-heading h2 {
  margin-top: 22px;
}

.relations-figure {
  margin-top: 66px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-raised);
  box-shadow: 0 30px 64px var(--shadow);
}

.control-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 72px 96px;
  padding-top: 124px;
  padding-bottom: 136px;
  border-top: 1px solid var(--hairline);
}

.control-quote blockquote {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 55px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.note-proposal {
  padding: 28px 30px 26px;
  border-top: 3px solid var(--cinnabar);
  border-bottom: 1px solid var(--hairline-strong);
  background: var(--paper-raised);
}

.proposal-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-tertiary);
  font-size: 11px;
}

.proposal-top span {
  color: var(--cinnabar);
  font-weight: 700;
}

.proposal-top b {
  font-family: var(--stele-mono);
  font-weight: 400;
}

.note-proposal p {
  margin: 25px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.note-proposal del {
  color: var(--ink-tertiary);
  text-decoration-color: var(--cinnabar);
}

.note-proposal ins {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(transparent 72%, color-mix(in srgb, var(--moss) 18%, transparent) 72%);
}

.proposal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
}

.proposal-actions span,
.proposal-actions strong {
  padding: 10px 14px;
  border: 1px solid var(--hairline-strong);
}

.proposal-actions strong {
  border-color: var(--cinnabar);
  color: #f8ead4;
  background: var(--cinnabar);
}

.product-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--hairline-strong);
}

.product-facts div {
  padding: 28px 32px 0;
  border-left: 1px solid var(--hairline);
}

.product-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.product-facts dt {
  margin-bottom: 16px;
  color: var(--stone);
  font-family: var(--stele-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.product-facts dd {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.appearance {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
  max-width: none;
  padding-top: 118px;
  padding-right: max(24px, calc((100vw - var(--page)) / 2));
  padding-bottom: 118px;
  padding-left: max(24px, calc((100vw - var(--page)) / 2));
  color: #d7cbb0;
  background: #0f0f0f;
}

.appearance .kicker {
  color: #c8b98a;
}

.appearance h2 {
  margin-top: 22px;
  color: #d7cbb0;
}

.appearance-copy > p:not(.kicker) {
  max-width: 500px;
  margin-top: 24px;
  color: #9b9178;
}

.appearance-button {
  margin-top: 34px;
  padding: 10px 0;
  border-bottom: 1px solid #6f6655;
  color: #c8b98a;
  font-size: 13px;
}

.appearance-button i {
  position: relative;
  width: 38px;
  height: 18px;
  border: 1px solid #6f6655;
  border-radius: 10px;
}

.appearance-button i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: #a6362b;
  transition: transform 240ms ease;
}

html[data-theme="inkstone"] .appearance-button i::after {
  transform: translateX(20px);
}

.appearance-study {
  display: grid;
  grid-template-columns: 84px 1fr 0.72fr;
  min-height: 390px;
  border: 1px solid #39362f;
  background: #151515;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.study-rail {
  padding: 34px 22px;
  border-right: 1px solid #39362f;
}

.study-rail span {
  display: block;
  height: 5px;
  margin-bottom: 18px;
  background: #6f6655;
}

.study-rail span:first-child {
  background: #a6362b;
}

.study-page,
.study-note {
  position: relative;
  padding: 38px 34px;
}

.study-page {
  border-right: 1px solid #39362f;
}

.study-page b,
.study-note b {
  display: block;
  margin-bottom: 48px;
  color: #9b9178;
  font-family: var(--stele-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.study-page i,
.study-note i {
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 16px;
  background: #403c33;
}

.study-page i.short,
.study-note i.short {
  width: 60%;
}

.study-page i.medium {
  width: 78%;
}

.study-page mark {
  display: block;
  width: 86%;
  height: 2px;
  margin: -10px 0 28px;
  background: #a6362b;
}

.download-section {
  padding: 124px max(24px, calc((100vw - var(--page)) / 2)) 104px;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  min-height: 480px;
  overflow: hidden;
  padding: 62px clamp(36px, 7vw, 92px);
  border: 1px solid color-mix(in srgb, var(--brand-ink) 14%, transparent);
  background: var(--brand-paper);
  isolation: isolate;
}

.download-panel > img {
  position: relative;
  z-index: 2;
  width: 220px;
  filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--brand-ink) 17%, transparent));
}

.download-copy {
  position: relative;
  z-index: 2;
}

.download-copy h2 {
  max-width: 680px;
  margin-top: 20px;
}

.download-meta {
  margin: 24px 0 0;
  color: var(--ink-secondary);
  font-size: 13px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.button-large {
  min-height: 54px;
  padding: 0 24px;
}

.download-file {
  color: var(--ink-tertiary);
  font-family: var(--stele-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 660px;
  margin-top: 26px;
  border-top: 1px solid var(--hairline-strong);
}

.download-options[hidden] {
  display: none;
}

.download-options a {
  display: grid;
  gap: 8px;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-secondary);
}

.download-options a:nth-child(even) {
  padding-right: 0;
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
}

.download-options a:hover {
  color: var(--link);
}

.download-options strong {
  color: var(--ink);
  font-size: 13px;
}

.download-options span {
  overflow: hidden;
  font-family: var(--stele-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-word {
  position: absolute;
  right: -22px;
  bottom: -28px;
  z-index: 0;
  color: color-mix(in srgb, var(--brand-ink) 7%, transparent);
  font-family: var(--stele);
  font-size: clamp(100px, 16vw, 230px);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--page);
  min-height: 100px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--hairline);
}

.brand-footer .brand-mark {
  width: 28px;
  height: 28px;
}

.brand-footer .brand-word {
  font-size: 14px;
}

footer p {
  margin: 0;
  color: var(--ink-tertiary);
  font-family: var(--stele-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

footer nav {
  display: flex;
  justify-self: end;
  gap: 26px;
  color: var(--ink-secondary);
  font-size: 12px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.22, 0.75, 0.2, 1);
}

.reveal.reveal-ready[data-reveal-delay="1"] {
  transition-delay: 50ms;
}

.reveal.reveal-ready[data-reveal-delay="2"] {
  transition-delay: 100ms;
}

.reveal.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr 0.76fr;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(54px, 7.4vw, 76px);
  }

  .hero-brand-surface {
    min-height: 410px;
  }

  .source-section {
    grid-template-columns: 0.7fr 1fr;
    gap: 54px;
  }

  .source-proof {
    padding: 32px;
  }

  .control-section {
    gap: 56px;
  }

  .appearance {
    gap: 54px;
  }

  .appearance-study {
    grid-template-columns: 68px 1fr;
  }

  .study-note {
    display: none;
  }

  .study-page {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .brand-name,
  .theme-toggle span:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-brand-surface {
    min-height: 360px;
  }

  .hero-mark {
    top: -12px;
    right: -76px;
    width: 470px;
  }

  .workspace-figure {
    margin-top: 0;
  }

  .section-intro,
  .source-section,
  .relations-heading,
  .control-section,
  .appearance {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 18px;
  }

  .workflow-line {
    grid-template-columns: 1fr;
  }

  .workflow-line li,
  .workflow-line li:first-child {
    min-height: 0;
    padding: 28px 0 34px;
    border-bottom: 1px solid var(--hairline);
    border-left: 0;
  }

  .workflow-line h3 {
    margin-top: 54px;
  }

  .source-section {
    gap: 58px;
  }

  .relations-heading {
    gap: 26px;
  }

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

  .product-facts div,
  .product-facts div:first-child {
    padding: 24px 0;
    border-bottom: 1px solid var(--hairline);
    border-left: 0;
  }

  .appearance {
    gap: 56px;
  }

  .download-panel {
    grid-template-columns: 160px 1fr;
    padding: 48px 36px;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .download-options a:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .download-panel > img {
    width: 150px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .brand-word {
    font-size: 14px;
  }

  .theme-toggle {
    padding: 0 5px;
  }

  .header-download {
    min-height: 34px;
    padding: 0 11px;
  }

  .section,
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    gap: 38px;
    padding-top: 52px;
    padding-bottom: 96px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(44px, 12vw, 50px);
    line-height: 1.1;
  }

  .hero-claim {
    margin-top: 24px;
    font-size: 22px;
  }

  .hero-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta div {
    padding: 0 13px;
  }

  .hero-meta dd {
    font-size: 10px;
  }

  .hero-brand-surface {
    min-height: 320px;
  }

  .hero-mark {
    top: 10px;
    right: -74px;
    width: 390px;
  }

  .hero-brand-surface p {
    bottom: 24px;
    left: 24px;
    font-size: 11px;
  }

  .brand-ruling-a,
  .brand-ruling-b {
    left: 24px;
  }

  .window-bar {
    height: 34px;
  }

  .window-bar b {
    display: none;
  }

  .workspace-viewport img {
    width: 165%;
    max-width: none;
    transform: translateX(-20%);
  }

  .workspace-figure figcaption,
  .relations-figure figcaption {
    align-items: flex-start;
    min-height: 0;
    padding: 12px;
  }

  .workflow,
  .relations {
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .source-section,
  .control-section {
    padding-top: 92px;
    padding-bottom: 98px;
  }

  .section-intro h2,
  .source-copy h2,
  .relations-heading h2,
  .appearance h2,
  .download-copy h2 {
    font-size: 40px;
  }

  .source-proof {
    min-height: 0;
    padding: 26px 22px 38px;
    box-shadow: 8px 10px 0 color-mix(in srgb, var(--paper-inset) 75%, transparent);
  }

  .proof-answer {
    margin: 28px 0 34px;
    font-size: 22px;
  }

  .proof-citations a {
    grid-template-columns: 28px 1fr;
    padding: 10px 0;
  }

  .proof-citations em {
    grid-column: 2;
  }

  .control-section {
    gap: 42px;
  }

  .note-proposal {
    padding: 24px 20px;
  }

  .appearance {
    padding: 92px 18px;
  }

  .appearance-study {
    grid-template-columns: 50px 1fr;
    min-height: 310px;
  }

  .study-rail {
    padding: 26px 14px;
  }

  .study-page {
    padding: 28px 22px;
  }

  .download-section {
    padding: 72px 18px 76px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 32px 24px 48px;
  }

  .download-panel > img {
    width: 112px;
  }

  .download-word {
    font-size: 94px;
  }

  footer {
    min-height: 86px;
    padding: 18px;
  }

  footer nav {
    gap: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
