@font-face {
  font-family: "Gusto Inter";
  src: url("/assets/reference/gusto-inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gusto-forest: #1c3a13;
  --gusto-lime: #d3fa99;
  --gusto-snow: #fcfcf7;
  --gusto-stone: #eeeee9;
  --gusto-muted: #555b52;
  --gusto-sans: "Gusto Inter", system-ui, sans-serif;
  --gusto-mono: ui-monospace, Consolas, monospace;
  --gusto-pill: 1000px;
}

.gusto-mark { background: var(--gusto-forest); color: var(--gusto-snow); }
.gusto-mark::after { background: var(--gusto-lime); }

@media screen {
  .gusto-portal,
  .gusto-reader {
    color: var(--gusto-forest);
    background: var(--gusto-snow);
    font-family: var(--gusto-sans);
    font-weight: 400;
  }
  .gusto-portal {
    --ink: var(--gusto-forest);
    --paper: var(--gusto-snow);
    --rule: #dedfd7;
    --muted: var(--gusto-muted);
    font-size: 1rem;
  }
  .gusto-portal header {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 72px;
    max-width: 1200px;
    border: 0;
    background: var(--gusto-snow);
  }
  .gusto-portal .wordmark { font-weight: 500; letter-spacing: -.04em; }
  .gusto-portal h1 {
    font-size: clamp(2.25rem, 4.2vw, 3rem);
    font-weight: 350;
    line-height: 1.1;
    letter-spacing: -.015em;
  }
  .gusto-portal h2 { font-weight: 350; letter-spacing: -.015em; }
  .gusto-portal .lead { font-size: 1.125rem; line-height: 1.5; }
  .gusto-portal .nav-link {
    padding-inline: 1.2rem;
    border: 1px solid var(--gusto-forest);
    border-radius: var(--gusto-pill);
    text-decoration: none;
    font: 500 .875rem var(--gusto-sans);
  }
  .gusto-portal .button {
    padding: 1rem 1.5rem;
    border-radius: var(--gusto-pill);
    font: 500 1rem/1.25 var(--gusto-sans);
  }
  .gusto-portal .button:hover { background: #2b4c20; }
  .gusto-portal .hero-photo img { border-radius: 16px; }
  .gusto-portal figcaption { font-style: normal; font-size: .875rem; }
  .gusto-portal .login-section {
    background: var(--gusto-forest);
    color: var(--gusto-snow);
    border: 0;
    border-radius: 32px;
    padding: clamp(1.5rem, 5vw, 4rem);
    margin: 0 0 clamp(2rem, 5vw, 4rem);
    scroll-margin-top: 88px;
  }
  .gusto-portal .login-section .lead { color: var(--gusto-snow); }
  .gusto-portal .login-section input {
    border-color: #fcfcf7a0;
    border-radius: 8px;
    background: transparent;
    color: var(--gusto-snow);
    font-family: var(--gusto-sans);
  }
  .gusto-portal .login-section button {
    background: var(--gusto-snow);
    color: var(--gusto-forest);
  }
  .gusto-portal .login-section button:hover { background: var(--gusto-stone); }
  .gusto-portal .login-section #login-status { color: var(--gusto-snow); }
  .gusto-portal :focus-visible, .gusto-reader :focus-visible { outline-color: var(--gusto-forest); }
  .gusto-portal .login-section :focus-visible { outline-color: var(--gusto-lime); }
  .gusto-portal .book-card {
    border: 0;
    border-radius: 16px;
    background: var(--gusto-stone);
  }
  .gusto-portal .book-card:hover { background: #e5e9de; }
  .gusto-portal .book-card-copy strong { font-weight: 500; }
  .gusto-portal .book-preview { background: var(--gusto-stone); }

  .gusto-reader {
    --ink: var(--gusto-forest);
    --paper: var(--gusto-snow);
    --ground: var(--gusto-stone);
    --muted: var(--gusto-muted);
    --rule: #d8dcd1;
    font-size: 1rem;
  }
  .gusto-reader h1,
  .gusto-reader #album #recipe .title-block h1,
  .gusto-reader #album .turn-face .title-block h1 {
    font-weight: 350;
    letter-spacing: -.015em;
  }
  .gusto-reader h2 { font-weight: 500; }
  .gusto-reader .eyebrow,
  .gusto-reader .macros dt { color: var(--gusto-muted); }
  .gusto-reader .macros dd { font-family: var(--gusto-mono); font-weight: 400; }
  .gusto-reader .macros div { background: var(--gusto-stone); border: 0; }
  .gusto-reader .method li::marker { color: var(--gusto-forest); }
  .gusto-reader #album > article { box-shadow: none; border-radius: 16px; }
  .gusto-reader #album .cover { background: var(--gusto-forest); color: var(--gusto-snow); }
  .gusto-reader .cover .eyebrow,
  .gusto-reader .cover-subtitle { color: var(--gusto-snow); }
  .gusto-reader .cover-art { background: #263f20; }
  .gusto-reader .cover-art img { border-radius: 16px; }
  .gusto-reader .book-button, .gusto-reader #bookmark {
    border-radius: var(--gusto-pill);
    font-family: var(--gusto-sans);
  }
  .gusto-reader .book-button { background: var(--gusto-forest); color: var(--gusto-snow); }
  .gusto-reader .cover .book-button { background: var(--gusto-snow); color: var(--gusto-forest); }
  .gusto-reader #bookmark[aria-pressed="true"] { background: var(--gusto-lime); }
  .gusto-reader .intro-lead { color: var(--gusto-forest); }

  .gusto-popup { --ui: var(--gusto-sans); }
  .gusto-popup .brand,
  .gusto-popup .reader-content,
  .gusto-popup .drawer h1,
  .gusto-popup .drawer h2,
  .gusto-popup #instruction-title { font-family: var(--gusto-sans); }
  .gusto-popup .drawer h1,
  .gusto-popup .drawer h2,
  .gusto-popup #instruction-title { font-weight: 350; }
  .gusto-popup .edition-switch { background: var(--gusto-forest); color: var(--gusto-snow); }
}
