/*
Theme Name: Blunt Trauma
Theme URI: https://blunttrauma.co.uk
Author: Blunt Trauma
Description: Dark-humour greeting cards for the occasions nobody makes cards for. Built to the Claude Design concept, 23 Aug 2026.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blunt-trauma
Tags: ecommerce, woocommerce, one-column
WC requires at least: 8.0
WC tested up to: 11.0
*/

/* ---------------------------------------------------------------- tokens
   Exact values from the prototype CSS. Do not approximate these.       */
:root {
  /* The PAGE is white and the CARD is cream, and that order matters.
     The printed card's own ground is cream (#F7F4EF). Putting a cream card on
     a cream page makes it dissolve, which is why the first build needed a
     border to rescue it. White page, cream card, and the product separates on
     its own - including when real photography of flat card art lands.
     Do NOT set --ground back to cream without changing --card too. */
  --ground: #FFFFFF;
  --card:   #F7F4EF;
  --panel:  #FFFFFF;
  --soft:   #EFEAE2;
  --ink:    #1A1A1A;
  --body:   #433d36;
  --mute:   #736B60;
  --accent: #E94F37;
  --accent-dark: #D3402A;
  --rule:   #E4DED4;
  --note-bg: #FBE7E3;
  --note-br: #F0BDB3;

  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --text: "Inter", "Helvetica Neue", -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------------------------------------------------------------- ticker */
.ticker {
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-block;
  padding-left: 100%;
  animation: bt-marquee 38s linear infinite;
}
.ticker__track span { margin: 0 26px; }
.ticker__star { color: var(--accent); }
@keyframes bt-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; padding-left: 0; }
}

/* ---------------------------------------------------------------- header */
.site-header {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.logo {
  grid-column: 2;
  justify-self: center;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
}
.logo em { font-style: normal; color: var(--accent); }
.site-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .count { color: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 48px; text-align: center; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 auto 40px;
  max-width: 16ch;
}

/* ------------------------------------------------------- the card object
   Drawn from the card's own words, because there is no product photography
   yet. This is a FACSIMILE OF THE REAL ARTWORK, checked against an actual
   Canva export, so it has to keep matching it:

     - lowercase. The cards are set lowercase, NOT title case and NOT caps
     - left aligned, not centred
     - setup at the TOP, payoff at the BOTTOM, big gap between them
     - cream ground, same as the printed card. Not white
     - BOTH LINES ARE ON THE FRONT. The card is blank inside. Nothing here
       may ever label the payoff "inside"                                */
.card-face {
  /* Cream, matching the printed card, against the white page. */
  background: var(--card);
  aspect-ratio: 113 / 156;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 11% 9%;
  text-align: left;
  box-shadow: 0 14px 34px rgba(26,26,26,.10);
  position: relative;
  overflow: hidden;
}
/* A photographic mockup brings its own background and needs no inner padding. */
.card-face--photo { padding: 0; background: var(--panel); }
.card-face--photo img { width: 100%; height: 100%; object-fit: cover; }

.card-face__setup {
  font-family: var(--display);
  font-size: clamp(16px, 2.5vw, 34px);
  line-height: 1.04;
  letter-spacing: -.025em;
  /* The artwork is lowercase. Force it, so a title-cased product name in the
     database still renders the way the card is actually printed. */
  text-transform: lowercase;
  text-wrap: balance;
  margin: 0;
}
.card-face__payoff {
  font-family: var(--mono);
  font-size: clamp(10px, 1.15vw, 15px);
  line-height: 1.5;
  color: var(--accent);
  text-wrap: balance;
  margin: 0;
}
.card-face__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.card-face--inside {
  justify-content: flex-end;
}

.hero__card { max-width: 420px; margin: 0 auto; }
.hero__meta {
  max-width: 420px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 14px;
}
.hero__inside { color: var(--body); text-align: left; }
.hero__inside b { color: var(--mute); font-weight: 400; }
.hero__price { font-family: var(--display); font-size: 22px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 30px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 13px 22px;
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.hero .btn { margin-top: 26px; }

/* ---------------------------------------------------------------- counter */
.counter {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--body);
}
.counter b {
  font-family: var(--display);
  font-size: 26px;
  color: var(--accent);
  margin-right: 8px;
}
.placeholder-note {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  margin-top: 8px;
}

/* ---------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 30px;
  max-width: 22ch;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section__aside {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
}

/* ---------------------------------------------------------------- occasions */
.occasions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.occasion {
  /* Cream tile on the white page - the inverse of before, now the page is white. */
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  text-decoration: none;
  display: block;
  transition: border-color .15s, transform .15s;
}
.occasion:hover { border-color: var(--accent); transform: translateY(-2px); }
.occasion h3 {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.occasion p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
  margin: 0;
}

/* ---------------------------------------------------------------- product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 34px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-card { position: relative; }
.product-card a.thumb { display: block; text-decoration: none; }
.product-card__body { margin-top: 14px; }
.product-card__inside {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  color: var(--body);
  margin: 0 0 10px;
  min-height: 2.9em;
}
.product-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}
.product-card__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
}
.product-card__price { font-family: var(--display); font-size: 16px; }

/* ---------------------------------------------------------------- bundle */
.bundle {
  background: var(--ink);
  color: #fff;
  padding: 40px;
  display: grid;
  gap: 18px;
}
.bundle h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -.03em;
  margin: 0;
  color: #fff;
  max-width: 20ch;
}
.bundle p { font-family: var(--mono); font-size: 14.5px; color: #E8E2D9; margin: 0; max-width: 60ch; }
.bundle .tbc {
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent);
}
.bundle .placeholder-note { color: #A79E92; }

/* ---------------------------------------------------------------- signup */
.signup {
  background: var(--ink);
  color: #fff;
  padding: 40px;
}
.signup h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.03em;
  margin: 0 0 12px;
  color: #fff;
}
.signup p { font-family: var(--mono); font-size: 14.5px; color: #E8E2D9; margin: 0 0 22px; max-width: 62ch; }
.signup form { display: flex; gap: 0; max-width: 520px; flex-wrap: wrap; }
.signup input[type=email] {
  flex: 1 1 240px;
  border: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  border-radius: 2px 0 0 2px;
}
.signup .btn { border-radius: 0 2px 2px 0; }

/* ---------------------------------------------------------------- single product */
.single-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 72px;
  align-items: start;
}
@media (max-width: 860px) {
  .single-product-layout { grid-template-columns: 1fr; gap: 34px; }
}

.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 24px 0 0;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* the flip. CSS-only, driven by a hidden checkbox, so it works without JS */
.flip { perspective: 1600px; }
.flip__inner {
  position: relative;
  transition: transform .55s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.flip__toggle { position: absolute; opacity: 0; pointer-events: none; }
.flip__toggle:checked ~ .flip__inner { transform: rotateY(180deg); }
.flip__face { backface-visibility: hidden; }
.flip__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}
.flip__label {
  display: block;
  margin-top: 18px;
  text-align: center;
  cursor: pointer;
}
.flip__label .on { display: none; }
.flip__toggle:checked ~ .flip__label .on { display: inline; }
.flip__toggle:checked ~ .flip__label .off { display: none; }
.flip__toggle:focus-visible ~ .flip__label .btn--ghost { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; }
}

.product-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0;
}
.product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.product-price { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); }
.product-inside {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--body);
  margin: 12px 0 24px;
}
.product-inside b { color: var(--mute); font-weight: 400; }

.for-box {
  background: var(--note-bg);
  border: 1px solid var(--note-br);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 12px;
}
.for-box b { color: var(--accent); font-weight: 700; }

.spec { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.spec li {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--body);
}
.spec b {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
  white-space: nowrap;
}
.spec span { text-align: right; }

.product-desc { margin: 30px 0 0; color: var(--body); max-width: 60ch; }

/* ---------------------------------------------------------------- archive */
.archive-head { padding: 46px 0 14px; }
.archive-head h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.archive-head .intro { max-width: 62ch; color: var(--body); margin: 0; }
.archive-count {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
  margin: 18px 0 0;
}

/* ---------------------------------------------------------------- woo bits */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 14px;
  list-style: none;
  margin: 0 0 22px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--text);
  font-size: 15px;
  width: 100%;
}
.woocommerce table.shop_table { border: 1px solid var(--rule); border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.woocommerce table.shop_table th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 15px 26px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--accent-dark); color: #fff; }
.free-delivery {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--body);
}
.free-delivery b { color: var(--accent); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 44px 0 60px;
  margin-top: 20px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.colophon {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mute);
  margin: 0;
}
.colophon b { color: var(--ink); font-weight: 400; }

/* ---------------------------------------------------------------- page */
.page-body { padding: 48px 0 70px; }
.page-body h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.03;
  margin: 0 0 24px;
}
.page-body h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 34px 0 12px; }
.page-body p { color: var(--body); max-width: 62ch; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
