/* =========================
   PINNED THEORY — STYLE.CSS
   Consistent, calm, hover-only
   ========================= */

/* ---- Tokens ---- */
:root{
  --cream:#F8F3EC;
  --paper:rgba(255,255,255,0.55);
  --ink:#1A1A1A;
  --charcoal:#2C2C2C;
  --taupe:#C2AFA2;
  --gold:#D0B47C;
  --muted:rgba(26,26,26,0.70);
  --faint:rgba(26,26,26,0.46);
  --line:rgba(44,44,44,0.10);
  --shadow:0 12px 38px rgba(44,44,44,0.07);
  --radius:22px;
  --max:1160px;

  /* Canonical content width so text + image always match */
  --artifact-max: 780px;
}

/* ---- Reset ---- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing:0.2px;
  line-height:1.65;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

a:focus-visible, button:focus-visible{
  outline: 2px solid rgba(26,26,26,0.5);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---- Layout ---- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding: 0 20px;
}

/* =========================
   TOP BAR
   ========================= */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(248,243,236,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:650;
  letter-spacing:0.6px;
  font-size: 14px;
}

.pin{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(208,180,124,0.22);
}

.actions{
  display:flex;
  gap:12px;
  font-size: 12.5px;
  color: var(--faint);
}

.actions a{
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.actions a:hover{
  background: rgba(44,44,44,0.06);
  color: var(--muted);
}

/* =========================
   HERO
   ========================= */
.hero{
  padding: 54px 0 28px;
}

.kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--faint);
  margin: 0 0 10px;
}

h1{
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.6px;
  font-family: Fraunces, serif;
  font-weight: 600;
}

.subhead{
  max-width: 62ch;
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(44,44,44,0.16);
  font-size: 13px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  background: rgba(255,255,255,0.35);
}

.btn:hover{ transform: translateY(-1px); }

.btn.primary{
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* =========================
   SECTION HEADERS
   ========================= */
.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  margin: 22px 0 14px;
}

.section-title h2{
  margin:0;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.section-title p{
  margin:0;
  font-size: 13px;
  color: var(--faint);
  max-width: 70ch;
}

/* =========================
   CANONICAL ARTIFACT BLOCK
   stacked, consistent, hover-only
   ========================= */
.artifact-field{ padding: 10px 0 28px; }

/* Each artifact is a centered column so text + image share the same width */
.artifact-item{
  max-width: var(--artifact-max);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Cards */
.card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Word card */
.word-card{
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gurmukhi{
  font-family: "Noto Sans Gurmukhi", Inter, system-ui, sans-serif;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}

.word{
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.2px;
  margin: 0;
}

.meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.transliteration{ margin: 0; }

.pronounce{
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(44,44,44,0.12);
  background: rgba(255,255,255,0.28);
  font-size: 12px;
  color: rgba(26,26,26,0.62);
  letter-spacing: 0.02em;
}

/* small divider */
.divider{
  width: 76px;
  height: 1px;
  background: rgba(26,26,26,0.16);
  margin-top: 2px;
}

/* Poetry reveal: no layout shift */
.story{
  position: relative;
  margin-top: 2px;
}
/* Poetry reveal: expands on hover (no blank flashcard) */
.story .more{
  overflow: hidden;
  max-height: 0;          /* collapses so it doesn't reserve space */
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: max-height 220ms ease, opacity 160ms ease, transform 160ms ease;
}

/* Hover expands the note */
@media (hover:hover){
  .artifact-item:hover .story .more{
    max-height: 560px;    /* bump this up if a note is longer */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile: no hover, so always open */
@media (hover:none){
  .story .more{
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.story .teaser{
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.story .more p{
  margin: 10px 0 0;
  color: rgba(26,26,26,0.68);
  font-size: 14.5px;
  line-height: 1.75;
}

.story .more p:last-child{ margin-bottom: 0; }


/* Labels */
.note-label{
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
}

.hint{
  margin-top: -6px;
  font-size: 12px;
  color: rgba(26,26,26,0.52);
}

/* Image card: same width as text, height capped, never huge */
.image-card{
  display: block;
  position: relative;
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius);
}

/* cap height so it does not become enormous on desktop */
.image-card{
  max-height: 520px;
}

.image-card img{
  width: 100%;
  height: 520px; /* matches cap above */
  object-fit: contain;
  object-position: center;
  padding: 22px;
  filter: saturate(0.98);
}

@media (max-width: 520px){
  .image-card{ max-height: 420px; }
  .image-card img{ height: 420px; padding: 18px; }
}

/* Etsy badge */
.image-overlay{
  position:absolute;
  inset:0;
  background: rgba(26,26,26,0.0);
  transition: background 140ms ease;
}

.etsy{
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(26,26,26,0.72);
  color: rgba(248,243,236,0.95);
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

@media (hover:hover){
  .image-card:hover .image-overlay{ background: rgba(26,26,26,0.08); }
  .image-card:hover .etsy{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover:none){
  .etsy{
    opacity: 1;
    transform: none;
  }
}

/* “View full archive” pill link */
.link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: rgba(26,26,26,0.78);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(44,44,44,0.14);
  background: rgba(255,255,255,0.35);
}
.link:hover{ transform: translateY(-1px); transition: 140ms ease; }

/* =========================
   SCRIPT SECTION
   ========================= */
.script{
  padding: 30px 0 10px;
}

.script .thesis{
  font-size: 22px;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
  line-height: 1.25;
  font-family: Fraunces, serif;
  font-weight: 600;
}

.script p{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 15px;
}

/* =========================
   COMMUNITY + JOIN
   (fixes the bottom clutter)
   ========================= */
.community{
  padding: 30px 0 34px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 920px){
  .community{ grid-template-columns: 1fr; }
}

.block{
  padding: 18px;
}

.block h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.2px;
  font-family: Fraunces, serif;
  font-weight: 600;
}

.block p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
}

/* =========================
   FOOTER
   ========================= */
footer{
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

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

.footer-links{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.footer-links a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(44,44,44,0.12);
  background: rgba(255,255,255,0.25);
  color: rgba(26,26,26,0.72);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior:auto; }
}

/* =========================
   OVERRIDES: ONE COLUMN, ONE WIDTH
   ========================= */

/* 1) Make the entire site use ONE consistent width */
:root{
  --max: 820px; /* tweak: 760 / 820 / 900 */
}

/* 2) Stop the “left title + right tagline” split */
.section-title{
  display: block !important;
  text-align: left;
  margin: 22px 0 14px;
}

.section-title p{
  margin-top: 6px;
  max-width: none;
}

/* 3) Keep artifacts section itself centered and same width */
.artifact-field{
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* If you still have artifact-item max-width, let it fill the column */
.artifact-item{
  max-width: 100%;
}

/* 4) Remove duplicate nav clutter (keep TOP nav only) */
.footer-links{ display: none !important; }

/* Optional: reduce extra CTA noise below */
.community .link{ display: none !important; }   /* hides “Follow the living archive” */

/* Keep only one hero button (the black one) */
.hero-actions .btn:not(.primary){
  display: none !important;
}

