@font-face {
  font-family: DM Sans;
  src: url(/assets/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Barlow Condensed;
  src: url(/assets/barlow-condensed-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf7f3;
  --ink: #271520;
  --muted: #614c59;
  --line: #ded4d9;
  --wine: #3a152a;
  --dark: #200e19;
  --accent: #e6fb7a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  font: normal 100%/1.6 "DM Sans", system-ui, sans-serif;
  scroll-padding-top: 1.25rem;
  scroll-padding-bottom: 8rem;
}

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

body { margin: 0; background: var(--paper); color: var(--ink); }
body:has(.dock) { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }

a { color: #86194e; text-decoration-thickness: .075em; text-underline-offset: .16em; }
a:hover { color: #571431; }
a:focus-visible, button:focus-visible { outline: 3px solid #126db2; outline-offset: 4px; }
.hero a:focus-visible, .dock a:focus-visible, .topbar a:focus-visible { outline-color: #9af4ff; }

h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1; }
h2 { font-size: clamp(2.2rem, 5vw, 3.65rem); letter-spacing: -.015em; }
h3, dt { font-weight: 700; line-height: 1.35; }
p + p { margin-top: .9rem; }
img { display: block; max-width: 100%; }
code { overflow-wrap: anywhere; font-size: .92em; }

.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-200%); background: white; padding: .5rem .75rem; }
.skip:focus { transform: none; }

.topbar { background: var(--dark); border-bottom: 1px solid #684456; color: white; }
.topbar-inner { height: 4.65rem; display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.wordmark { display: flex; align-items: center; gap: .25rem; line-height: 1.07; font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.wordmark small { display: block; margin-top: .18rem; font-size: .69rem; font-weight: 500; color: #e1cdd8; }
.topbar a, .hero a { color: white; }
.topbar .top-nav a:hover, .hero a:hover { color: var(--accent); }
.top-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.8vw, 2.2rem); font-size: .9rem; }
.top-nav a { text-decoration: none; }
.top-nav .nav-install { display: grid; place-items: center; min-height: 44px; padding: .4rem .8rem; border: 1px solid #92667d; border-radius: .4rem; }
.nav-install[aria-current] { background: #482435; }

.hero { position: relative; overflow: hidden; color: white; background: radial-gradient(ellipse at 82% 55%, #5b1d3b, transparent 56%), linear-gradient(118deg, var(--dark), var(--wine)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 6vw, 5.2rem); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { border-inline-start: .22rem solid var(--accent); padding-inline-start: .65rem; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.55rem, 7.8vw, 7.65rem); margin-top: .38rem; letter-spacing: -.015em; }
.hero-intro { max-width: 33rem; margin-top: .78rem; color: #f7e9ef; font-size: clamp(1.05rem, 2.3vw, 1.32rem); line-height: 1.42; }
.hero-actions { margin-top: 1.45rem; }
.hero-detail { margin-top: .78rem; max-width: 30rem; color: #eddae4; font-size: .9rem; }
.hero-art { position: relative; display: grid; place-items: center; isolation: isolate; min-width: 0; }
.hero-art figure { position: relative; margin-bottom: .6rem; width: min(100%, 22rem); }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 1.15rem 1.35rem #200b18b5); }
.hero-art figcaption { color: #f3dfe9; text-align: center; font-size: .82rem; }
.field-mark { position: absolute; inset: 3% 3% 10%; z-index: -1; border: 1px solid #ed9bc24f; border-radius: 50%; transform: rotate(-24deg); }
.field-mark::before, .field-mark::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.field-mark::before { width: 78%; height: 70%; border: 1px solid #f6a4ca4d; border-radius: 50%; }
.field-mark::after { width: 78%; height: 1px; border-block-start: 1px dashed #f6a4ca58; }

.guide-hero { padding-block: 1.15rem 2.65rem; }
.guide-hero h1 { font-size: clamp(3.2rem, 7.2vw, 6rem); }
.breadcrumbs { display: flex; gap: .55rem; margin-bottom: 1.03rem; font-size: .83rem; color: #edd7e5; }

.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.align-left, .dock-left { justify-content: start; }
.align-center, .dock-center { justify-content: center; }
.align-right, .dock-right { justify-content: end; }
.align-stretch > *, .dock-stretch > * { flex: 1 1 9rem; }
.action { display: inline-flex; flex-direction: column; min-width: 8.5rem; justify-content: center; align-items: center; gap: .1rem; text-align: center; padding: .5rem .95rem; min-height: 3rem; border: 1px solid transparent; border-radius: .38rem; text-decoration: none; font-size: .95rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.action small { display: block; font-size: .69rem; font-weight: 600; }
.action-download, .hero .action-download { color: #251724; background: var(--accent); border-color: var(--accent); }
a.action-download:hover, .hero a.action-download:hover { background: #f2ffa9; border-color: #f2ffa9; color: var(--ink); }
.action-download[aria-disabled] { color: #f3e5ee; border-color: #a48b9b; background: #492d43; cursor: default; }
.action-offer, .hero .action-offer { color: white; background: #9d2556; border-color: #c83d74; }
.action-offer:hover, .hero .action-offer:hover { color: white; background: #b02b61; }
.action-offer[aria-disabled] { cursor: default; }

.dock { position: fixed; z-index: 5; inset: auto 0 0; padding-block: .6rem calc(.6rem + env(safe-area-inset-bottom)); background: #200e19; border-top: 1px solid #6b465b; box-shadow: 0 -.3rem 1rem #200e1929; }
.dock .action { min-width: min(100%, 10.1rem); }

.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 1rem .5rem; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.shortcuts a { padding: .8rem 1rem; color: var(--ink); text-decoration: none; }
.shortcuts a + a { border-inline-start: 1px solid var(--line); }
.shortcuts span, .shortcuts small { display: block; }
.shortcuts span { font-weight: 700; }
.shortcuts small { color: var(--muted); line-height: 1.22; }
.shortcuts a:hover span { text-decoration: underline; }

.article-shell { width: min(100%, 59rem); }
.guide-article { width: min(100% - 3rem, 59rem); }
.article-shell > section { padding-block: clamp(1.8rem, 5vw, 3rem); }
.article-shell > section + section { border-top: 1px solid var(--line); }
.article-shell h2 + * { margin-top: .95rem; }
.article-shell h3 { margin-top: 1.3rem; margin-bottom: .45rem; }
.article-shell ol, .article-shell dl { margin-block: .85rem; }
.article-shell ol { padding-inline-start: 1.45rem; }
.steps li + li { margin-top: .58rem; }
.steps li::marker { color: #86194e; font-weight: 700; }

.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.device { border: 1px solid var(--line); border-block-start: 3px solid #8a2855; border-radius: .35rem; padding: 1rem; background: white; min-width: 0; }
.device h3, .status-panel h3 { margin: 0 0 .45rem; }
.device p, .status-panel p { margin: 0; }
.device p + p { margin-top: .55rem; }
.status-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 1rem; border-radius: .4rem; background: #f6eef1; }
.status-panel > div { padding: .95rem 1.05rem; }
.status-panel > div + div { border-inline-start: 1px solid var(--line); }
.answer-list > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; align-items: baseline; gap: .35rem .8rem; border-top: 1px solid var(--line); padding-block: .65rem; }
.version-table { width: 100%; border-collapse: collapse; margin-block: 1.05rem; text-align: left; }
.version-table th, .version-table td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; }
.version-table thead { background: #f0e2e8; }
.version-table caption { color: var(--muted); text-align: left; padding-bottom: .25rem; }

.footer { background: #efe7eb; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: .9rem 2rem; flex-wrap: wrap; padding-block: 1.2rem; font-size: .9rem; }
.footer-inner p + p { margin-top: .15rem; }
.footer-inner nav { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.footer-inner nav a { min-height: 44px; display: flex; align-items: center; }
.not-found { padding-block: 2.5rem; }

@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 76rem); }
  .article-shell { width: min(100%, 59rem); }
  .guide-article { width: min(100% - 2rem, 59rem); }
  .topbar-inner { height: 3.65rem; }
  .wordmark img { width: 40px; height: 40px; }
  .top-nav .keep-desktop { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; padding-block: 1.8rem 1rem; }
  .hero-art { min-height: 9.25rem; }
  .hero-art figure { width: min(62%, 9.25rem); }
  .hero-art figcaption { font-size: .69rem; }
  .field-mark { inset: 5% 13% 10%; transform: rotate(-12deg); }
  .hero-actions { margin-top: 1rem; }
  .hero-detail { margin-top: .65rem; }
  .guide-hero { padding-bottom: 1.65rem; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts a:nth-child(odd) { border-inline-start: 0; }
  .shortcuts a:nth-child(n+3) { border-block-start: 1px solid var(--line); }
  .device-grid { grid-template-columns: 1fr; }
  .mobile-left { justify-content: start; }
  .mobile-center { justify-content: center; }
  .mobile-right { justify-content: end; }
  .mobile-stretch > *, .dock-stretch > * { flex: 1; }
  .dock .action { min-width: min(41%, 10.1rem); }
  .action { min-width: 0; }
}

@media (max-width: 430px) {
  .actions { gap: .4rem; }
  .action { font-size: .84rem; padding-inline: .5rem; }
  .action small { font-size: .65rem; }
  .answer-list > div { grid-template-columns: 1fr; }
  .version-table { font-size: .85rem; }
  .version-table th, .version-table td { padding-inline: .3rem; }
  .status-panel { grid-template-columns: 1fr; }
  .status-panel > div + div { border-inline-start: 0; border-block-start: 1px solid var(--line); }
}
