:root {
  --bg: #f5f7fa;
  --surface: #fff;
  --text: #24272b;
  --muted: #525a65;
  --primary: #973a1e;
  --accent: #ff7951;
  --line: #d9dee4;
  --focus: #9d390f;
  --radius: 24px;
  --space: 1rem;
  --body-size: 16px;
  color: var(--text);
  background: var(--bg);
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 8px; top: -80px; background: white; padding: 12px; }
.skip:focus { top: 8px; }
.mast, footer { background: white; }
.mast { border-bottom: 1px solid var(--line); }
.navline, .foot, .navlinks, .foot nav, .actions { display: flex; align-items: center; }
.navline, .foot { justify-content: space-between; gap: 16px; }
.navline { min-height: 70px; }
.brand { display: inline-flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; font-size: 1.25rem; font-weight: 820; letter-spacing: -.055em; }
.brand img, .brand svg { width: 28px; height: 28px; }
.navlinks, .foot nav { gap: clamp(12px, 3vw, 30px); }
.navlinks a, .foot nav a { color: var(--text); text-decoration: none; font-weight: 630; font-size: .94rem; }
.navlinks a:hover, .foot nav a:hover { text-decoration: underline; }
.nav-cta { padding: 9px 17px; border: 1px solid var(--line); border-radius: 99px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.1vw, 5rem); font-weight: 820; letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); letter-spacing: -.052em; }
h3 { font-size: 1.28rem; letter-spacing: -.025em; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(12px, 4vw, 56px); padding-block: clamp(32px, 5vw, 72px); }
.intro p { max-width: 47ch; margin: 20px 0 26px; color: var(--muted); font-size: clamp(1.04rem, 1.7vw, 1.22rem); }
.actions { flex-wrap: wrap; gap: 10px; }
.cta, .secondary, .panel button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; border: 1px solid transparent; border-radius: 99px; font: inherit; font-weight: 730; text-decoration: none; cursor: pointer; }
.cta, .panel button[type="submit"] { color: #37190d; background: linear-gradient(115deg, #ffb968, #ff7951); box-shadow: 0 7px 18px #e177432a; }
.secondary, .panel button { color: var(--text); background: white; border-color: var(--line); }
.cta:hover, .panel button:hover, .secondary:hover { filter: brightness(.96); }
.filmstrip { display: flex; justify-content: center; align-items: center; padding: 20px 12px 18px; min-width: 0; }
.print { width: 48%; max-width: 224px; padding: 6px 6px 0; background: white; border-radius: 15px; box-shadow: 0 13px 36px #30394b26; }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 3.8; object-fit: cover; border-radius: 10px; }
.print figcaption { padding: 7px 4px 9px; text-align: center; font-size: .8rem; font-weight: 700; }
.source { transform: rotate(-6deg); }
.take { margin-left: -8%; transform: translateY(8px) rotate(5deg); }
.workspace, .examples, .guide, .faq { margin-bottom: clamp(30px, 5vw, 64px); scroll-margin-top: 18px; }
.workspace, .article, .guide, .faq, .sample { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.workspace, .guide, .article, .faq { padding: clamp(22px, 4vw, 52px); }
.workspace { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 5.5vw, 74px); align-items: start; box-shadow: 0 12px 40px #29334a0c; }
.editor-copy > p { color: var(--muted); margin: 14px 0 22px; }
.specs div { padding: 9px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 5.2em 1fr; gap: 6px; }
.specs dt, summary { font-weight: 700; }
.specs dd, .panel small { color: var(--muted); }
.panel { min-width: 0; }
.panel form { display: grid; gap: 9px; }
.panel label { font-weight: 730; }
.panel label:not(:first-child) { margin-top: 7px; }
.panel input, .panel textarea { min-width: 0; width: 100%; border: 1px solid #aeb5bf; border-radius: 12px; background: #fbfcfd; padding: 11px 13px; color: inherit; font: inherit; }
.panel textarea { resize: vertical; }
.panel input::file-selector-button { background: white; color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; margin-right: 10px; font-weight: 650; }
.panel [data-save] { justify-self: start; font-size: .86rem; padding: 5px 0; background: none; border: 0; color: var(--primary); text-decoration: underline; text-underline-offset: .18em; }
.panel button:disabled { opacity: .6; cursor: wait; }
.panel video, .panel img { display: block; max-width: 100%; max-height: 360px; margin: 12px auto; border-radius: 12px; }
.panel [role="status"]:not(:empty) { padding: 9px 0; font-weight: 630; }
.examples h2 { margin-bottom: 22px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.sample { min-width: 0; overflow: hidden; }
.sample video { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: contain; background: #24282d; }
.caption { padding: clamp(18px, 2vw, 28px); }
.caption > p { font-size: .94rem; color: var(--muted); margin: 5px 0 12px; }
.caption > a { display: inline-block; margin-top: 12px; font-weight: 670; }
summary { cursor: pointer; }
details p { margin: 10px 0 4px; }
.guide, .faq { margin-inline: auto; }
.guide p, .article p, .article li, .faq details { max-width: 72ch; }
.guide h2:not(:first-child), .article h2 { margin-top: 1.3em; }
.guide h3 { margin-top: 22px; }
.guide p, .article p { margin-top: 12px; }
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq details:first-child { padding-top: 0; }
.article { max-width: 860px; margin: clamp(26px, 5vw, 66px) auto; }
.article h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.article h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
footer { border-top: 1px solid var(--line); }
.foot { padding-block: 25px; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero, .workspace, .faq { grid-template-columns: 1fr; }
  .hero { text-align: center; gap: 14px; }
  .intro p { margin-inline: auto; }
  .actions { justify-content: center; }
  .filmstrip { padding-block: 9px 13px; }
  .print { width: 42%; max-width: 160px; }
  .take { margin-left: 2px; }
  .print figcaption { font-size: .75rem; }
  .workspace { gap: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .navline { min-height: 59px; }
}
@media (max-width: 500px) {
  .navlinks { gap: 13px; }
  .navlinks a, .foot nav a { font-size: .84rem; }
  .navlinks .nav-cta { display: none; }
  .foot { flex-wrap: wrap; }
  .brand { font-size: 1.12rem; }
  .specs { font-size: .93rem; }
  .cta, .secondary { padding: 11px 17px; }
}
