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

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

:root {
  color-scheme: light;
  --paper: #f5f6ee;
  --white: #fff;
  --ink: #14251b;
  --muted: #46544a;
  --line: #d6dfd2;
  --green: #163c2b;
  --deep: #10261a;
  --lime: #d9ee71;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --dock-offset: 0px;
  font-family: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
button { font: inherit; }
a { color: #245338; text-underline-offset: .18em; }
a:hover { color: #143525; }
:focus-visible { outline: 3px solid #417045; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--heading); line-height: 1.04; font-weight: 700; }
h1 { font-size: clamp(3.25rem, 7vw, 6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: 1.9rem; }
p { margin: .75em 0 0; }
.shell { width: min(1220px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link { position: fixed; z-index: 15; top: .5rem; left: 1rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.masthead { background: var(--paper); }
.masthead-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-block-size: 44px; color: inherit; white-space: nowrap; font-size: 1.125rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.35rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; color: var(--ink); font-weight: 650; }
.site-nav a:hover, .site-nav [aria-current="page"] { text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 540px; overflow: hidden; color: var(--white); background: var(--deep); border-radius: 20px; }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 auto; height: 100%; width: 75%; object-fit: cover; object-position: 58% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10261a 4%, #10261a 26%, #10261ae8 39%, #10261a35 73%, #07171122), linear-gradient(0deg, #08180dbf, transparent 26%); }
.hero-content { position: relative; width: min(680px, 69%); padding: 54px clamp(24px, 6vw, 72px); }
.hero h1 { font-size: clamp(4.25rem, 8.8vw, 8rem); line-height: .88; margin-block: 16px 21px; }
.hero h1 span { display: block; color: var(--lime); }
.hero-facts { display: flex; align-items: center; gap: .65rem; font-size: .875rem; color: #eef3e8; font-weight: 600; }
.dot { display: inline-block; border-radius: 50%; width: .55rem; height: .55rem; background: var(--lime); }
.hero-content > p { max-width: 28rem; color: #ebf1e7; font-size: clamp(.97rem, 1.5vw, 1.15rem); }
.hero .actions { margin-top: 26px; }
.hero-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin-top: 9px; color: #fff; font-size: .9rem; }
.hero-link:hover { color: var(--lime); }
.source-credit { margin-block: -45px 24px; font-size: .78rem; text-align: right; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-block-size: 46px; text-decoration: none; padding: .67rem 1rem; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: .92rem; line-height: 1.25; cursor: pointer; text-align: center; }
.button-primary { color: #172614; background: var(--lime); border-color: var(--lime); }
.button-primary:hover { color: #172614; background: #e5f79d; }
.button-outline { color: var(--green); background: transparent; border-color: #76907d; }
.button-outline:hover { background: #e6eee2; }
.hero .button-outline { color: var(--white); background: #10261a90; border-color: #ccd9ca8c; }
.hero .button-outline:hover { background: #1d3d2c; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
.button[aria-disabled="true"] { opacity: .65; cursor: default; }

.task-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fbfcf6; }
.task-strip a { display: flex; align-items: center; justify-content: space-between; gap: .55rem; min-width: 0; min-height: 65px; padding: .65rem clamp(.65rem, 2vw, 1.35rem); text-decoration: none; font-weight: 700; color: var(--ink); }
.task-strip a + a { border-left: 1px solid var(--line); }
.task-strip a:hover { background: #e9f0dc; }
.task-strip a:focus-visible { outline-offset: -4px; }
.task-strip a span[aria-hidden] { color: #527449; font-size: 1.1rem; flex: 0 0 auto; }

.band { margin-block: clamp(42px, 7vw, 92px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 22px; }
.section-heading p { color: var(--muted); margin: 0; max-width: 31rem; }
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { padding: clamp(17px, 2.8vw, 30px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.tile p { color: var(--muted); }
.tile :where(a, .text-button) { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; font-size: .93rem; font-weight: 700; }
.tile-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 17px; border-radius: 8px; color: var(--green); background: #e9f3d9; font-size: 1.35rem; font-weight: 700; }
.text-button { padding: 0; color: #245338; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; text-align: left; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 28%); gap: clamp(25px, 6vw, 105px); align-items: start; }
.editorial { min-width: 0; }
.editorial section { padding-top: 24px; margin-bottom: 28px; border-top: 1px solid var(--line); }
.editorial p, .editorial li, .editorial dd { max-width: 70ch; }
.editorial p, .editorial li, .editorial dd, .side-note p { color: var(--muted); }
.side-note { padding: 23px; background: #e6eedf; border-radius: 12px; border: 1px solid #d7e4d1; }
.side-note h2 { font-size: 2rem; }
.side-note .button { margin-top: 14px; }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 4vw, 32px); margin-block: 23px 68px; border: 1px solid #cbd8c6; background: #e8efdf; border-radius: 12px; }
.download-panel h2 { font-size: 2.3rem; }
.download-panel p { margin-top: .4em; }

.guide-shell { margin-block: 14px 55px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .85rem; color: var(--muted); font-size: .875rem; }
.crumb a { font-weight: 700; }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: clamp(22px, 4.5vw, 60px); margin-bottom: 40px; border: 1px solid #d7e2cc; border-radius: 14px; background: #ebf0df; }
.guide-intro h1 { font-size: clamp(3rem, 6vw, 5.25rem); }
.guide-intro p { max-width: 61ch; color: var(--muted); }
.guide-intro .actions { margin-top: 18px; }
.dream-app-mark { width: clamp(68px, 10vw, 102px); height: auto; }
.dream-intro .button { min-width: 110px; }
.edition-badge { display: flex; align-items: center; gap: 12px; padding: 14px 19px 14px 14px; background: #f9fbf4; border: 1px solid var(--line); border-radius: 12px; }
.edition-badge img { border-radius: 10px; }
.edition-badge span { display: block; font-size: .78rem; color: var(--muted); }
.edition-badge strong { font-size: 1rem; }
.guide-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.guide-article { max-width: 800px; }
.section-nav { align-self: start; top: 20px; position: sticky; display: flex; flex-direction: column; padding: .4rem .75rem; border-block: 1px solid var(--line); }
.section-nav a { padding: .62rem .25rem; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 650; }
.section-nav a + a { border-top: 1px solid var(--line); }
.section-nav a:hover { text-decoration: underline; }
.file-record, .fix-list { margin: 1em 0 0; }
.file-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 9px; background: var(--line); overflow: hidden; }
.file-record div { min-width: 0; padding: .7rem .85rem; background: #fcfdf7; }
.file-record dt { font-size: .825rem; color: var(--muted); }
.file-record dd, .fix-list dd { margin: 0; }
.file-record dd { font-weight: 700; }
.file-record .hash-row { grid-column: 1 / -1; }
.hash-row code { font-size: .9rem; overflow-wrap: anywhere; }
.file-check { margin: 1rem 0; padding: 17px; background: #e8efdf; border-radius: 9px; }
.file-check input { display: block; width: min(100%, 380px); margin-top: .65rem; min-block-size: 31px; font: inherit; }
.file-check label { cursor: default; }
.file-check p { margin-top: .4rem; }
.steps { padding-left: 1.65rem; }
.steps li { padding: .5rem .2rem; }
.guide-article .actions { margin-top: 16px; }
.fix-list > div { padding: .8rem 0; }
.fix-list > div + div { border-top: 1px solid var(--line); }
.fix-list dt { font-weight: 700; }

.utility { max-width: 900px; min-height: 55vh; margin-block: 54px 65px; }
.utility > p { max-width: 57ch; }
.utility .button { margin-top: 14px; }
.utility .task-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.plain-links { padding-left: 1.25rem; }
.plain-links a { display: inline-flex; min-block-size: 44px; align-items: center; }

.site-footer { background: var(--deep); color: #eff5e9; }
.footer-grid { min-height: 130px; padding-block: 25px; display: flex; gap: 18px 40px; align-items: center; justify-content: space-between; }
.site-footer p, .site-footer a { color: #eff5e9; font-size: .9rem; }
.site-footer .brand { font-size: 1.1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.dock { position: fixed; z-index: 3; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(440px, 100% - 24px); padding: 8px; border: 1px solid #d1ddcb; background: #fbfdf3; border-radius: 11px; box-shadow: 0 7px 26px #162d2326; }
.dock .actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 7px; }
.dock .button { padding-inline: .4rem; min-block-size: 43px; }

.install-card { position: fixed; z-index: 4; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--dock-offset) + var(--card-shift, 0px)); width: max-content; max-width: min(240px, 100% - 32px); color: var(--ink); }
.install-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 3px; position: relative; padding: 9px; border: 1px solid #cbd8c7; background: #fcfef7; border-radius: 12px; box-shadow: 0 9px 36px #112f2729; }
.install-title { display: flex; align-items: center; gap: 6px; font-size: .86rem; line-height: 1.25; }
.install-title img { width: 30px; height: 30px; border-radius: 7px; }
.install-controls { display: flex; justify-content: flex-end; margin: 0 -4px 0 0; }
.icon-button { width: 37px; height: 42px; border: 0; background: none; font-size: 1.19rem; color: var(--muted); border-radius: 5px; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: #edf2e4; }
.button-install, .install-peek { color: #fff; background: var(--green); }
.button-install { grid-column: 1 / -1; min-block-size: 44px; }
.button-install:hover, .install-peek:hover { color: #fff; background: #20563b; }
.install-peek { box-shadow: 0 6px 16px #112f2729; }
.install-help { grid-column: 1 / -1; margin: 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 780px) {
  .hero { min-height: 475px; }
  .hero-photo { width: 87%; object-position: 65% center; }
  .hero-content { width: min(540px, 77%); }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .download-panel { align-items: flex-start; flex-direction: column; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .section-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; column-gap: .9rem; }
  .section-nav a + a { border-top: 0; }
}

@media (max-width: 570px) {
  .masthead-inner { min-height: 62px; }
  .brand { font-size: 1.03rem; gap: .45rem; }
  .brand img { width: 29px; height: 29px; }
  .site-nav a { font-size: .82rem; }
  .site-nav .nav-account { display: none; }
  .hero { min-height: 440px; border-radius: 14px; align-items: start; }
  .hero-photo { inset: auto 0 0; width: 100%; height: 69%; object-position: 58% 67%; }
  .hero::after { background: linear-gradient(180deg, #10261a 0 28%, #10261ae6 56%, #10261a40 83%, #08180db0); }
  .hero-content { width: 100%; padding: 24px 17px 43px; }
  .hero h1 { font-size: clamp(3.55rem, 16vw, 5.2rem); margin-block: .25em; }
  .hero .actions { margin-top: 17px; gap: 6px; }
  .hero .button { padding-inline: .65rem; }
  .hero-link { margin-top: 4px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .device-grid { grid-template-columns: 1fr; }
  .tile-icon { float: left; margin: 0 10px 0 0; }
  .tile h3 { padding-top: 4px; }
  .tile p { clear: both; padding-top: 5px; }
  .task-strip, .utility .task-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-strip a { min-height: 53px; font-size: .875rem; }
  .task-strip a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .task-strip a:nth-child(odd) { border-left: 0; }
  .guide-intro { grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
  .dream-app-mark { grid-row: 1; }
  .edition-badge { justify-self: start; padding: 7px 12px 7px 7px; }
  .edition-badge img { width: 36px; height: 36px; }
  .footer-grid { align-items: start; flex-direction: column; gap: 10px; }
  .install-card { right: 12px; max-width: min(220px, 100% - 24px); }
}

@media (max-width: 350px) {
  .hero { min-height: 465px; }
  .hero .actions, .guide-intro .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .hero .button, .guide-intro .button, .dock .button { font-size: .8rem; padding-inline: .37rem; }
  .hero .button-outline span, .guide-intro .button-outline span, .dock .button-outline span { display: none; }
  .site-nav { gap: .58rem; }
  .site-nav a { white-space: nowrap; }
  .guide-intro h1 { font-size: 2.6rem; }
  .guide-intro { min-height: 430px; padding: 19px 19px 31px; align-items: start; }
  .dream-intro { min-height: 0; }
  .edition-badge { display: none; }
  .file-record { grid-template-columns: 1fr; }
}
