:root {
  --saffron: #d9801a;
  --saffron-deep: #a85c0f;
  --ink: #241a12;
  --ink-soft: #4a3f34;
  --paper: #faf6ef;
  --paper-card: #ffffff;
  --line: #e7ddcd;
  --link: #9a5a12;
  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece3d6;
    --ink-soft: #bcae9c;
    --paper: #16120d;
    --paper-card: #211a12;
    --line: #3a2f22;
    --link: #e0a24e;
  }

  /* Black line-art logos would vanish on the dark paper — flip them to light. */
  header .logo,
  footer .foot-logo {
    filter: invert(1) brightness(1.9);
  }

  footer .foot-logo {
    opacity: 0.75;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

/* Visible keyboard-focus ring for accessibility */
a:focus-visible,
.skip-link:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip-to-content link — hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: 50%;
  top: -3rem;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  background: var(--saffron);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  z-index: 10;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Honorific styling to match the official ISKCON sites (Founder-Acharya) */
.acharya {
  font-style: italic;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Masthead ---- */
header {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
  border-bottom: 3px double var(--saffron);
}

header .logo {
  width: 118px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

header h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: 0.3px;
}

header .tagline {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin: 0;
}

/* ---- Portrait ---- */
.portrait {
  margin: 2.5rem auto 1rem;
  text-align: center;
}

.portrait img {
  max-width: 100%;
  width: 440px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.portrait figcaption {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* ---- Content ---- */
main {
  padding: 1rem 0 3rem;
}

.lede {
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
  max-width: 620px;
  margin: 1.5rem auto 2.5rem;
  color: var(--ink);
}

section {
  margin: 2.5rem 0;
}

h2 {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--saffron-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ---- Resource lists ---- */
.resources {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resources li {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.resources .icon {
  flex: 0 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--saffron);
  border-radius: 4px;
  padding: 0.3rem 0.4rem;
  margin-top: 0.25rem;
  min-width: 42px;
  text-align: center;
}

.resources .icon.video {
  background: var(--saffron-deep);
}

.resources .meta {
  flex: 1 1 auto;
}

.resources .meta a {
  font-weight: 500;
  font-size: 1.12rem;
  display: inline-block;
  padding: 0.15rem 0;
  min-height: 44px;
  line-height: 1.5;
}

.resources .meta p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.subhead {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

section ol {
  padding-left: 1.5rem;
}

.placeholder {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

footer .foot-logo {
  width: 64px;
  opacity: 0.85;
  margin-bottom: 1rem;
}

footer a {
  color: var(--link);
}

footer .publisher {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* ---- Related official resources ---- */
.related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.related li {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}

.related a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  min-height: 44px;
  line-height: 1.4;
}

.related p {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.2rem 0 0;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--saffron-deep);
  border: 1px solid var(--saffron);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin: 2rem auto 0;
}
/* ---- Contact form ---- */
.contact-form {
  margin-top: 1.5rem;
}
.contact-form .field {
  margin: 0 0 1rem;
}
.contact-form label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
}
.contact-form fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem 0;
}
.contact-form legend {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0 0.4rem;
}
.contact-form button {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #fff;
  background: var(--saffron-deep);
  border: 0;
  border-radius: 4px;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  cursor: pointer;
}
.contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.contact-form .field-error {
  display: block;
  color: #b3261e;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
}
.form-status {
  font-family: "Inter", sans-serif;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--paper-card);
}
.form-status.ok {
  border-color: #2e7d32;
}
.form-status.err {
  border-color: #b3261e;
}
/* Honeypot: off-screen rather than display:none, so bots still "see" it */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
