/* ───────────────────────────────────────────────
   Akshara: shared stylesheet
   Design system reference: .claude/skills/akshara-design/SKILL.md
   ─────────────────────────────────────────────── */

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

:root {
  --parchment:        #f4ead5;
  --parchment-deep:   #e8d9b8;
  --parchment-warm:   #efe0c6;
  --ink:              #2c1810;
  --ink-light:        #5c3a28;
  --gold:             #b8860b;
  --gold-light:       #d4a843;
  --gold-faint:       rgba(184, 134, 11, 0.15);
  --burgundy:         #6b1d2a;
  --burgundy-light:   #8b2d3a;
  --shadow:           rgba(44, 24, 16, 0.12);
}

html { font-size: 18px; }

body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Skip-to-content for keyboard users */
.skip-to-main {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-to-main:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  background: var(--parchment-deep);
  color: var(--ink);
  padding: .5rem 1rem;
  border: 1px solid var(--gold);
  z-index: 100;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* ── Parchment texture & noise grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(139,109,63,.02) 3px, rgba(139,109,63,.02) 4px),
    radial-gradient(ellipse at 20% 50%, rgba(160,120,60,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(107,29,42,.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Header ── */
header {
  padding: 2.5rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 15%, var(--gold-light) 50%, var(--gold) 85%, transparent 100%);
  opacity: .6;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-devanagari {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.logo-english {
  font-family: 'Cormorant SC', serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-light);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  font-weight: 500;
  font-style: italic;
  text-decoration: none;
  color: var(--ink-light);
  letter-spacing: .03em;
  position: relative;
  transition: color .3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all .3s ease;
  transform: translateX(-50%);
}

nav a:hover { color: var(--burgundy); }
nav a:hover::after { width: 100%; }

nav a[aria-current="page"] {
  color: var(--burgundy);
  font-style: italic;
}
nav a[aria-current="page"]::after { width: 100%; opacity: .7; }

/* ── Main ── */
main { padding: 3rem 0 4rem; }

/* Title ornaments */
.flourish {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: .5em;
  opacity: .55;
  animation: fadeDown 1s ease-out .2s both;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--ink);
  text-wrap: balance;
  animation: fadeDown 1s ease-out .4s both;
}

.subtitle {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-light);
  margin-top: .55rem;
  text-wrap: balance;
  animation: fadeDown 1s ease-out .5s both;
}

.title-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  animation: fadeDown 1s ease-out .55s both;
}

.title-rule .rule-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.title-rule .rule-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .7;
}

/* ── Body text ── */
.body-text {
  max-width: 580px;
  margin: 0 auto;
}

.body-text p {
  margin-bottom: 1.2em;
  text-wrap: pretty;
  hanging-punctuation: first last;
}

/* Drop cap on the lead paragraph (page opts in via .lead or .intro-text) */
.body-text > p.lead::first-letter,
.body-text .intro-text::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem;
  float: left;
  line-height: .75;
  padding-right: .12em;
  padding-top: .08em;
  color: var(--burgundy);
  font-weight: 700;
}

/* Inline italic emphasis: uses IM Fell English as a scarce decorative gloss */
.body-text em,
em.gloss {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  color: var(--burgundy);
}

/* ── Section headings ── */
h2 {
  font-family: 'Cormorant SC', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 2.75rem;
  margin-bottom: 1.2rem;
  text-align: center;
  position: relative;
}

h2::before,
h2::after {
  content: '';
  display: inline-block;
  width: 1.4em;
  height: 1px;
  background: var(--gold);
  opacity: .45;
  vertical-align: middle;
  margin: 0 .8em;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  margin-top: 1.6rem;
  margin-bottom: .55rem;
  letter-spacing: .02em;
}

/* ── Process steps (Roman numerals) ── */
.process-step {
  margin-bottom: 1.3em;
  text-wrap: pretty;
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  color: var(--burgundy);
}

/* ── Three-pillar list (you / we / public) ── */
.pillars {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.pillars li {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.pillars .pillar-label {
  font-family: 'Cormorant SC', serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

/* ── Archive lists (deliverables, logistics) ── */
.archive-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.archive-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: .55em;
  text-wrap: pretty;
}

.archive-list li::before {
  content: '❦';
  position: absolute;
  left: 0;
  top: .15em;
  color: var(--gold);
  opacity: .55;
  font-size: .85em;
}

/* ── CTA section (parchment card) ── */
.cta-section {
  margin-top: 3rem;
  padding: 2.25rem 2.2rem 2rem;
  background: linear-gradient(135deg, var(--parchment-warm) 0%, var(--parchment-deep) 100%);
  border: 1px solid var(--gold-faint);
  position: relative;
  text-align: center;
  animation: fadeUp .8s ease-out 1.2s both;
}

.cta-section::before {
  content: '❧';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--gold);
  opacity: .55;
  background: var(--parchment);
  padding: 0 .8em;
}

.cta-section h2 {
  margin-top: .25rem;
  margin-bottom: 1rem;
}

.cta-section h2::before,
.cta-section h2::after { display: none; }

.cta-section p {
  text-align: center;
  margin-bottom: 1em;
  text-wrap: pretty;
}

.cta-section p:last-child { margin-bottom: 0; }

.cta-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: normal;
  margin-top: 1.2rem;
}

.cta-email a,
.contact a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-faint);
  transition: all .3s ease;
  padding-bottom: 1px;
}

.cta-email a:hover,
.contact a:hover {
  color: var(--burgundy-light);
  border-bottom-color: var(--burgundy-light);
}

/* ── Founder portrait (frontispiece) ── */
.frontispiece {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-faint);
  box-shadow: 0 0 0 4px var(--parchment), 0 0 0 5px var(--gold-faint), 0 1px 0 rgba(184,134,11,.2);
  filter: sepia(.18) contrast(1.02);
  animation: fadeDown 1s ease-out .35s both;
}

/* ── Contact / colophon ── */
.contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 2;
  animation: fadeUp .8s ease-out 1.4s both;
}

.contact::before {
  content: '⁕';
  display: block;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--gold);
  opacity: .55;
  font-style: normal;
}

.contact-separator {
  display: inline-block;
  margin: 0 .6em;
  color: var(--gold);
  opacity: .5;
  font-style: normal;
}

.colophon {
  text-align: center;
  padding: 2rem 0 1.25rem;
  color: var(--gold);
  opacity: .4;
  font-size: 1.1rem;
  letter-spacing: .8em;
  animation: fadeUp .8s ease-out 1.6s both;
}

.legal-line {
  text-align: center;
  padding: 0 0 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: .8rem;
  font-style: italic;
  color: var(--ink-light);
  opacity: .65;
  letter-spacing: .04em;
}

/* ── Border frame & corners ── */
.border-frame {
  position: fixed;
  pointer-events: none;
  z-index: 10;
}

.border-frame--top,
.border-frame--bottom {
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  opacity: .2;
}

.border-frame--top    { top: 16px; }
.border-frame--bottom { bottom: 16px; }

.border-frame--left,
.border-frame--right {
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  opacity: .2;
}

.border-frame--left  { left: 16px; }
.border-frame--right { right: 16px; }

.corner {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 11;
  opacity: .25;
}

.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

.corner--tl { top: 12px; left: 12px; }
.corner--tr { top: 12px; right: 12px; }
.corner--bl { bottom: 12px; left: 12px; }
.corner--br { bottom: 12px; right: 12px; }

.corner--tl::before, .corner--tr::before,
.corner--bl::before, .corner--br::before {
  width: 20px; height: 1px; top: 4px;
}

.corner--tl::after, .corner--tr::after,
.corner--bl::after, .corner--br::after {
  width: 1px; height: 20px; top: 0;
}

.corner--tl::before, .corner--bl::before { left: 0; }
.corner--tr::before, .corner--br::before { right: 0; }
.corner--tl::after,  .corner--bl::after  { left: 4px; }
.corner--tr::after,  .corner--br::after  { right: 4px; }

/* ── Section staggered fade utilities ── */
.section-fade { animation: fadeUp .8s ease-out both; }
.delay-1 { animation-delay: .65s; }
.delay-2 { animation-delay: .8s; }
.delay-3 { animation-delay: .95s; }
.delay-4 { animation-delay: 1.1s; }
.delay-5 { animation-delay: 1.25s; }
.delay-6 { animation-delay: 1.4s; }

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── FAQ items ── */
.faq-item {
  margin: 0 0 2rem;
  scroll-margin-top: 1rem;
}

.faq-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  letter-spacing: .015em;
  margin: 0 0 .7rem;
  text-wrap: pretty;
}

.faq-item h3 .step-number {
  margin-right: .4em;
}

.faq-item p { text-wrap: pretty; }

.faq-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-faint), transparent);
  margin: 2rem auto;
  max-width: 380px;
  opacity: .8;
}

/* ── Specification list (definition list) ── */
.spec-list {
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.spec-list dt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--burgundy);
  margin-top: 1em;
  letter-spacing: .015em;
}

.spec-list dt:first-of-type { margin-top: 0; }

.spec-list dd {
  margin: .15em 0 .5em;
  text-wrap: pretty;
}

/* ── References list ── */
.refs {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: .92rem;
  color: var(--ink-light);
  line-height: 1.7;
}

.refs li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: .5em;
  text-wrap: pretty;
}

.refs li::before {
  content: '§';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: .55;
  font-style: normal;
}

.refs cite {
  font-style: italic;
  color: var(--ink);
}

.refs a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-faint);
  padding-bottom: 1px;
  transition: all .3s ease;
}

.refs a:hover {
  color: var(--burgundy-light);
  border-bottom-color: var(--burgundy-light);
}

/* ── Cross-link (italic "see also" line) ── */
.cross-link {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .98rem;
  color: var(--ink-light);
  text-align: center;
  margin: 1.5rem 0 .5rem;
}

.cross-link a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-faint);
  padding-bottom: 1px;
  transition: all .3s ease;
}

.cross-link a:hover {
  color: var(--burgundy-light);
  border-bottom-color: var(--burgundy-light);
}

/* ── Privacy note in legal line ── */
.legal-privacy {
  display: inline-block;
  margin-top: .35rem;
  font-size: .74rem;
  opacity: .8;
  letter-spacing: .03em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .page-wrapper { padding: 0 24px; }
  h1 { font-size: 2.2rem; }
  .body-text > p.lead::first-letter,
  .body-text .intro-text::first-letter { font-size: 3.4rem; }
  nav { gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
  .cta-section { padding: 1.75rem 1.4rem; }
  .border-frame, .corner { display: none; }
  .pillars li { grid-template-columns: 1fr; gap: .15rem; }
  .pillars .pillar-label { font-size: .72rem; }
  .faq-item h3 { font-size: 1.08rem; }
}
