/* ==========================================================================
   Aanyor Publications: shared stylesheet
   Quiet, literary design. Warm ivory, near-black text, fine grey rules,
   antique gold used sparingly. Fonts are bundled in /assets/fonts.
   ========================================================================== */

/* ---- Fonts (self-hosted; Cormorant Garamond and EB Garamond, SIL OFL) ---- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Devanāgarī and Bengali (Noto Serif, SIL OFL) for Sanskrit and Bengali verses */
@font-face {
  font-family: "Noto Serif Devanagari";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/noto-serif-devanagari-devanagari-400-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: "Noto Serif Devanagari";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/noto-serif-devanagari-devanagari-500-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: "Noto Serif Bengali";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/noto-serif-bengali-bengali-400-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Noto Serif Bengali";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/noto-serif-bengali-bengali-500-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

/* ---- Design tokens ---- */
:root {
  --bg: #faf8f3;          /* warm ivory */
  --ink: #1b1a18;         /* near-black */
  --muted: #57534b;       /* secondary text */
  --rule: #d8d3c8;        /* fine grey rules */
  --gold: #7c5f1f;        /* antique gold, text-safe on ivory */
  --gold-soft: #b79a54;   /* decorative rules only */

  --display: "Cormorant Garamond", Cormorant, Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, "Palatino Linotype", Georgia, serif;

  --bn: "Noto Serif Bengali", "EB Garamond", "Kohinoor Bangla", "Nirmala UI", Vrinda, serif;
  --dev: "Noto Serif Devanagari", "EB Garamond", "Kohinoor Devanagari", "Nirmala UI", Mangal, serif;

  --wrap: 68rem;
  --measure: 38rem;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.2rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---- Headings ---- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

p { margin: 0 0 1.1em; }

.measure { max-width: var(--measure); }
.center { text-align: center; }
.center.measure { margin-left: auto; margin-right: auto; }

.lead {
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ---- Header and navigation ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand { display: block; width: 15rem; flex: none; }
.brand img { width: 100%; mix-blend-mode: multiply; }

.main-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}
.main-nav a,
.footer-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.footer-nav a:hover { border-bottom-color: var(--gold-soft); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* On the home page the large logo sits in the hero, so the header shows
   only the navigation. */
.home .brand { display: none; }
.home .header-inner { justify-content: center; }

/* ---- Hero (home) ---- */
.hero {
  text-align: center;
  padding: 3.5rem 0 4rem;
}
.hero-logo { margin: 0 auto 2.5rem; width: min(100%, 17rem); }
.hero-logo img { width: 100%; mix-blend-mode: multiply; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.hero-sub {
  margin: 1rem 0 0;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--muted);
}
.ornament {
  width: 3.5rem;
  height: 0;
  border: 0;
  border-top: 1px solid var(--gold-soft);
  margin: 2rem auto;
}
.hero .measure { margin-left: auto; margin-right: auto; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}
.actions.left { justify-content: flex-start; }

/* ---- Buttons and links ---- */
.button {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
}
.button:hover { background: transparent; color: var(--ink); }

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: var(--gold); color: var(--gold); }

.email-address a {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ---- Page heads (inner pages) ---- */
.page-head { padding: 4rem 0 3rem; }
.page-head .lead { margin: 1.25rem 0 1.1em; }
.page-head .measure { margin-top: 1.5rem; }

/* ---- Sections ---- */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}
.section > .wrap > h2 { margin-bottom: 1.5rem; }
.section .lead { margin-bottom: 1.25rem; }
.section-intro { color: var(--muted); font-style: italic; }

/* Text panels: simple ruled columns, not cards */
.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.panel { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.panel h3 { margin-bottom: 0.75rem; }
.panel p { margin: 0; }

.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0;
}

/* Email block */
.email-block {
  max-width: var(--measure);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0 2rem;
  margin: 2rem 0 1rem;
}
.email-label {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.email-address {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* ---- The name, in three scripts ---- */
.bn, .dev { font-style: normal; font-weight: 400; line-height: 1.9; }
.bn { font-family: var(--bn); }
.dev { font-family: var(--dev); }

.name-forms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.name-form .script {
  display: block;
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.5rem);
  line-height: 1.3;
}
.name-form .script.latin { font-family: var(--display); font-weight: 500; }
.name-form .label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Verses ---- */
.verse {
  max-width: var(--measure);
  margin: 2rem 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid var(--gold-soft);
}
.verse .script-line { margin: 0; font-size: 1.4rem; }
.verse .iast {
  margin: 0.75rem 0 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}
.verse .iast:first-child { margin-top: 0; font-size: 1.2rem; color: var(--ink); }
.verse .iast.main { font-size: 1.2rem; color: var(--ink); }
.verse .ref {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.in-our-words {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.sources {
  margin-top: 2.5rem;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.footer-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
}
.footer-tagline {
  margin: 0.25rem 0 1.5rem;
  font-style: italic;
  color: var(--muted);
}
.footer-nav ul { justify-content: center; }
.copyright {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- Wider screens ---- */
@media (min-width: 48em) {
  body { font-size: 1.25rem; }

  .brand { width: 17rem; }

  .hero { padding: 4.5rem 0 5rem; }
  .hero-logo { width: min(100%, 40rem); }

  .panels { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .name-forms { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .name-form + .name-form { border-left: 1px solid var(--rule); }
  .panels.two { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }

  .section { padding: 4.5rem 0; }
  .page-head { padding: 5rem 0 3.5rem; }
}

/* ---- Narrow screens ---- */
@media (max-width: 47.99em) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .brand { width: 13rem; }
  .main-nav ul { justify-content: center; gap: 0.25rem 1.5rem; }
  .actions { flex-direction: column; }
  .actions .button { text-align: center; }
}

@media print {
  .skip-link, .main-nav, .actions { display: none; }
  body { background: #fff; }
}
