/*
Theme Name: TMPRD
Theme URI: https://tmprd.co.uk
Author: TMPRD
Description: Campaign-led WooCommerce theme for Tempered / TMPRD.
Version: 1.0.0
Text Domain: tmprd
Requires at least: 6.4
Requires PHP: 8.1
*/

:root {
  --ink: #0b0b0b;
  --graphite: #151515;
  --steel: #242424;
  --paper: #f0eee8;
  --muted: #aaa69d;
  --line: rgba(240, 238, 232, .18);
  --signal: #9b4d3d;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; overflow: hidden; position: absolute; width: 1px;
}
.tmprd-shell { width: min(100% - 48px, 1480px); margin-inline: auto; }
.tmprd-kicker {
  color: var(--muted);
  font: 700 .68rem/1 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.tmprd-button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--ink);
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .12em;
  min-height: 48px;
  padding: 0 24px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.tmprd-button:hover, .tmprd-button:focus-visible { background: transparent; color: var(--paper); }
.tmprd-button--ghost { background: transparent; color: var(--paper); }
.tmprd-button--ghost:hover, .tmprd-button--ghost:focus-visible { background: var(--paper); color: var(--ink); }

.site-notice {
  align-items: center;
  background: var(--signal);
  display: flex;
  font-size: .65rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .16em;
  min-height: 31px;
  padding: 6px 20px;
  text-align: center;
  text-transform: uppercase;
}
.site-header {
  background: rgba(11, 11, 11, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 78px;
}
.site-logo img { height: 32px; width: auto; }
.site-logo { justify-self: center; }
.site-nav { display: flex; gap: 28px; }
.site-nav a, .header-tools a, .menu-toggle {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-nav a:hover, .header-tools a:hover { color: var(--muted); }
.header-tools { display: flex; gap: 22px; justify-self: end; }
.cart-count {
  align-items: center; background: var(--paper); border-radius: 50%; color: var(--ink);
  display: inline-flex; font-size: .58rem; height: 18px; justify-content: center; margin-left: 5px; width: 18px;
}
.menu-toggle { background: none; border: 0; color: inherit; display: none; padding: 12px 0; }

.campaign {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: calc(100vh - 109px);
  overflow: hidden;
}
.campaign__copy {
  align-items: flex-start;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--graphite);
  background-size: 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 108px);
  position: relative;
}
.campaign__copy::after {
  border: 1px solid var(--line); content: ""; inset: 28px; pointer-events: none; position: absolute;
}
.campaign h1 {
  font: 900 clamp(4rem, 7.7vw, 9rem)/.78 var(--sans);
  letter-spacing: -.065em;
  margin: 30px 0 36px;
  max-width: 780px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}
.campaign h1 span { color: transparent; -webkit-text-stroke: 1px var(--paper); }
.campaign__intro { color: #c5c1b8; max-width: 430px; position: relative; z-index: 1; }
.campaign__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; position: relative; z-index: 1; }
.campaign__visual { background: #111; min-height: 680px; overflow: hidden; position: relative; }
.campaign__visual img { height: 100%; object-fit: cover; width: 100%; }
.campaign__meta {
  align-items: center; background: rgba(11,11,11,.9); bottom: 24px; display: flex;
  font-size: .6rem; font-weight: 700; justify-content: space-between; left: 24px;
  letter-spacing: .14em; padding: 13px 16px; position: absolute; right: 24px; text-transform: uppercase;
}

.shop-by {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.shop-by a {
  align-items: center; border-right: 1px solid var(--line); display: flex; font: 800 clamp(1.2rem, 2vw, 2rem)/1 var(--sans);
  justify-content: space-between; letter-spacing: -.02em; min-height: 112px; padding: 24px 34px; text-transform: uppercase;
}
.shop-by a:last-child { border: 0; }
.shop-by a::after { content: "↗"; font: 400 1rem/1 var(--body); }
.shop-by a:hover { background: var(--paper); color: var(--ink); }

.product-section { background: var(--paper); color: var(--ink); padding: 96px 0 108px; }
.section-head { align-items: end; display: flex; justify-content: space-between; margin-bottom: 34px; }
.section-head h2 {
  font: 900 clamp(2.5rem, 5vw, 5rem)/.9 var(--sans);
  letter-spacing: -.05em; margin: 12px 0 0; text-transform: uppercase;
}
.section-link { border-bottom: 1px solid; font-size: .7rem; font-weight: 800; letter-spacing: .12em; padding-bottom: 4px; text-transform: uppercase; }
.products.columns-4, .tmprd-products {
  display: grid; gap: 2px; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0;
}
.product-card, .woocommerce ul.products li.product {
  background: #e5e2db; float: none !important; margin: 0 !important; padding: 0 0 24px !important; position: relative; width: auto !important;
}
.product-card__image, .woocommerce ul.products li.product a img {
  aspect-ratio: 1/1.18; background: #dedbd4; margin: 0 0 20px !important; object-fit: contain; width: 100%;
}
.product-card__body, .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price { margin-left: 20px; margin-right: 20px; }
.product-card__collection { color: #6b6862; font-size: .58rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: .82rem !important; font-weight: 800; letter-spacing: .08em; margin-bottom: 5px !important; margin-top: 8px; padding: 0 !important; text-transform: uppercase;
}
.product-card__foot { align-items: center; display: flex; font-size: .76rem; justify-content: space-between; margin-top: 10px; }
.product-card__swatches { color: #77736c; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce ul.products li.product .button { margin-left: 20px; }
.woocommerce span.onsale { background: var(--signal); border-radius: 0; font-size: .62rem; letter-spacing: .08em; min-height: auto; padding: 5px 9px; text-transform: uppercase; }

.manifesto {
  background: var(--graphite);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  min-height: 560px;
}
.manifesto__copy { align-self: center; padding: clamp(60px, 8vw, 140px); }
.manifesto h2 { font: 900 clamp(3.3rem, 7vw, 8rem)/.82 var(--sans); letter-spacing: -.06em; margin: 24px 0 34px; text-transform: uppercase; }
.manifesto p { color: #bbb7ae; max-width: 540px; }
.manifesto__mark {
  align-items: center; border-left: 1px solid var(--line); display: flex; justify-content: center; min-height: 420px; overflow: hidden;
}
.manifesto__mark span {
  border: 1px solid var(--line); border-radius: 50%; display: grid; font: 900 clamp(4rem, 10vw, 10rem)/1 var(--sans);
  height: min(28vw, 390px); place-items: center; transform: rotate(-12deg); width: min(28vw, 390px);
}

.site-footer { background: #070707; border-top: 1px solid var(--line); padding: 72px 0 26px; }
.footer-grid { display: grid; gap: 48px; grid-template-columns: 2fr repeat(3, 1fr); }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { color: var(--muted); font-size: .82rem; max-width: 320px; }
.footer-column h3 { font-size: .65rem; letter-spacing: .16em; margin: 0 0 20px; text-transform: uppercase; }
.footer-column a { color: var(--muted); display: block; font-size: .78rem; margin: 9px 0; }
.footer-bottom { border-top: 1px solid var(--line); color: #75726d; display: flex; font-size: .62rem; justify-content: space-between; letter-spacing: .09em; margin-top: 60px; padding-top: 22px; text-transform: uppercase; }

.woocommerce-page main, .tmprd-page { background: var(--paper); color: var(--ink); min-height: 60vh; padding: 72px max(24px, calc((100vw - 1480px)/2)); }
.woocommerce div.product { display: grid; gap: 5vw; grid-template-columns: 1.1fr .9fr; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product .product_title { font: 900 clamp(2.5rem, 5vw, 5rem)/.9 var(--sans); letter-spacing: -.05em; text-transform: uppercase; }
.woocommerce div.product p.price { color: var(--ink); }
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--ink); border-radius: 0; color: var(--paper); min-height: 48px; padding-inline: 28px; }

@media (max-width: 980px) {
  .tmprd-shell { width: min(100% - 32px, 1480px); }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; min-height: 66px; }
  .menu-toggle { display: block; justify-self: start; }
  .site-nav {
    background: var(--ink); display: none; flex-direction: column; inset: 97px 0 0; padding: 42px 24px; position: fixed;
  }
  .menu-open .site-nav { display: flex; }
  .header-tools a:not(.cart-link) { display: none; }
  .campaign { grid-template-columns: 1fr; }
  .campaign__copy { min-height: 620px; order: 2; padding: 64px 36px; }
  .campaign__visual { min-height: 68vh; }
  .shop-by { grid-template-columns: 1fr 1fr; }
  .shop-by a:nth-child(2) { border-right: 0; }
  .shop-by a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .products.columns-4, .tmprd-products { grid-template-columns: 1fr 1fr; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto__mark { border-left: 0; border-top: 1px solid var(--line); }
  .manifesto__mark span { height: 280px; width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-logo img { height: 25px; }
  .campaign__copy { min-height: 560px; padding: 54px 28px; }
  .campaign__copy::after { inset: 14px; }
  .campaign h1 { font-size: clamp(3.7rem, 19vw, 5.8rem); }
  .campaign__visual { min-height: 56vh; }
  .campaign__meta { bottom: 12px; left: 12px; right: 12px; }
  .shop-by { grid-template-columns: 1fr; }
  .shop-by a { border-bottom: 1px solid var(--line) !important; border-right: 0; min-height: 82px; }
  .products.columns-4, .tmprd-products { gap: 1px; }
  .product-card__body { margin-inline: 12px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .product-section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .woocommerce div.product { display: block; }
}
