/* Poptop Press. Mobile first, no framework. The only font is Sniglet (OFL). */

@font-face {
  font-family: "Sniglet";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Sniglet-ExtraBold.fb92a118e1.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #1f1b2d;
  --muted: #5b5670;
  --bg: #fff6dc;
  --paper: #ffffff;
  --sun: #ffd23f;
  --coral: #ff6b4a;
  --teal: #19b5a5;
  --line: 4px;
  --radius: 28px;
  --display: "Sniglet", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* Header and footer */

.site-header {
  padding: 0.75rem 1rem 0;
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
}

/* Page frame */

.wrap {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  max-width: 40rem;
}

.wrap-can {
  max-width: 36rem;
}

.wrap-wide {
  max-width: 64rem;
}

.card {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--sun);
  padding: 1.25rem 1rem;
  margin-bottom: 1.5rem;
}

.big,
.can-title,
.book-title,
.section {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.big {
  font-size: 2rem;
}

.section {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem 0.25rem;
}

.lead {
  font-size: 1.1875rem;
  margin: 0 0 0.5rem;
}

.hero {
  text-align: center;
  box-shadow: 6px 6px 0 var(--coral);
  padding: 2rem 1rem;
}

.hero .big {
  font-size: 2.5rem;
}

/* Can page */

.can {
  text-align: center;
  padding-top: 1rem;
}

.art {
  margin: 0 0 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.art img {
  width: 100%;
  margin: 0 auto;
}

.can-title {
  font-size: 1.75rem;
}

.can-name {
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.can-count {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.pager {
  display: flex;
  gap: 0.75rem;
}

.pager .btn {
  flex: 1 1 0;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  white-space: nowrap;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 52px;
  padding: 0.5rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn-main {
  background: var(--coral);
}

.btn-off {
  opacity: 0.35;
  box-shadow: none;
  border-style: dashed;
}

.more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.link {
  display: inline-block;
  padding: 0.6rem 0;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-color: var(--coral);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

/* Gallery */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.tile {
  display: block;
  height: 100%;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  text-align: center;
}

.tile:hover,
.tile:focus-visible {
  box-shadow: 0 4px 0 var(--coral);
}

.tile img {
  width: 100%;
  background: #fff;
}

.tile-name {
  display: block;
  padding: 0.35rem 0.5rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  border-top: 3px solid var(--ink);
}

.tile-name b {
  display: inline-block;
  min-width: 1.6em;
  margin-right: 0.15em;
  border-radius: 999px;
  background: var(--sun);
  font-family: var(--display);
  font-weight: 800;
}

/* Home */

.book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.book p {
  margin: 0 0 0.5rem;
}

.strip {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  width: 100%;
}

.strip li {
  flex: 1;
  max-width: 8rem;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.book-title {
  font-size: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--teal);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
}

/* Privacy */

.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.25rem;
}

.prose p,
.prose ul {
  margin: 0.5rem 0;
}

.prose ul {
  padding-left: 1.25rem;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .card {
    padding: 1.75rem 2rem;
  }

  .big {
    font-size: 2.5rem;
  }

  .hero .big {
    font-size: 3.25rem;
  }

  .can-title {
    font-size: 2.25rem;
  }

  .actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-header,
  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Footer rows, notice for readers, breadcrumbs, legends, facts (COL-1210) */

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
}

.site-footer .notice {
  margin: 0;
  padding-bottom: 0.5rem;
}

.site-footer .notice a {
  display: inline;
  min-height: 0;
  padding: 0;
  text-underline-offset: 3px;
}

.crumbs {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "\203A";
  margin-right: 0.5rem;
  color: var(--muted);
}

.crumbs a,
.crumbs span {
  display: inline-block;
  padding: 0.6rem 0;
}

.legend {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.can .legend {
  margin-bottom: 0.75rem;
  text-align: center;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 1.25rem 0 0.25rem;
}

.prose .grid {
  padding: 0;
  margin: 0.75rem 0;
}

.facts {
  margin: 0.5rem 0;
}

.facts > div {
  padding: 0.5rem 0;
  border-top: 2px solid rgb(31 27 45 / 12%);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.facts dd .link {
  padding: 0;
}

.updated {
  margin: 0.75rem 0.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose .updated {
  margin-left: 0;
}

@media (min-width: 600px) {
  .facts > div {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
  }
}
