/* ============================================================
   TERRA ARCANA — BRAND PAGES
   Loads after terra-arcana.css
   Used by: faq.html, contact.html, terms.html, privacy.html,
            collection.html, account.html
   ============================================================ */

/* ----- LEGACY TOKEN ALIASES --------------------------------
   Old class names on account.html / collection.html still
   reference these variables in their inline <style> blocks.
   Alias them to the new token system so nothing renders black.
   ------------------------------------------------------------ */

:root {
  --gold-light:    var(--gold-soft);
  --gold-dim:      var(--gold-deep);
  --ivory-muted:   var(--ivory-mute);
}

/* ----- PAGE SHELL ------------------------------------------ */

.page-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 80px var(--shell-pad) 40px;
  position: relative;
  z-index: 2;
}

/* ----- PAGE HERO ------------------------------------------- */

.page-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}

.page-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ivory);
  margin-bottom: 22px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.page-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}

.page-lede {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ivory-dim);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero button alias — mirrors .btn styles for this page context */
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--hairline);
  color: var(--ivory);
  background: transparent;
  transition: all .3s var(--ease-in-out);
}

.button-link::after {
  content: "→";
  font-family: var(--serif);
  transition: transform .3s var(--ease-in-out);
}

.button-link:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 85, 0.06);
  color: var(--gold-soft);
}

.button-link:hover::after {
  transform: translateX(4px);
}

.button-link.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.button-link.primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
}

/* Hero side panel — logo + note */
.hero-panel {
  padding: 32px;
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, rgba(239, 229, 212, 0.02), transparent);
  position: relative;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.hero-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero-panel-copy img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  opacity: .95;
}

.hero-panel-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory-dim);
  font-variation-settings: "opsz" 18, "SOFT" 80, "WONK" 1;
}

/* ----- CONTENT GRID (article + aside) ---------------------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.card {
  background: transparent;
}

.span-8  { grid-column: span 8; }
.span-6  { grid-column: span 6; }
.span-4  { grid-column: span 4; }
.span-12 { grid-column: span 12; }

.eyebrow + .card-title {
  margin-top: -6px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
  display: block;
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.card-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 1;
}

.card-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ivory-dim);
  margin-bottom: 18px;
}

.card-text strong {
  color: var(--ivory);
  font-weight: 500;
}

/* ----- FAQ LIST -------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-soft);
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.faq-question {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
}

.faq-answer {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--ivory-dim);
  max-width: 60ch;
}

.faq-answer strong {
  color: var(--ivory);
  font-weight: 500;
}

.faq-answer a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color .3s var(--ease-in-out);
}

.faq-answer a:hover {
  border-bottom-color: var(--gold);
}

/* ----- INFO PANEL (aside) ---------------------------------- */

.info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-soft);
}

.info-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.info-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.info-value {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ivory);
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
}

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(201, 162, 85, 0.03), transparent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ivory-dim);
  font-variation-settings: "opsz" 18, "SOFT" 80, "WONK" 1;
  position: relative;
}

.callout::before,
.callout::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.callout::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.callout::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.small-note {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ivory-mute);
}

/* ----- NAV CTA (extra item in the top bar) ----------------- */

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: all .3s var(--ease-in-out);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ----- FOOTER LEGACY (on brand pages that still use it) ----
   This duplicates the site-footer pattern but in the flat
   structure the legacy brand pages already have. Keeps the
   markup stable while aligning the styling. */

.page-shell.footer {
  margin-top: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hairline-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ivory-mute);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color .3s var(--ease-in-out);
}

.footer-links a:hover {
  color: var(--gold-soft);
}

/* ----- CONTACT-PAGE SPECIFIC ------------------------------- */

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 8px;
}

@media (max-width: 1100px) {
  .contact-options {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-option {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.contact-option-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.contact-option-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 10px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.contact-option-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-dim);
  margin-bottom: 14px;
}

.contact-option a {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color .3s var(--ease-in-out);
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
}

.contact-option a:hover {
  border-bottom-color: var(--gold);
}

.contact-mason {
  margin-top: 36px;
  padding: 32px 30px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(201, 162, 85, 0.04);
  position: relative;
}

.contact-mason::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  pointer-events: none;
}

.contact-mason-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 10px;
  position: relative;
}

.contact-mason-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  color: var(--ivory);
  margin: 0 0 14px;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
  position: relative;
}

.contact-mason-title em {
  font-style: italic;
  color: var(--gold-soft);
}

.contact-mason-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-dim);
  margin: 0 0 20px;
  max-width: 56ch;
  position: relative;
}

.contact-mason .button-link {
  position: relative;
}

/* ----- TERMS / PRIVACY STACKED COPY ------------------------ */

.legal-body {
  max-width: 68ch;
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--ivory);
  margin: 48px 0 18px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.legal-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ivory);
  margin: 32px 0 12px;
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ivory-dim);
  margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color .3s var(--ease-in-out);
}

.legal-body a:hover {
  border-bottom-color: var(--gold);
}

/* ----- RESPONSIVE ------------------------------------------ */

@media (max-width: 960px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .content-grid {
    gap: 32px;
  }

  .span-8, .span-6, .span-4 {
    grid-column: 1 / -1;
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-panel { padding: 24px; }
}

/* ----- WORKSHOP / PRODUCTS --------------------------------- */

.shop-grid {
  align-items: stretch;
}

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(245, 238, 219, 0.015);
  overflow: hidden;
  transition: border-color .35s var(--ease-in-out), background .35s var(--ease-in-out);
}

.product:hover {
  border-color: rgba(201, 162, 85, 0.45);
  background: rgba(245, 238, 219, 0.025);
}

.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background: radial-gradient(ellipse at 50% 60%, rgba(201, 162, 85, 0.07), rgba(0, 0, 0, 0) 70%);
  border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
}

.product-media img,
.product-media svg {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-media-tag {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  opacity: 0.6;
  background: rgba(10, 8, 6, 0.55);
  padding: 4px 8px;
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
}

.product-body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-dim);
  margin: 0;
}

.product-spec {
  list-style: none;
  padding: 16px 0 0;
  margin: 4px 0 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-spec li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
  border-bottom: 1px dashed var(--hairline-soft);
  padding-bottom: 8px;
}

.product-spec li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-spec span:first-child {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  flex-shrink: 0;
}

.product-spec span:last-child {
  text-align: right;
  color: var(--ivory);
}

.product-buy {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-price {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--ivory);
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.notify-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--hairline);
  color: var(--ivory);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 13px;
  border-radius: 2px;
  transition: border-color .25s var(--ease-in-out);
}

.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold-soft);
}

.notify-form button {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background .25s var(--ease-in-out);
}

.notify-form button:hover:not(:disabled) {
  background: var(--gold-soft);
}

.notify-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notify-status {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ivory-dim);
  min-height: 1.4em;
  margin: 0;
}

.notify-status[data-tone="error"] { color: #d97a7a; }
.notify-status[data-tone="success"] { color: var(--gold-soft); }

.shop-note {
  padding: 30px 32px;
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  background: rgba(201, 162, 85, 0.025);
}

.shop-note .card-title { margin-top: 4px; }
.shop-note p { font-size: 14px; line-height: 1.7; color: var(--ivory-dim); margin: 12px 0 0; }

.case-svg {
  width: 90%;
  height: auto;
}

@media (max-width: 720px) {
  .product-media { height: 220px; }
  .product-body { padding: 22px; }
  .product-price { font-size: 26px; }
}
