@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f5f2e9;
  --surface: #fffdf7;
  --ink: #19170f;
  --muted: #6b675c;
  --border: rgba(25, 23, 15, 0.16);
  --accent: #f4c430;
  --accent-light: #fff4bd;
  --link: #694f08;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.6 Manrope, "Avenir Next", system-ui, sans-serif;
}

a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #765f0b; outline-offset: 4px; }

.page { width: min(1180px, calc(100% - 48px)); margin: auto; }
.site-header, .site-footer, .sync { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { min-height: 83px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.18rem; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 30px); }
nav a, .site-footer a { font-size: .88rem; font-weight: 800; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  border: 1px solid rgba(25, 23, 15, 0.28);
  background: var(--surface);
}

.hero-copy { padding: clamp(32px, 5.4vw, 76px); align-self: center; }
.eyebrow { margin: 0 0 10px; color: var(--link); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.045em; }
h1 { font-size: clamp(2.75rem, 5vw, 4.65rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.27rem; }
.lede { margin: 20px 0 27px; max-width: 39ch; font-size: 1.03rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 10px; justify-content: center; min-height: 47px; padding: 10px 17px; border-radius: 10px; color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; }
.primary { background: var(--accent); }
.primary:hover { background: #e6b71f; }

.hero-preview {
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 0;
  padding: clamp(24px, 4vw, 51px);
  background: radial-gradient(ellipse at top right, #ffed9a, transparent 75%), var(--accent-light);
}

.preview-window { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: 0 18px 42px rgba(66, 47, 9, 0.18); }
.preview-bar { position: relative; padding: 10px 16px; text-align: center; font-size: .72rem; color: var(--muted); font-weight: 800; }
.window-dots { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d4c9ac; }
.preview-window img { display: block; width: 100%; height: auto; }
figcaption { font-size: .82rem; font-weight: 700; text-align: center; color: #574715; }
kbd { padding: 2px 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; font: inherit; }

.section { padding: clamp(44px, 6vw, 74px) 0 0; scroll-margin-top: 12px; }
.section-intro, .sync p:not(.eyebrow) { margin: 11px 0 0; color: var(--muted); }
.extension-grid, .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.extension-card, .steps li { padding: clamp(20px, 3vw, 33px); border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.extension-card { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 17px; }
.number { display: grid; place-items: center; width: 42px; height: 42px; background: var(--accent-light); border-radius: 10px; color: var(--link); font-size: .83rem; font-weight: 800; }
.extension-card p, .steps p { margin: 9px 0; color: var(--muted); }
.extension-card a { font-size: .88rem; font-weight: 800; }
.steps { padding: 0; list-style-position: inside; }
.steps > li::marker { color: var(--link); font-weight: 800; }
.steps h3 { display: inline; }
.commands { padding: 0; list-style: none; }
.commands li { margin-top: 7px; padding: 0; border: 0; }
code { padding: .1em .35em; border: 1px solid var(--border); border-radius: 5px; background: var(--background); font-size: .84em; overflow-wrap: anywhere; }
.sync { margin-top: clamp(40px, 6vw, 68px); padding: clamp(23px, 4vw, 40px); border: 1px solid var(--border); border-radius: 15px; background: var(--accent-light); }
.sync p:not(.eyebrow) { max-width: 66ch; }
.sync .button { flex-shrink: 0; }
.site-footer { padding: 23px 0 36px; color: var(--muted); font-size: .84rem; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 10px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

@media (max-width: 760px) {
  .page { width: calc(100% - 28px); }
  .site-header { min-height: 68px; gap: 12px; }
  .hero, .extension-grid, .steps { grid-template-columns: 1fr; }
  .sync { align-items: flex-start; flex-direction: column; }
}
