/* TALISMAN — talismandaily.com
   Charcoal / bone / gold. A briefing, not a motivational poster. */

:root {
  --charcoal: #0B0B0D;
  --surface: #141417;
  --surface-2: #1A1A1E;
  --bone: #F2EFE8;
  --bone-dim: rgba(242, 239, 232, 0.60);
  --bone-faint: rgba(242, 239, 232, 0.34);
  --gold: #C9A25B;
  --gold-deep: #9E7B3C;
  --hairline: rgba(242, 239, 232, 0.10);
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--charcoal); }

/* Grain + vignette atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(201, 162, 91, 0.07), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 110%, rgba(201, 162, 91, 0.04), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 4%); }
}

main, header.site, footer.site { position: relative; z-index: 2; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ---- Recurring marks ---- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  border: 0;
}

.seal { display: inline-block; }

/* ---- Site header ---- */

header.site {
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bone);
  text-decoration: none;
}
.wordmark span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.42em;
}
nav.site a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  margin-left: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
nav.site a:hover, nav.site a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Hero ---- */

.hero {
  padding: 120px 0 96px;
  text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 30px; }
.statement {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 auto;
}
.statement em {
  font-style: italic;
  color: var(--gold);
}
.hero .rule { margin: 44px auto; }
.lede {
  font-size: 19px;
  color: var(--bone-dim);
  max-width: 52ch;
  margin: 0 auto 48px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
}
.btn-gold:hover { background: var(--bone); }
.btn-ghost {
  color: var(--bone-dim);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold-deep); }

/* ---- Specimen card (the product IS the card) ---- */

.specimen { padding: 40px 0 110px; }
.card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 9 / 13;
  background:
    radial-gradient(ellipse 130% 90% at 50% 0%, rgba(201, 162, 91, 0.08), transparent 55%),
    var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 48px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.card .eyebrow { margin-bottom: 26px; }
.card-line {
  font-size: clamp(1.6rem, 4.4vw, 2.15rem);
  line-height: 1.3;
  margin-bottom: 34px;
}
.card-mark {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--bone-faint);
}
.nowrap { white-space: nowrap; }
.card-caption {
  text-align: center;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ---- Doctrine / method ---- */

.section { padding: 96px 0; border-top: 1px solid var(--hairline); }
.section-head { margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 24ch;
}

.doctrine { display: grid; gap: 0; }
.doctrine-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.doctrine-row:last-child { border-bottom: 1px solid var(--hairline); }
.doctrine-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.doctrine-row h3 {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
}
.doctrine-row p { color: var(--bone-dim); font-size: 16px; }

/* ---- Stance (privacy) ---- */

.stance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.stance-cell {
  background: var(--charcoal);
  padding: 34px 28px;
}
.stance-cell .eyebrow { display: block; margin-bottom: 14px; letter-spacing: 0.24em; }
.stance-cell p { color: var(--bone-dim); font-size: 15px; }

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

footer.site {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 72px;
  text-align: center;
}
footer.site .rule { margin: 28px auto; }
.foot-links { margin-bottom: 18px; }
.foot-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  margin: 0 16px;
}
.foot-links a:hover { color: var(--gold); }
.colophon {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--bone-faint);
}

/* ---- Legal document pages ---- */

.doc { padding: 88px 0 110px; max-width: 720px; margin: 0 auto; }
.doc .eyebrow { display: block; margin-bottom: 20px; }
.doc h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}
.doc-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.doc .rule { margin: 40px 0; }
.doc-summary {
  border: 1px solid var(--gold-deep);
  padding: 26px 30px;
  margin-bottom: 56px;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
}
.doc h2 {
  font-size: 21px;
  font-weight: 400;
  margin: 52px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.doc h2 .num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.doc p, .doc li { color: var(--bone-dim); margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--bone); font-weight: 600; }
.doc a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-deep); }

/* ---- Reveal motion ---- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.2s; }
  .rise.d3 { animation-delay: 0.34s; }
  .rise.d4 { animation-delay: 0.5s; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .watch {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  }
  .watch.seen { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .doctrine-row { grid-template-columns: 56px 1fr; }
  .doctrine-row p { grid-column: 2; }
  .hero { padding: 84px 0 64px; }
}
