/* WiseGuy — Deadpan Editorial
   Paper, ink, one caution-yellow accent. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --stone: #e4dfd3;
  --ink: #111111;
  --ink-soft: #2b2823;
  --grey: #4a463f;
  --grey-light: #b9b4a9;
  --accent: #ffd400;
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --wrap: 1240px;
  --rule: 2px solid var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}
a:hover {
  color: var(--grey);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  padding: 12px 16px;
  z-index: 10;
}

/* ---------- Small shared pieces ---------- */

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.display {
  font-weight: 900;
  font-stretch: 68%;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(38px, 5vw, 64px);
}

.text-link {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 0;
  display: inline-block;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: var(--rule);
  border-radius: 0;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  cursor: pointer;
}
.button:hover {
  background: var(--ink-soft);
  color: var(--paper);
}
.button--accent {
  background: var(--accent);
  color: var(--ink);
}
.button--accent:hover {
  background: var(--ink);
  color: var(--paper);
}
.button--block {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  padding: 20px 28px;
}
.button[aria-disabled="true"] {
  background: var(--stone);
  color: var(--grey);
  cursor: default;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
}

/* ---------- Notice strip, header ---------- */

.notice {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 20px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: var(--rule);
}
.site-header__logo img {
  height: 60px;
  width: auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 3px solid transparent;
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
@media (max-width: 600px) {
  .site-header__logo img {
    height: 48px;
  }
  .site-nav {
    gap: 0 22px;
    font-size: 14px;
  }
}

/* ---------- Home hero ---------- */

.hero {
  padding-top: 64px;
  padding-bottom: 60px;
}
.hero h1 {
  margin-top: 12px;
  font-size: clamp(68px, 15.5vw, 232px);
  line-height: 0.86;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero h1 mark {
  background: var(--accent);
  color: inherit;
  padding: 0 0.08em;
  margin-left: -0.08em;
}
.hero__row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 32px;
}
.hero__lede {
  flex: 1 1 360px;
  max-width: 560px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.facts {
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.facts ul {
  list-style: none;
  margin: 0 auto;
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Product grid and cards ---------- */

.section {
  padding-top: 76px;
  padding-bottom: 76px;
}
.section--tight {
  padding-top: 40px;
}

.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 36px 28px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.card:hover .card__title {
  text-decoration: underline;
}
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.card__title {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
}
.card__price {
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

/* The tile stands in for a product photo until one is added. */
.tile {
  aspect-ratio: 1 / 1;
  border: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.tile--stone {
  background: var(--stone);
  color: var(--ink);
}
.tile--paper {
  background: var(--paper);
  color: var(--ink);
}
.tile--accent {
  background: var(--accent);
  color: var(--ink);
}
.tile--photo {
  padding: 0;
  background: var(--stone);
}
.tile--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__print {
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 0.98;
}
.tile--large .tile__print {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
}

/* ---------- Category list ("Shop by grievance") ---------- */

.grievances {
  border-top: var(--rule);
  margin-top: 8px;
}
.grievances a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 32px;
  padding: 20px 0;
  border-bottom: var(--rule);
  text-decoration: none;
}
.grievances a:hover {
  background: var(--accent);
  color: var(--ink);
}
.grievances__name {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  font-weight: 900;
  font-stretch: 64%;
  text-transform: uppercase;
}
.grievances__line {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink-soft);
}

.filters {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filters a {
  border: var(--rule);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filters a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Dark band (About, briefly) ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
}
.band__inner {
  padding-top: 84px;
  padding-bottom: 84px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 72px;
}
.band__owl {
  flex: 0 0 auto;
  width: 240px;
  max-width: 55%;
}
.band__text {
  flex: 1 1 400px;
  min-width: 0;
}
.band .label {
  color: var(--grey-light);
}
.band__statement {
  margin-top: 16px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  font-stretch: 78%;
}
.band a:hover {
  color: var(--accent);
}

/* ---------- Post cards ---------- */

.posts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 36px 28px;
}
.post-card {
  border-top: var(--rule);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.post-card__title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
}
.post-card:hover .post-card__title {
  text-decoration: underline;
}
.post-card__dek {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--accent);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.newsletter__inner {
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 56px;
}
.newsletter__text,
.newsletter__form {
  flex: 1 1 360px;
  min-width: 0;
}
.newsletter__text p {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 21px;
}
.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.field {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
}
.field textarea {
  min-height: 180px;
  resize: vertical;
}
.newsletter__form .button {
  min-height: 56px;
}

/* MailerLite form: space is reserved before it loads, so nothing below it jumps. */
.newsletter__slot {
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter__slot .ml-embedded {
  width: 100%;
  max-width: 440px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer__inner {
  padding-top: 60px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px 64px;
}
.site-footer__logo {
  height: 84px;
  width: auto;
}
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  font-size: 15px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
}
.site-footer__col .label {
  color: var(--grey-light);
  margin-bottom: 8px;
}
.site-footer__col a {
  padding: 8px 0;
}
.site-footer__legal {
  border-top: 1px solid var(--grey);
  padding-top: 20px;
  padding-bottom: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
}

/* ---------- Page heads (shop, blog, plain pages) ---------- */

.page-head {
  padding-top: 56px;
  padding-bottom: 8px;
}
.page-head h1 {
  margin-top: 10px;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.9;
  font-weight: 900;
  font-stretch: 64%;
  text-transform: uppercase;
}
.page-head__lede {
  margin-top: 20px;
  max-width: 640px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  padding-top: 20px;
}
.breadcrumb > * {
  padding: 10px 0;
}

/* ---------- Product page ---------- */

.product {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
}
.product__media {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product__thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--rule);
  width: 100%;
}
.product__info {
  flex: 1 1 400px;
  min-width: 0;
}
.product__info h1 {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.94;
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
}
.product__price {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 22px;
}
.product__hook {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.38;
}
.product__buy {
  margin-top: 30px;
}
.product__note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey);
}
.product__body {
  margin-top: 30px;
  border-top: var(--rule);
}
.product__body p {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.product__body h2 {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product__body h2 + p,
.product__body h2 + ul {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 16px;
}
.product__body ul {
  padding-left: 20px;
  color: var(--ink-soft);
}

/* ---------- Blog post ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 48px;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.article__meta > * {
  padding: 10px 0;
}
.article h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.rating {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 18px 0;
}
.rating__score {
  background: var(--accent);
  border: var(--rule);
  padding: 4px 16px;
  font-weight: 900;
  font-stretch: 66%;
  font-size: 56px;
  line-height: 1;
}
.rating__notes {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}

.prose {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
}
.prose > * + * {
  margin-top: 22px;
}
.prose > p:first-child {
  font-size: 25px;
  line-height: 1.45;
}
.prose h2 {
  margin-top: 44px;
  font-family: var(--sans);
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  font-stretch: 70%;
  text-transform: uppercase;
}
.prose h3 {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
}
.prose ul,
.prose ol {
  padding-left: 26px;
}
.prose li + li {
  margin-top: 8px;
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 20px;
  border-left: 4px solid var(--accent);
}
.article .prose {
  margin-top: 30px;
}

.wear {
  margin-top: 52px;
  border: var(--rule);
  display: flex;
  flex-wrap: wrap;
}
.wear .tile {
  flex: 1 1 220px;
  border: 0;
  aspect-ratio: auto;
  min-height: 220px;
}
.wear__text {
  flex: 2 1 280px;
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wear__title {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
}
.wear__line {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- Plain pages, contact, 404 ---------- */

.plain {
  max-width: 760px;
  padding-top: 28px;
  padding-bottom: 88px;
}
.draft-banner {
  margin-top: 24px;
  border: var(--rule);
  background: var(--accent);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}
.contact-form .field {
  flex: none;
}
.contact-form .button {
  align-self: flex-start;
}
.form-status {
  font-family: var(--serif);
  font-size: 20px;
}
.hp {
  position: absolute;
  left: -9999px;
}

.lost {
  padding-top: 72px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}
.lost img {
  width: 260px;
  max-width: 55%;
}
.lost__text {
  flex: 1 1 380px;
  min-width: 0;
}
.lost h1 {
  font-size: clamp(88px, 16vw, 220px);
  line-height: 0.86;
  font-weight: 900;
  font-stretch: 62%;
}
.lost p {
  margin: 16px 0 28px;
  font-family: var(--serif);
  font-size: 24px;
}

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

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .site-nav {
    gap: 0 16px;
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .tile {
    padding: 12px;
  }
  .tile__print {
    font-size: 20px;
  }
  .tile--large .tile__print {
    font-size: 40px;
  }
  .card__title {
    font-size: 16px;
  }
  .card .label {
    font-size: 10px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section--tight {
    padding-top: 32px;
  }
}
