/* ==========================================================
   Analog Icons — shared stylesheet
   Colours and fonts live in :root below. Change them there
   and the whole site follows.
   ========================================================== */

:root {
  --graphite: #26292e;     /* dashboard plastic */
  --graphite-2: #33373d;
  --silver: #dfe2e0;       /* metallic paint */
  --paper: #fbfbfa;
  --amber: #ffb000;        /* the three stripes */
  --orange: #ff6a13;
  --red: #c8102e;
  --ink: #26292e;
  --muted: #5c6168;
  --line: #c4c8c6;
  --on-dark-muted: #aab0b5;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

h1, h2, h3 { margin: 0; }

h2.display { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 34em;
}

/* ---------- The three stripes ---------- */

.stripes {
  height: 30px;
  background: linear-gradient(
    var(--amber) 0 33.33%,
    var(--orange) 33.33% 66.66%,
    var(--red) 66.66% 100%
  );
}

.stripes--thin { height: 12px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--graphite);
  color: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wordmark::after {
  content: "";
  height: 6px;
  width: 100%;
  background: linear-gradient(
    var(--amber) 0 33.33%,
    var(--orange) 33.33% 66.66%,
    var(--red) 66.66% 100%
  );
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--on-dark-muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary { background: var(--orange); color: var(--graphite); }
.btn--primary:hover { background: var(--amber); }

.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn--dark { background: var(--graphite); color: var(--paper); }
.btn--dark:hover { background: var(--graphite-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--graphite);
  color: var(--paper);
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  margin-bottom: 24px;
}

.hero .lede { color: var(--on-dark-muted); margin: 0 0 32px; }

.dial { width: 100%; max-width: 460px; margin-left: auto; }

.dial__needle {
  transform-origin: 200px 200px;
  transform: rotate(-101.25deg);
  animation: blip 2.4s cubic-bezier(.3,.7,.3,1) .5s both;
}

@keyframes blip {
  0%   { transform: rotate(-135deg); }
  40%  { transform: rotate(112deg); }
  100% { transform: rotate(-101.25deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dial__needle { animation: none; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--silver { background: var(--silver); }
.section--dark { background: var(--graphite); color: var(--paper); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head p { margin: 8px 0 0; color: var(--muted); }

.text-link {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
}

.product-grid[data-products="featured"] {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product { display: flex; flex-direction: column; }
.product[hidden] { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.product__media {
  aspect-ratio: 1 / 1;
  background: var(--silver);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.section--silver .product__media { background: var(--paper); }

.product__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  flex: 1;
}

.product__name {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.15rem;
}

.product__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 14px;
}

.product__price { color: var(--ink); font-weight: 700; }

.product .btn { margin-top: auto; text-align: center; }

/* Mock-ups drawn in CSS so the site works before real photos exist */

.mock-tee {
  width: 78%;
  aspect-ratio: 1 / 1;
  background: var(--graphite);
  clip-path: polygon(30% 4%, 40% 4%, 43% 9%, 50% 11%, 57% 9%, 60% 4%, 70% 4%,
    98% 18%, 90% 37%, 80% 33%, 80% 98%, 20% 98%, 20% 33%, 10% 37%, 2% 18%);
  display: grid;
  place-items: center;
}

.mock-tee img { width: 46%; margin-top: 4%; }

.mock-tee--white { background: var(--paper); }
.section--silver .mock-tee--white { background: var(--silver); }

.mock-poster {
  width: 62%;
  aspect-ratio: 1 / 1.414;
  background: var(--paper);
  padding: 7%;
  box-shadow: 0 18px 30px -18px rgba(38, 41, 46, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8%;
}

.mock-poster__art {
  flex: 1;
  background: var(--graphite);
  display: grid;
  place-items: center;
}

.mock-poster__art img { width: 86%; }
.mock-poster .stripes { height: 9%; }

.mock-mug {
  width: 52%;
  aspect-ratio: 1 / 1.1;
  background: var(--paper);
  border-radius: 6px 6px 14px 14px;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset -14px 0 0 rgba(38, 41, 46, 0.06);
}

.mock-mug::after {
  content: "";
  position: absolute;
  right: -26%;
  top: 22%;
  width: 34%;
  height: 46%;
  border: 9px solid var(--paper);
  border-left: 0;
  border-radius: 0 40% 40% 0;
}

.mock-mug img { width: 74%; }

.mock-sticker {
  width: 58%;
  aspect-ratio: 1 / 1;
  background: var(--graphite);
  border: 7px solid var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: 0 10px 20px -12px rgba(38, 41, 46, 0.6);
}

.mock-sticker img { width: 72%; }

/* ---------- Shop filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filter:hover { border-color: var(--ink); }

.filter[aria-pressed="true"] {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--paper);
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--graphite);
  color: var(--paper);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}

.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 14px; }
.page-head p { color: var(--on-dark-muted); margin: 0; max-width: 40em; }

/* ---------- Why analog ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.why h2 { margin-bottom: 20px; }

.why__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }

.why__points li {
  padding-left: 22px;
  border-left: 6px solid var(--amber);
}

.why__points li:nth-child(2) { border-left-color: var(--orange); }
.why__points li:nth-child(3) { border-left-color: var(--red); }

.why__points strong { display: block; font-size: 1.15rem; }
.why__points span { color: var(--muted); }

/* ---------- Journal listing ---------- */

.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 48px); }

.post-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }

.post-card__art {
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.post-card__art img { width: 54%; }

.post-card h3 {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
}

.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }

.post-card p { margin: 0; color: var(--muted); }

.post-card time { color: var(--muted); font-size: .95rem; }

.section--silver .post-card p,
.section--silver .post-card time { color: #4c5157; }

/* ---------- Article ---------- */

.article { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }

.article__body { max-width: 68ch; margin: 0 auto; }

.article__body h2 {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 2.2em 0 .5em;
}

.article__body p, .article__body ul { margin: 0 0 1.1em; }
.article__body li { margin-bottom: .4em; }

.disclosure {
  border-left: 6px solid var(--orange);
  background: var(--silver);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .97rem;
  margin-bottom: 2em;
}

.disclosure p { margin: 0; }

.pick {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 1.4em 0 1.8em;
}

.pick h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.pick p { color: var(--muted); }
.pick .btn { padding: 11px 20px; }
.pick small { display: block; margin-top: 10px; color: var(--muted); }

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

.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.signup p { color: var(--on-dark-muted); margin: 14px 0 0; }

.signup form { display: flex; flex-wrap: wrap; gap: 10px; }

.signup label { width: 100%; font-weight: 600; }

.signup input {
  flex: 1 1 220px;
  font: inherit;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--graphite-2);
  background: var(--paper);
  color: var(--ink);
}

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

.site-footer {
  background: var(--graphite);
  color: var(--on-dark-muted);
  padding: 48px 0 40px;
  font-size: .95rem;
}

.site-footer .wrap { display: grid; gap: 28px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-top .wordmark { color: var(--paper); }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--paper); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.site-footer p { margin: 0; max-width: 60em; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap, .why, .signup { grid-template-columns: 1fr; }
  .dial { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 14px; gap: 12px; }
  .wordmark { font-size: 1.2rem; }
  .post-list { grid-template-columns: 1fr; }
  .hero .btn-row .btn { flex: 1 1 auto; text-align: center; }
}
