/* =========================================================

   Khodiyar Maa — book website stylesheet

   Palette drawn from the Mata ni Pachedi tradition described

   in the book: maroon-red (earth), black, white (purity),

   with saffron and temple gold as accents.

   ========================================================= */

 

/* Self-hosted Gujarati fallback (Noto Sans Gujarati, SIL Open Font License).

   The Google Fonts link in each page loads Noto Serif Gujarati first;

   this local copy keeps Gujarati readable if Google Fonts is blocked. */

@font-face {

  font-family: "Noto Sans Gujarati Local";

  src: url("../fonts/NotoSansGujarati-Regular.ttf") format("truetype");

  font-weight: 400; font-style: normal; font-display: swap;

  unicode-range: U+0A80-0AFF, U+200C-200D, U+25CC;

}

@font-face {

  font-family: "Noto Sans Gujarati Local";

  src: url("../fonts/NotoSansGujarati-Bold.ttf") format("truetype");

  font-weight: 700; font-style: normal; font-display: swap;

  unicode-range: U+0A80-0AFF, U+200C-200D, U+25CC;

}

 

:root {

  --maroon: #6b1414;

  --maroon-deep: #3f0b0b;

  --saffron: #d7802a;

  --saffron-soft: #f2c58d;

  --gold: #b8892f;

  --cream: #faf4e8;

  --parchment: #f3e8d3;

  --ink: #221812;

  --muted: #6c5a4b;

  --line: #e2d3b8;

  --white: #ffffff;

  --radius: 14px;

  --shadow: 0 10px 30px rgba(63, 11, 11, 0.12);

  --display: "Cormorant Garamond", "Noto Serif Gujarati", "Noto Sans Gujarati Local", Georgia, "Times New Roman", serif;

  --body: "Source Serif 4", "Noto Serif Gujarati", "Noto Sans Gujarati Local", Georgia, "Times New Roman", serif;

  --gu: "Noto Serif Gujarati", "Noto Sans Gujarati Local", "Shruti", "Noto Sans Gujarati", serif;

  --max: 1160px;

}

 

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {

  margin: 0;

  font-family: var(--body);

  font-size: 1.075rem;

  line-height: 1.7;

  color: var(--ink);

  background: var(--cream);

  -webkit-font-smoothing: antialiased;

}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon); text-underline-offset: 3px; }

a:hover { color: var(--saffron); }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

 

.gu, [lang="gu"] { font-family: var(--gu); line-height: 1.9; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--maroon); color: #fff; padding: .6rem 1rem; z-index: 100; }

.skip-link:focus { left: 1rem; top: 1rem; }

 

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

 

h1, h2, h3, h4 { font-family: var(--display); color: var(--maroon-deep); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }

h1 { font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: .02em; }

h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

h3 { font-size: 1.55rem; }

p { margin: 0 0 1.1em; }

.eyebrow { font-family: var(--body); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--saffron); font-weight: 700; margin-bottom: .8rem; display: block; }

.lead { font-size: 1.2rem; color: var(--muted); }

 

/* ---------- Header / navigation ---------- */

.site-header {

  position: sticky; top: 0; z-index: 50;

  background: rgba(250, 244, 232, .94);

  backdrop-filter: blur(8px);

  border-bottom: 1px solid var(--line);

}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--maroon-deep); }

.brand img { width: 34px; height: 34px; }

.brand-text { font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1; }

.brand-text small { display: block; font-family: var(--gu); font-size: .78rem; font-weight: 400; color: var(--muted); margin-top: .2rem; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }

.nav-links a { text-decoration: none; color: var(--ink); font-size: .98rem; }

.nav-links a[aria-current="page"] { color: var(--maroon); font-weight: 700; }

.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; cursor: pointer; color: var(--maroon-deep); }

.nav-toggle svg { width: 24px; height: 24px; display: block; }

 

/* ---------- Buttons ---------- */

.btn {

  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;

  padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--body);

  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;

  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;

}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--maroon); color: #fff; }

.btn-primary:hover { background: var(--maroon-deep); color: #fff; }

.btn-saffron { background: var(--saffron); color: #fff; }

.btn-saffron:hover { background: #b9661a; color: #fff; }

.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }

.btn-ghost:hover { background: var(--maroon); color: #fff; }

.btn-light { background: #fff; color: var(--maroon-deep); }

.btn-small { padding: .55rem 1.05rem; font-size: .92rem; }

.btn[data-placeholder="true"] { position: relative; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

 

/* ---------- Hero ---------- */

.hero {

  position: relative; overflow: hidden;

  background:

    radial-gradient(circle at 80% 20%, rgba(215, 128, 42, .25), transparent 45%),

    linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 60%, #8a2a17 100%);

  color: #fff;

}

.hero::after {

  content: ""; position: absolute; inset: auto 0 0 0; height: 14px;

  background: repeating-linear-gradient(90deg, var(--saffron) 0 18px, var(--gold) 18px 36px, #fff 36px 40px);

  opacity: .85;

}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 4.5rem 0 5rem; }

.hero h1 { color: #fff; margin-bottom: .2em; }

.hero .invocation { font-family: var(--gu); font-size: 1.35rem; color: var(--saffron-soft); margin-bottom: 1rem; display: block; }

.hero .subtitle { display: block; font-weight: normal; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: #fbe7cd; margin-bottom: .6rem; }

.hero .tagline { color: #f3dcc4; font-size: 1.08rem; max-width: 34em; }

.hero .byline { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: #fff; margin: 1.4rem 0 1.8rem; }

.launch-note { display: inline-block; margin-top: 1.6rem; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .93rem; color: #fbe7cd; }

.hero-art { position: relative; justify-self: center; }

.hero-art img { width: min(420px, 100%); border-radius: 220px 220px 18px 18px; border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px rgba(0,0,0,.35); }

.hero-art figcaption { font-size: .78rem; color: #f3dcc4; text-align: center; margin-top: .8rem; max-width: 420px; }

 

/* ---------- Sections ---------- */

section { padding: 5rem 0; }

.section-alt { background: var(--parchment); }

.section-dark { background: var(--maroon-deep); color: #f6e7d2; }

.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.divider { width: 90px; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--gold)); margin: 1rem auto 0; border-radius: 3px; }

 

.quote-band { text-align: center; padding: 4rem 0; }

.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-style: italic; color: var(--maroon-deep); line-height: 1.35; }

.quote-band cite { display: block; margin-top: 1rem; font-family: var(--body); font-style: normal; font-size: .95rem; color: var(--muted); }

 

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

.split.reverse > :first-child { order: 2; }

.framed { margin: 0; }

.framed img { border-radius: var(--radius); box-shadow: var(--shadow); }

.framed figcaption, figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .65rem; line-height: 1.5; }

 

/* Parts of the book */

.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }

.part { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: 0 4px 14px rgba(63,11,11,.05); }

.part .num { font-family: var(--display); color: var(--saffron); font-size: 1.1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.part h3 { font-size: 1.4rem; margin: .3rem 0 .7rem; }

.part ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; color: var(--muted); }

.part li { margin-bottom: .3rem; }

 

/* Legend feature */

.legend-feature .excerpt { font-family: var(--display); font-size: 1.45rem; line-height: 1.5; color: var(--maroon-deep); border-left: 4px solid var(--saffron); padding-left: 1.2rem; margin: 1.4rem 0; }

 

/* Gallery */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery figcaption { padding: .8rem 1rem 1rem; margin: 0; }

 

/* Buy section */

.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.buy-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }

.section-dark .buy-card h3 { color: var(--maroon-deep); margin-bottom: .3rem; }

.section-dark .buy-card .fineprint { color: var(--muted); }

.section-dark a:not(.btn) { color: var(--saffron-soft); }

.section-dark .store-list a { color: var(--ink); }

.section-dark .store-list a:hover { color: var(--maroon); }

.buy-card .format { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }

.store-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }

.store-list a { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, background .2s; }

.store-list a:hover { border-color: var(--saffron); background: #fff8ef; color: var(--maroon); }

.store-list a span { font-size: .82rem; color: var(--muted); font-weight: 400; }

.buy-card.direct { border: 2px solid var(--saffron); }

.badge { display: inline-block; background: var(--saffron); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; margin-bottom: .8rem; font-weight: 700; align-self: flex-start; }

.price { font-family: var(--display); font-size: 2rem; color: var(--maroon-deep); margin: .3rem 0 1rem; }

.fineprint { font-size: .82rem; color: var(--muted); }

.section-dark .fineprint { color: #e3c9a8; }

.placeholder-flag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #8a5a00; background: #fff1cc; border: 1px dashed #d4a017; padding: .1rem .45rem; border-radius: 6px; margin-left: .35rem; vertical-align: middle; }

 

/* Sampler */

.sampler { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; background: #fff; border-radius: 22px; padding: 3rem; box-shadow: var(--shadow); border: 1px solid var(--line); }

.embed-slot { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 1.6rem; background: #fffaf1; text-align: center; }

.embed-slot p { font-size: .92rem; color: var(--muted); }

 

/* Authors */

.authors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.author { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }

.author .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid var(--saffron-soft); }

 

/* Calendar */

.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.cal-item { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.4rem; background: rgba(255,255,255,.04); }

.cal-item h3 { font-size: 1.3rem; margin-bottom: .3rem; }

.cal-item .when { color: var(--saffron-soft); font-size: .9rem; font-weight: 700; display: block; margin-bottom: .5rem; }

.cal-item p { font-size: .93rem; margin: 0; }

 

/* Gujarati edition teaser */

.gu-teaser { text-align: center; }

.gu-teaser .gu-big { font-family: var(--gu); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon); display: block; margin-bottom: .5rem; }

 

/* Press kit */

.page-hero { background: linear-gradient(135deg, var(--maroon-deep), var(--maroon)); color: #fbe7cd; padding: 4rem 0 3.5rem; }

.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); }

.facts { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(63,11,11,.06); }

.facts th, .facts td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .98rem; }

.facts th { width: 34%; color: var(--maroon-deep); font-weight: 700; background: #fffaf1; }

.cover-mock { position: relative; aspect-ratio: 2 / 3; width: min(320px, 100%); border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.3); background: var(--maroon) url("../img/cover-background-placeholder.jpg") center / cover; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 1.6rem 1.4rem 1.4rem; }

.cover-mock .gu { color: var(--saffron-soft); font-size: 1rem; }

.cover-mock .t { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: .08em; line-height: 1.05; margin: .6rem 0; }

.cover-mock .s { font-family: var(--display); font-style: italic; font-size: .9rem; line-height: 1.3; color: #fbe7cd; max-width: 15em; }

.cover-mock .a { margin-top: auto; letter-spacing: .3em; font-size: .78rem; }

.cover-mock .ribbon { position: absolute; top: 14px; right: -38px; transform: rotate(35deg); background: #ffd56a; color: #4a2c00; font-size: .66rem; font-weight: 800; letter-spacing: .1em; padding: .3rem 3rem; }

.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }

.downloads a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }

.downloads a:hover { border-color: var(--saffron); }

.downloads span { color: var(--muted); font-size: .85rem; }

.map-figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }

 

/* Credits table */

.credits { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }

.credits th, .credits td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }

.credits th { background: var(--parchment); color: var(--maroon-deep); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(63,11,11,.06); }

.status-ok { color: #23663a; font-weight: 700; }

.status-flag { color: #8a5a00; font-weight: 700; }

 

/* Contact */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }

.contact-card h3 { font-size: 1.35rem; }

 

/* Footer */

.site-footer { background: #1d0606; color: #d9c3a6; padding: 3.5rem 0 2rem; font-size: .92rem; }

.site-footer a { color: #f2c58d; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }

.site-footer h4 { color: #fff; font-size: 1.25rem; }

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .84rem; }

.footer-gu { font-family: var(--gu); color: var(--saffron-soft); font-size: 1.1rem; }

 

/* Responsive */

@media (max-width: 960px) {

  .hero-grid, .split, .sampler { grid-template-columns: 1fr; }

  .split.reverse > :first-child { order: 0; }

  .hero-grid { padding: 3.2rem 0 4rem; text-align: center; }

  .hero .tagline { margin-inline: auto; }

  .hero .btn-row { justify-content: center; }

  .buy-grid, .gallery, .contact-grid { grid-template-columns: 1fr 1fr; }

  .calendar { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .sampler { padding: 2rem; }

}

@media (max-width: 720px) {

  body { font-size: 1.02rem; }

  section { padding: 3.6rem 0; }

  .nav-toggle { display: block; }

  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; padding: .5rem 1.25rem 1rem; }

  .nav-links.open { display: flex; }

  .nav-links li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }

  .nav-links .btn { margin-top: .8rem; }

  .buy-grid, .gallery, .contact-grid, .authors, .calendar, .footer-grid { grid-template-columns: 1fr; }

  .facts th { width: 40%; }

}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media print { .site-header, .nav-toggle, .site-footer { display: none; } body { background: #fff; } }

 