/* maza — article + shop pages (loads after tokens.css) */

/* ---------- back arrow ---------- */
.topline {
  padding: calc(var(--bar) + clamp(18px, 3.5vw, 30px)) clamp(16px, 4vw, 36px) 0;
}

.back {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.back svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }

.back:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ground);
}

.back:hover svg { transform: translateX(-3px); }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(1.8rem, 5vw, 3rem) clamp(20px, 5vw, 36px) 0;
}

/* ---------- article ---------- */
h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1;
  color: var(--paper);
  text-wrap: balance;
}

.standfirst {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: -0.012em;
  color: var(--muted);
  text-wrap: pretty;
}

.rule { height: 1px; background: var(--hairline); margin-block: clamp(2.4rem, 6vw, 3.4rem); }

article p {
  margin-top: 1.45rem;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}

article > p:first-child { margin-top: 0; }

article > p:first-child::first-letter {
  float: left;
  font-size: 3.7em;
  line-height: 0.82;
  font-weight: 700;
  color: var(--paper);
  padding-right: 0.09em;
  margin-top: 0.05em;
}

article h2 {
  margin-top: clamp(2.6rem, 6vw, 3.6rem);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--paper);
}

blockquote {
  margin: clamp(2.2rem, 5vw, 3rem) 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--paper);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.44;
  letter-spacing: -0.016em;
  color: var(--paper);
}

/* ---------- founding timeline ---------- */
.story {
  margin-top: clamp(3.4rem, 9vw, 5.5rem);
  padding-top: clamp(2.8rem, 7vw, 4rem);
  border-top: 1px solid var(--hairline);
}

.story > .spec { display: block; margin-bottom: clamp(1.8rem, 5vw, 2.6rem); }

.chapter { padding-block: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--hairline); }
.chapter:first-of-type { border-top: 0; padding-top: 0; }

.chapter .year {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--paper);
}

.chapter h3 {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.26;
  color: var(--paper);
  text-wrap: balance;
}

.chapter p { margin-top: 1.3rem; font-size: clamp(1.05rem, 1.35vw, 1.32rem); line-height: 1.66; color: var(--muted); }
.chapter blockquote { margin: 1.5rem 0 0; }

/* ---------- button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.05em 2.2em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ground);
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover { opacity: 0.86; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.end {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

/* ---------- shop ---------- */
.shop {
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(20px, 5vw, 36px) 0;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) { .shop { grid-template-columns: 1fr 1fr; } }

.pot {
  display: grid;
  place-items: center;
  padding: clamp(1.8rem, 5vw, 3rem);
  border: 1px solid var(--hairline);
}

.pot svg { width: min(100%, 320px); height: auto; }

.shop h1 { margin-top: 0.8rem; }

.shop .meta { margin-top: 0.9rem; }

.price {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.blurb {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 1.8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 44px; height: 46px;
  font: inherit; font-size: 1.05rem;
  color: var(--paper);
  background: none; border: 0; cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.qty button:hover { background: rgba(240, 238, 230, 0.12); }
.qty span { min-width: 2.2em; text-align: center; font-family: var(--mono); }

.buy { width: 100%; margin-top: 0.9rem; justify-content: center; }

.said { margin-top: 0.9rem; min-height: 1.3em; }

.badges { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.9rem; }

/* ---------- pillars ---------- */
.pillars {
  max-width: 1100px;
  margin: clamp(3.5rem, 9vw, 6rem) auto 0;
  padding-inline: clamp(20px, 5vw, 36px);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar { padding: clamp(1.7rem, 4vw, 2.4rem) 0; border-bottom: 1px solid var(--hairline); }

@media (min-width: 760px) {
  .pillar { padding-right: 2rem; border-bottom: 0; }
  .pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--hairline); }
}

.pillar h2 {
  margin-top: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--paper);
}

.pillar p { margin-top: 0.6rem; font-size: 0.98rem; line-height: 1.62; color: var(--muted); }

/* ---------- pre-production modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.modal.open { visibility: visible; opacity: 1; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 16, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  padding: clamp(1.9rem, 5vw, 2.8rem);
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.5s var(--ease);
}

.modal.open .modal__panel { transform: none; }

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--paper);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.modal__close:hover { background: var(--paper); color: var(--ground); }

.modal h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--paper);
  text-wrap: balance;
}

.modal p {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}

.modal .members {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  color: var(--paper);
}

.modal .members strong { font-weight: 700; letter-spacing: 0.01em; }

.modal form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }

.modal input {
  width: 100%;
  padding: 1em 1.2em;
  font: inherit;
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(240, 238, 230, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.modal input::placeholder { color: var(--faint); }

.modal input:hover, .modal input:focus {
  background: rgba(240, 238, 230, 0.1);
  border-color: rgba(240, 238, 230, 0.42);
  outline: none;
}

.modal .btn { width: 100%; justify-content: center; }

.modal .fineprint { margin-top: 0.9rem; }

.modal__done { display: none; }
.modal.done .modal__ask { display: none; }
.modal.done .modal__done { display: block; }

body.locked { overflow: hidden; }
