/* Toyman 1024 — a tin-toy shop window. System fonts only. */

:root {
  color-scheme: light;
  --cream: #f4ead7;
  --cream-deep: #eadcbf;
  --paper: #fffaf1;
  --ink: #23180f;
  --ink-soft: #3e2f22;
  --tin: #9d2b22;
  --tin-deep: #7a1f18;
  --teal: #0e5c5a;
  --teal-deep: #084240;
  --mustard: #e2b33a;
  --line: #23180f;
  --display: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Medium", "Arial Narrow", "Nimbus Sans Narrow", "Liberation Sans", Arial, sans-serif;
  --serif: Georgia, "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", Times, "Nimbus Roman", "Liberation Serif", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(35, 24, 15, 0.04) 0.7px, transparent 0.8px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

a {
  color: var(--teal-deep);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--tin-deep);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.6rem 0.85rem;
}

.skip:focus {
  transform: none;
}

.stripe {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--tin) 0 22px,
    var(--mustard) 22px 34px,
    var(--teal) 34px 56px,
    var(--cream) 56px 66px
  );
}

.top {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.top-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.55rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tin-deep);
  padding: 0.4rem 0;
}

.brand:hover {
  color: var(--tin-deep);
  text-decoration: underline;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.45rem;
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

nav a:hover {
  color: var(--tin-deep);
  text-decoration: underline;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.measure {
  max-width: 40rem;
}

.kicker {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tin);
  margin-bottom: 0.35rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--tin-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

h1 .series {
  font-size: 0.42em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  line-height: 1.15;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h2::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: 7px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--tin) 0 62%, var(--mustard) 62% 100%);
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.hero {
  padding: 1.15rem 0 2.8rem;
}

.hero-frame {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--teal-deep);
  background: var(--ink);
  line-height: 0;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2rem));
  margin: -1.25rem auto 0;
  padding: 0 1.25rem 1.55rem;
  text-align: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--tin);
}

.mark {
  display: block;
  width: 104px;
  height: 104px;
  max-width: none;
  object-fit: cover;
  margin: -52px auto 0.75rem;
  border-radius: 12px;
  background: var(--cream);
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 7px var(--ink),
    5px 5px 0 var(--mustard);
}

.hero-panel .kicker {
  margin-top: 0.15rem;
}

.lede {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  font-size: 1.16rem;
  line-height: 1.45;
}

.attrib {
  margin: 0.35rem auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.1rem;
  padding: 0.7rem 1.25rem;
  background: var(--tin-deep);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--mustard);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover {
  background: var(--tin);
  color: var(--paper);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--mustard);
}

.about,
.featured,
.boomer,
.workshop {
  padding: 2.6rem 0 3.1rem;
  border-top: 3px solid var(--ink);
}

.intro {
  margin-top: 0.85rem;
  max-width: 40rem;
}

blockquote {
  margin-top: 1.1rem;
  padding: 0.15rem 0 0.15rem 1.05rem;
  border-left: 7px solid var(--mustard);
}

blockquote p {
  font-size: 1.22rem;
  line-height: 1.5;
}

.quote-source {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.95rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tv {
  max-width: 760px;
  margin: 1.45rem 0 0;
  padding: 0.85rem 0.9rem 1rem;
  background: var(--teal-deep);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
}

.tv::before {
  content: "";
  display: block;
  width: 36%;
  height: 14px;
  margin: 0.15rem auto 0.7rem;
  border: 3px solid var(--cream);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #140f0c;
  border: 6px solid var(--cream-deep);
  border-radius: 6px;
  overflow: hidden;
}

.tv-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tv figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-top: 0.8rem;
}

.tv figcaption a {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tv figcaption a:hover {
  color: var(--mustard);
}

.tv time {
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  list-style: none;
  padding: 0;
  margin: 1.45rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.35rem 1.15rem;
}

.card {
  min-width: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--teal-deep);
}

.card.is-featured {
  box-shadow: 6px 6px 0 var(--tin);
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card a:hover h3,
.card a:focus-visible h3 {
  color: var(--tin-deep);
  text-decoration: underline;
}

.thumb {
  aspect-ratio: 16 / 9;
  background: #1c1410;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem 1rem;
}

.flag {
  align-self: flex-start;
  margin: 0;
  padding: 0.12rem 0.4rem;
  background: var(--mustard);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.when {
  margin: 0;
  color: var(--teal-deep);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blurb {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.workshop {
  background: var(--teal-deep);
  color: var(--paper);
}

.workshop h2,
.workshop .kicker {
  color: var(--paper);
}

.workshop h2::after {
  background: linear-gradient(90deg, var(--mustard) 0 62%, var(--cream) 62% 100%);
}

.workshop .intro,
.workshop .intro a {
  color: var(--paper);
}

.workshop .card {
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--mustard);
}

.workshop .card a {
  color: var(--ink);
}

footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.footer-inner {
  padding: 1.7rem 0 2rem;
}

footer a {
  color: var(--mustard);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

footer a:hover {
  color: var(--paper);
}

.love {
  margin-top: 0.45rem;
  font-style: italic;
  font-size: 1.12rem;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 120ms ease;
  }

  .card:hover {
    transform: translate(-2px, -2px);
  }
}

@media (max-width: 640px) {
  .hero-panel {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .mark {
    width: 88px;
    height: 88px;
    margin-top: -44px;
  }

  .tv {
    border-radius: 12px;
    padding: 0.65rem 0.65rem 0.8rem;
  }

  .tv::before {
    width: 48%;
  }

  blockquote p {
    font-size: 1.1rem;
  }
}

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

  .button:active,
  .card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .card,
  .hero-panel,
  .hero-frame,
  .tv,
  .button {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .mark {
    box-shadow: none;
    border: 2px solid CanvasText;
  }
}
