@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fdf3df;
  --paper-2: #fffaf1;
  --ink: #12391a;
  --ink-soft: #2c4a38;
  --cloth: #d3e2cc;
  --line: rgba(18, 57, 26, 0.16);
  --orange: #ef9b12;
  --yes: #e7f3e4;
  --no: #f8ebdf;
  --note: #f8efd2;
  --pickup: #f6e4d4;
  --caveat: #e5f0e6;
  --shadow: 0 18px 40px rgba(18, 57, 26, 0.08);
  --serif: Fraunces, Palatino, "Palatino Linotype", "Iowan Old Style", serif;
  --sans: Nunito, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cloth);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 460;
  line-height: 1.6;
  overflow-x: clip;
}

body,
h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #f3d39a;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.cloth {
  min-height: 100vh;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(1.4rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  background-color: var(--cloth);
  background-image:
    radial-gradient(ellipse 46rem 28rem at 0% -8%, rgba(239, 196, 120, 0.45), transparent 62%),
    radial-gradient(ellipse 36rem 24rem at 100% 100%, rgba(226, 150, 90, 0.18), transparent 58%);
}

.sheet {
  width: min(52rem, 100%);
  margin-inline: auto;
  padding: 1.35rem 1.15rem 1.8rem;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(18, 57, 26, 0.035) 0.65px, transparent 0.75px);
  background-size: 5px 5px;
  border-radius: 1.1rem 1.6rem 1.2rem 1.45rem;
  box-shadow: var(--shadow);
}

.mast {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.brand picture {
  display: block;
}

.brand img {
  width: min(15.5rem, 78vw);
  height: auto;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.hero-logo {
  margin: 1.35rem auto 0.4rem;
}

.hero-logo picture {
  display: block;
}

.hero-logo img {
  width: min(36rem, 100%);
  height: auto;
  margin-inline: auto;
}

.kicker {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-weight: 750;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

h1,
h2,
h3,
.note-title,
.plate-kicker,
.remember,
.footer-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 {
  margin-top: 0.35rem;
  max-width: 16em;
  font-size: clamp(2.05rem, 3vw + 1.15rem, 3.2rem);
  text-wrap: balance;
}

.lede {
  margin-top: 0.9rem;
  max-width: 40rem;
  font-size: 1.16rem;
}

.note,
.caveat,
.pickup {
  border-radius: 1.15rem;
}

.note {
  margin-top: 1.35rem;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--note);
}

.note-title {
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 520;
}

.note-title::before,
.note-title::after {
  content: "";
  display: inline-block;
  width: 1.35rem;
  height: 0.28rem;
  margin: 0 0.5rem 0.18em;
  border-radius: 999px;
  background: var(--orange);
  vertical-align: middle;
}

.note p + p,
.caveat p,
.pickup p,
.block p + p {
  margin-top: 0.75rem;
}

.plates {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.plate {
  margin: 0;
  padding: 0.9rem 0.95rem 1.05rem;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 1.25rem;
}

.plate-yes {
  background: var(--yes);
  border-color: rgba(18, 57, 26, 0.18);
}

.plate-no {
  background: var(--no);
  border-color: rgba(176, 106, 58, 0.28);
}

.plate img,
.flat-glass {
  display: block;
  width: min(16rem, 100%);
  margin-inline: auto;
}

.plate-no .flat-glass {
  width: 100%;
}

@media (max-width: 36rem) {
  nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(18rem, 100%);
    justify-items: center;
    gap: 0;
  }
}

figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
  text-align: center;
}

.plate-kicker {
  font-style: italic;
  font-size: 1.4rem;
}

.plate-text {
  color: var(--ink-soft);
}

.block {
  margin-top: 2.75rem;
  scroll-margin-top: 1rem;
}

h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.55rem, 1.2vw + 1.15rem, 2.1rem);
  text-wrap: balance;
}

.ring {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.block p,
.caveat p,
.pickup > p {
  max-width: 40rem;
}

.sort-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.35rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.sort-intro {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.goes-in,
.stays-out {
  display: grid;
  gap: 0.75rem;
}

.goes-in li,
.stays-out li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.goes-in li::before,
.stays-out li::before {
  content: "";
  flex: none;
  margin-top: 0.4rem;
}

.goes-in li::before {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #12391a 0 32%, #ef9b12 33% 50%, #2f6b3a 51% 100%);
}

.stays-out li::before {
  width: 0.95rem;
  height: 0.28rem;
  margin-top: 0.58rem;
  border-radius: 1px;
  background: #b46a3a;
}

.caveat {
  margin-top: 1.4rem;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--caveat);
}

.remember {
  margin-top: 1.35rem;
  max-width: 22em;
  font-style: italic;
  font-size: clamp(1.4rem, 1vw + 1.1rem, 1.8rem);
  line-height: 1.28;
}

.pickup {
  margin-top: 2.6rem;
  padding: 1.25rem 1.15rem 1.3rem;
  background: var(--pickup);
  scroll-margin-top: 1rem;
}

.ring-on-wash {
  box-shadow: 0 0 0 3px rgba(253, 243, 223, 0.35);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: #0c2a13;
}

.button:visited {
  color: var(--paper);
}

.book-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 750;
}

.quiet,
.type-note {
  color: var(--ink-soft);
}

.quiet {
  margin-top: 1rem;
  font-size: 1rem;
}

.colophon {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.footer-name {
  font-size: 1.7rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-top: 0.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 750;
}

.type-note {
  font-size: 0.95rem;
}

@media (min-width: 42rem) {
  .cloth {
    padding: 2.2rem 1.25rem 2.8rem;
  }

  .sheet {
    padding: 2rem 2.4rem 2.3rem;
  }

  .brand img {
    width: 17rem;
  }

  .plates,
  .sort-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .sort-grid {
    gap: 0;
    align-items: start;
  }

  .sort-col + .sort-col {
    padding-left: 1.6rem;
    border-left: 1px solid var(--line);
  }

  .sort-col:first-child {
    padding-right: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .button,
  .plate,
  .sheet,
  .note,
  .caveat,
  .pickup {
    border: 1px solid CanvasText;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 12pt;
  }

  .cloth {
    background: none;
    padding: 0;
  }

  .sheet {
    box-shadow: none;
    max-width: none;
    background: #fff;
  }

  .button {
    background: none;
    color: #000;
    border: 1px solid #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    overflow-wrap: anywhere;
  }
}
