@font-face {
  font-family:Archivo; src:url('/assets/archivo-variable.woff2') format('woff2');
  font-weight:100 900; font-stretch:62% 125%; font-display:swap;
}
@font-face {
  font-family:Newsreader; src:url('/assets/newsreader-italic.woff2') format('woff2');
  font-style:italic; font-weight:500; font-display:swap;
}

:root {
  --fp-hover:#ffa46c;
  --fp-press:#f6833c;
  --fp-deep-orange:#974215;
  --fp-muted:#4e6071;
  --fp-wash:#e9eef2;
  --fp-line:#cdd5dd;
  --fp-edge:#798896;
  --fp-focus:#285983;
}

/* A solid surface denotes the main action. The outlined tools share its geometry. */
:is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button) {
  --face:#fff; --over:var(--fp-wash); --pressed:#dce4eb;
  --label:var(--fp-ink); --edge:var(--fp-edge);
  min-height:44px; border:1px solid var(--edge); border-radius:10px;
  background:var(--face); color:var(--label); box-shadow:none;
  font-weight:680; text-decoration:none;
}
:is(.welcome-body .action, .intro-links .primary, .guide-body .empty .primary,
    .guide-body .lesson-next, .studio-body .btn:is(.btn-dark,.btn-purple), .info-body .information-button) {
  --face:var(--fp-orange); --over:var(--fp-hover); --pressed:var(--fp-press); --edge:transparent;
}
.welcome-body .nav-action, .welcome-body .action, .open-example { padding-inline:17px; justify-content:center; }
.welcome-body .nav-action { font-size:14px; }
.welcome-body .action { min-height:49px; padding-inline:20px; gap:22px; }
.welcome-body .hero-photo .photo-action { background:var(--fp-paper); color:var(--fp-ink); border:0; border-radius:0; gap:9px; padding:0 0 0 10px; }
.photo-action .arrow { background:var(--fp-wash); border-radius:50%; padding:6px; width:27px; height:27px; }
.welcome-body .to-top,.studio-body .topbar .icon-button { width:44px; min-width:44px; justify-content:center; }
.welcome-body .showcase .gallery-controls button, .guide-body .lesson .lesson-back {
  --face:var(--fp-ink); --label:#fff; --edge:#8ea1b3; --over:#304b64; --pressed:#21394f;
}
.welcome-body .gallery-controls button,.welcome-body .to-top,.guide-body .lesson-back { border-radius:50%; }
:is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button):focus-visible, .welcome-body .hero-photo:focus-visible {
  outline:3px solid var(--fp-focus); outline-offset:3px;
}
.collection .gallery-controls button:focus-visible,.guide-body .lesson button:focus-visible { outline-color:var(--fp-orange); }
@media (hover:hover) {
  :is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button):not(:disabled):hover { background:var(--over); color:var(--label); }
  .welcome-body .hero-photo:hover .photo-action { background:var(--fp-paper); text-decoration:underline; text-underline-offset:4px; }
}
:is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button):not(:disabled):active { background:var(--pressed); color:var(--label); }
@media (prefers-reduced-motion:no-preference) {
  :is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button) { transition:background-color .15s,border-color .15s,transform .15s; }
  :is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button):not(:disabled):active { transform:translateY(1px); }
}
@media (forced-colors:active) {
  :is(.welcome-body .nav-action, .welcome-body .action, .photo-action, .open-example,
    .gallery-controls button, .welcome-body .to-top, .guide-body .studio-link, .intro-links .primary,
    .guide-body .lesson-next, .guide-body .lesson-back, .guide-body .empty .primary,
    .studio-body .btn:is(.btn-light,.btn-soft,.btn-dark,.btn-purple), .studio-body .topbar .icon-button,
    .example-nav a, .info-body .information-button) { color:ButtonText; background:ButtonFace; border:1px solid ButtonText; }
}

/* Paper is an opt-in page background shared by the editor and the public renderer. */
:is(.profile-page,.link-page)[data-bg=paper] {
  --page-ink:var(--fp-ink); --page-text:var(--fp-ink); --page-muted:var(--fp-muted); --line:var(--fp-line);
}
:is(.profile-page,.link-page)[data-bg=paper]:not([data-layout=minimal]) .page-cover:not([style]) {
  background:linear-gradient(107deg,#e6ecf1 43%,#d6e0e8 43% 68%,var(--accent-soft) 68%);
}
:is(.profile-page,.link-page)[data-bg=paper] .page-cover::after { background:none; }
