@import url('https://fonts.googleapis.com/css2?family=Sedgwick+Ave&family=Special+Elite&family=Inter:wght@300;400;500&display=swap');


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

  /* ── DARK MODE (default) ── */
  :root,
  [data-theme="dark"] {
    --bg:          #0a0a0a;
    --fg:          #f0ede8;
    --nav-bg:      rgba(10,10,10,0.94);
    --border-col:  #1a1a1a;
    --surface:     #0d0d0d;
    --gray-dark:   #1a1a1a;
    --gray-mid:    #555;
    --gray-light:  #888;
    --accent:      #c8b89a;
    --btn-bg:      #f0ede8;
    --btn-fg:      #0a0a0a;
    --nav-h:       68px;
    --black:       #0a0a0a;
    --white:       #f0ede8;
    --logo-color:  #f0ede8;
  }

  /* ── LIGHT MODE ── */
  [data-theme="light"] {
    --bg:          #fafaf8;
    --fg:          #111111;
    --nav-bg:      rgba(250,250,248,0.94);
    --border-col:  #d8d4cc;
    --surface:     #f0ede8;
    --gray-dark:   #d8d4cc;
    --gray-mid:    #999;
    --gray-light:  #666;
    --accent:      #8a7a60;
    --btn-bg:      #111111;
    --btn-fg:      #fafaf8;
    --black:       #111111;
    --white:       #fafaf8;
    --logo-color:  #111111;
  }

  html { scroll-behavior: smooth; }

  /* smooth transition on theme switch */
  *, *::before, *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
  }

  nav {
    background: var(--nav-bg) !important;
    border-bottom-color: var(--border-col) !important;
  }
  .mobile-menu { background: var(--bg) !important; }
  .mobile-menu a { color: var(--fg) !important; }
  .nav-logo { color: var(--fg) !important; }
  .nav-links a { color: var(--gray-light) !important; }
  .nav-links a:hover { color: var(--fg) !important; }
  .hamburger span { background: var(--fg) !important; }

  .reading-cards, .shop-grid { background: var(--border-col); border-color: var(--border-col); }
  .reading-card, .shop-item { background: var(--bg); }
  .shop-img { background: var(--surface); border-bottom-color: var(--border-col); }
  .email-teaser, .cta-block, .disclaimer { border-color: var(--border-col); }
  .email-row input { background: var(--surface); color: var(--fg); border-color: var(--border-col); }
  .email-row input::placeholder { color: var(--gray-mid); }
  .contact-link { border-bottom-color: var(--border-col); color: var(--fg); }
  .logo-box { background: var(--surface); border-color: var(--border-col); }
  .divider { background: var(--gray-mid); }
  .hero-bg-text { color: var(--fg); opacity: 0.045; }
  .about-pull { color: var(--accent); border-left-color: var(--gray-mid); }
  .hero-tagline { border-left-color: var(--gray-mid); }
  .footer-inner { border-top-color: var(--border-col); }

  .btn-solid {
    background: var(--btn-bg) !important;
    color: var(--btn-fg) !important;
  }
  .btn-outline {
    border-color: var(--fg) !important;
    color: var(--fg) !important;
  }
  .btn-outline:hover {
    background: var(--fg) !important;
    color: var(--bg) !important;
  }

  /* logo box sizing */
  .logo-box { padding: 0; overflow: hidden; }

  /* toggle button */
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--gray-light);
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s;
  }
  .theme-toggle:hover { color: var(--fg); }

  /* ── TYPOGRAPHY ── */
  .display {
    font-family: 'Sedgwick Ave', cursive;
    line-height: 1;
    color: var(--fg);
  }
  .serif { font-family: 'Special Elite', cursive; }
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 1rem;
  }
  .divider {
    width: 40px;
    height: 1px;
    background: var(--gray-mid);
    margin: 2rem 0;
  }

  /* ── LAYOUT ── */
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2.5rem;
  }
  section {
    padding: 7rem 0;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-col);
    background: rgba(10,10,10,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-logo {
    font-family: 'Sedgwick Ave', cursive;
    font-size: 1.35rem;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
  }
  .nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
  }
  .nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.25s;
  }
  .nav-links a:hover { color: var(--white); }

  /* hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 201;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* mobile drawer */
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 199;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .mobile-menu.open { display: flex; opacity: 1; }
  .mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Special Elite', cursive;
    font-size: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .mobile-menu a:hover { color: var(--accent); }

  /* ── HERO ── */
  #home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
  }
  .hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2.5rem 5rem;
    position: relative;
    z-index: 2;
  }
  .hero-bg-text {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Sedgwick Ave', cursive;
    font-size: clamp(8rem, 22vw, 18rem);
    line-height: 1;
    color: var(--white);
    opacity: 0.045;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
  }
  .logo-box {
    width: 180px;
    height: 180px;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.2rem;
    background: transparent;
  }
  .hero-title {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
  }
  .hero-sub {
    font-family: 'Special Elite', cursive;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--accent);
    margin-bottom: 1.2rem;
    max-width: 480px;
  }
  .hero-tagline {
    font-size: 0.88rem;
    color: var(--gray-light);
    font-style: italic;
    max-width: 420px;
    line-height: 1.85;
    border-left: 1px solid var(--gray-mid);
    padding-left: 1.2rem;
    margin-bottom: 3rem;
  }
  .btn-outline {
    display: inline-block;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 2.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    transition: background 0.25s, color 0.25s;
  }
  .btn-outline:hover { background: var(--white); color: var(--black); }
  .btn-solid {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    padding: 0.8rem 2.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.25s;
  }
  .btn-solid:hover { background: var(--accent); }

  /* ── ABOUT ── */
  #about .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  .about-body p {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.95;
    margin-bottom: 1.2rem;
  }
  .about-pull {
    font-family: 'Special Elite', cursive;
    font-size: 1.05rem;
    color: var(--accent);
    border-left: 1px solid var(--gray-mid);
    padding-left: 1.4rem;
    line-height: 1.85;
    margin-top: 2rem;
  }
  .email-teaser {
    border: 1px solid var(--gray-dark);
    padding: 1.8rem;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
  .teaser-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 0.5rem;
  }
  .teaser-title {
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.6rem;
  }
  .teaser-note {
    font-size: 0.8rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }
  .email-row { display: flex; }
  .email-row input {
    flex: 1;
    min-width: 0;
    background: #111;
    border: 1px solid var(--border-col);
    border-right: none;
    color: var(--white);
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    outline: none;
  }
  .email-row input::placeholder { color: #444; }
  .email-row input:focus { border-color: #444; }
  .email-row button {
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 0.65rem 1.1rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s;
  }
  .email-row button:hover { background: var(--accent); }

  /* ── READINGS ── */
  .reading-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-col);
    border: 1px solid var(--border-col);
    margin: 2.5rem 0;
  }
  .reading-card {
    background: var(--bg);
    padding: 2rem 1.6rem;
  }
  .card-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 0.6rem;
  }
  .card-title {
    font-family: 'Special Elite', cursive;
    font-size: 1.05rem;
    color: var(--fg);
    margin-bottom: 0.8rem;
  }
  .card-desc {
    font-size: 0.82rem;
    color: var(--gray-light);
    line-height: 1.75;
  }
  .cta-block {
    border: 1px solid var(--border-col);
    padding: 2.2rem;
    max-width: 580px;
  }
  .cta-block p {
    font-size: 0.88rem;
    color: var(--gray-light);
    line-height: 1.85;
    margin-bottom: 1.6rem;
  }
  .donation-note {
    margin-top: 1.1rem;
    font-size: 0.75rem;
    color: var(--gray-mid);
    font-style: italic;
  }

  /* ── SHOP ── */
  .readings-intro, .shop-intro {
    font-size: 0.92rem;
    color: var(--gray-light);
    max-width: 580px;
    line-height: 1.9;
    margin-bottom: 2.5rem;
  }
  .shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-col);
    border: 1px solid var(--border-col);
    margin-bottom: 1.2rem;
  }
  .shop-item { background: var(--bg); }
  .shop-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-col);
    overflow: hidden;
  }
  .shop-info { padding: 1rem 1rem 1.2rem; }
  .shop-name {
    font-family: 'Special Elite', cursive;
    font-size: 0.88rem;
    color: var(--fg);
    margin-bottom: 0.3rem;
  }
  .shop-price { font-size: 0.78rem; color: var(--gray-mid); }
  .shop-badge {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border-col);
    color: var(--gray-mid);
    padding: 2px 6px;
    margin-top: 0.5rem;
  }
  .shop-note {
    font-size: 0.78rem;
    color: var(--gray-mid);
    font-style: italic;
  }

  /* ── CONTACT ── */
  .contact-intro {
    font-size: 0.92rem;
    color: var(--gray-light);
    max-width: 560px;
    line-height: 1.9;
    margin-bottom: 2rem;
  }
  .contact-links { max-width: 440px; }
  .contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-col);
    padding: 1rem 0;
    text-decoration: none;
    color: var(--fg);
    transition: color 0.25s, border-color 0.25s;
  }
  .contact-link:hover { color: var(--accent); }
  .cl-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-mid);
    flex-shrink: 0;
    width: 120px;
  }
  .cl-value { font-size: 0.88rem; flex: 1; }
  .cl-arrow { color: var(--gray-mid); font-size: 0.85rem; margin-left: 1rem; }
  .contact-note {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--gray-mid);
    font-style: italic;
    max-width: 460px;
    line-height: 1.75;
  }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border-col);
    padding: 2rem 0;
  }
  .footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-logo {
    font-family: 'Sedgwick Ave', cursive;
    font-size: 1.1rem;
    color: var(--gray-mid);
  }
  .footer-giving { font-size: 0.72rem; color: var(--gray-mid); font-style: italic; }
  .footer-copy { font-size: 0.7rem; color: var(--gray-mid); }

  /* ── SCROLL REVEAL ── */
  /* reveal — simple fade in on load, no scroll trigger */
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* ── SECTION HEADING ── */
  .section-h {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 0.5rem;
  }

  /* ── TABLET (≤900px) ── */
  @media (max-width: 900px) {
    .reading-cards { grid-template-columns: 1fr 1fr; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    #about .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .email-teaser { position: static; }
    .hero-title { font-size: clamp(2.8rem, 8vw, 5rem); }
    .cta-block { max-width: 100%; }
  }

  /* ── MOBILE (≤640px) ── */
  @media (max-width: 640px) {
    :root { --nav-h: 60px; }
    .container, .hero-inner, .nav-inner, .footer-inner { padding-left: 1.2rem; padding-right: 1.2rem; }
    section { padding: 5rem 1.2rem; }
    nav { padding: 0 1.2rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-bg-text { display: none; }
    .logo-box { width: 110px; height: 110px; }
    #nfrLogo { width: 110px !important; height: 110px !important; }
    .reading-cards { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .cta-block { padding: 1.2rem; max-width: 100%; }
    .btn-solid, .btn-outline { width: 100%; text-align: center; display: block; }
    .contact-links { max-width: 100%; }
    .cl-label { width: 90px; }
    .email-teaser { padding: 1.2rem; }
    .email-row { flex-direction: column; }
    .email-row input { border-right: 1px solid var(--border-col); border-bottom: none; }
    .email-row button { width: 100%; padding: 0.65rem; }
    .about-pull { font-size: 0.95rem; }
    .hero-tagline { font-size: 0.82rem; }
    .section-h { font-size: clamp(1.8rem, 7vw, 3rem); }
  }

  /* ── SMALL MOBILE (≤380px) ── */
  @media (max-width: 380px) {
    .hero-title { font-size: 2.4rem; }
    .nav-logo { font-size: 1.1rem; }
    .shop-grid { grid-template-columns: 1fr; }
  }

  /* ── REDUCED MOTION ── */
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ── ACCESSIBILITY ── */

  /* skip to main content link for keyboard/screen reader users */
  .skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--fg);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
  }
  .skip-link:focus { top: 1rem; }

  /* strong focus indicators for keyboard navigation */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  /* ensure touch targets are at least 44x44px for motor impairments */
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .btn-solid, .btn-outline, .btn-submit, .payment-link, .donation-link { min-height: 44px; }
  .hamburger { min-width: 44px; min-height: 44px; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
  input[type="checkbox"] { min-width: 20px; min-height: 20px; }

  /* font scaling — use rem so browser font size preferences are respected */
  html { font-size: 100%; }

  /* high contrast mode support */
  @media (forced-colors: active) {
    .btn-solid, .btn-submit { border: 2px solid ButtonText; }
    .btn-outline { border: 2px solid ButtonText; }
  }

  /* ensure links are distinguishable beyond color alone */
  .contact-link { text-decoration: underline; text-underline-offset: 3px; }
  .contact-link:hover { text-decoration: none; }

  /* error state for required fields */
  input:invalid:not(:placeholder-shown),
  textarea:invalid:not(:placeholder-shown),
  select:invalid:not(:placeholder-shown) {
    border-color: #e34948;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
