@font-face {
  font-family: "Eina01";
  src: url("../fonts/Eina/Eina01-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eina01";
  src: url("../fonts/Eina/Eina01-RegularItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Eina01";
  src: url("../fonts/Eina/Eina01-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eina01";
  src: url("../fonts/Eina/Eina01-SemiboldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Eina01";
  src: url("../fonts/Eina/Eina01-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eina01";
  src: url("../fonts/Eina/Eina01-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --brand: #957445;
  --brand-strong: #7a5f35;
  --ink: #0f1115;
  --ink-weak: rgba(0, 0, 0, 0.7);
  --surface: #ffffff;
  --surface-weak: #f7f5ef;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --pill: 999px;
  --transition: 0.18s ease;
  --font-ui: "Eina01", "Montserrat", sans-serif;
  --font-body: "Lora", "Times New Roman", serif;
  --nav-gap: 22px;
}

/* Header / Nav */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.08); }
.nav { position: relative; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--nav-gap); padding: 10px 16px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 36px; width: auto; display: block; }
.menu-left, .menu-right { display: flex; gap: var(--nav-gap); align-items: center; flex-wrap: nowrap; }
.menu-left { flex: 1; justify-content: flex-start; }
.menu-right { flex: 1; justify-content: flex-end; }
/* Center the brand by ensuring left/right menus take available space but brand stays in middle if possible, or just standard flex between */
.nav { justify-content: space-between; }
.menu-left, .menu-right { flex: 1; }
.brand { margin: 0 10px; }

/* Revert to simple flex row with specific alignment preferences */
.nav { display: flex; align-items: center; justify-content: space-between; }
.menu-left { justify-content: flex-start; }
.menu-right { justify-content: flex-end; }
.brand { margin: 0; position: absolute; left: 50%; transform: translateX(-50%); }

.menu { display: none; gap: 18px; align-items: center; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.menu a:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.menu a:visited { color: var(--ink); }
.menu-left a, .menu-right a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.menu-left a:hover, .menu-right a:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.menu-left a:visited, .menu-right a:visited { color: var(--ink); }
.menu .cta, .menu-right .cta { background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.menu .cta:hover, .menu-right .cta:hover { background: #000; color: #fff; }
.login-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.login-link img { height: 24px; width: auto; display: block; max-height: 28px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; color: inherit; cursor: pointer;
  padding: 8px 10px; border-radius: 6px;
  font-family: inherit; font-size: inherit; font-weight: 500; text-decoration: none;
}
.dropdown-toggle .caret { font-size: 10px; }
.dropdown:hover .dropdown-toggle { background: rgba(0,0,0,0.06); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: rgba(255,255,255,0.98); border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 8px; box-shadow: 0 14px 34px rgba(0,0,0,0.12); min-width: 170px; z-index: 30; }
.dropdown-menu a { display: block; padding: 8px 10px; color: inherit; text-decoration: none; border-radius: 6px; }
.dropdown-menu a:hover { background: rgba(0,0,0,0.06); }
.dropdown.open > .dropdown-menu { display: block; }

/* Glimmer effect */
.nav .cta.glimmer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px rgba(149, 116, 69, 0.32);
  background: linear-gradient(120deg, #a57a3d 0%, #bca16f 50%, #a57a3d 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.nav .cta.glimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 10% 20%, rgba(255,230,180,0.5), transparent 40%), linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255, 230, 180, 0.5) 52%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%);
  animation: donateGlimmer 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}
@keyframes donateGlimmer {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(115%); }
  100% { transform: translateX(115%); }
}

/* Hamburger */
.hamburger { display: none; position: absolute; right: 16px; background: transparent; border: 1px solid rgba(0,0,0,0.25); color: #111; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative; /* Reset absolute to keep it in flow */
    right: auto;
    margin-left: auto; /* Push to the right */
  }
  .menu-left, .menu-right { display: none; }
  .menu { display: none; position: absolute; right: 16px; top: 100%; background: rgba(255,255,255,0.98); border: 1px solid rgba(0,0,0,0.15); border-radius: 12px; padding: 10px; flex-direction: column; width: calc(100% - 32px); }
  .menu a { padding: 12px; }
  .menu.open { display: flex; }
  
  /* Brand Centered Absolutely on Mobile */
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    top: 50%; /* Ensure vertical centering too */
    transform: translate(-50%, -50%); /* Center on both axes */
  }
  /* Ensure Nav has height since children might not prop it enough if brand is absolute */
  .nav { min-height: 60px; }
}

/* Footer */
footer { padding: 72px 16px 40px; color: var(--ink-weak); background: rgba(0,0,0,0.03); border-top: 1px solid rgba(0,0,0,0.06); }
.footer-top { max-width: 1100px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.footer-col h4 { margin-bottom: 8px; color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { max-width: 1100px; margin: 0 auto; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; font-size: 13px; }
.footer-social { display:flex; gap:10px; }
.footer-social img { height:22px; width:auto; display:block; }
.muted { color: var(--ink-weak); font-size: 14px; }

body.font-default {
  --font-ui: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #f9f8f3;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

a:hover {
  color: #000;
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
}

.section {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}

.muted {
  color: var(--ink-weak);
}

.card,
.surface {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 18px;
}

.btn {
  font-family: monospace;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  border: none;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #000;
  color: #fff;
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn.secondary:hover {
  background: #000;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn.ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn1 {
  font-family: monospace;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  border: none;
  background: #515050;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn1:hover {
  transform: translateY(-1px);
  background: #000;
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.06);
  padding: 6px 10px;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--ink);
}

.footer-toggles {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.font-toggle {
  margin-left: auto;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.font-toggle:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn-style-toggle {
  margin-left: 0;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-style-toggle:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.autoplay-toggle {
  margin-left: 0;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.autoplay-toggle:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Legacy buttons override */
body.use-legacy-btns .btn {
  font-family: monospace;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: none;
  letter-spacing: 0;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
body.use-legacy-btns .btn:hover {
  transform: translateY(-1px);
  background: #000;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
}
body.use-legacy-btns .btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
body.use-legacy-btns .btn1 {
  font-family: monospace;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #515050;
  color: #fff;
  letter-spacing: 0;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
body.use-legacy-btns .btn1:hover {
  transform: translateY(-1px);
  background: #000;
  color: #fff;
}

.media-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
}

.media-frame.aspect-16x9::after {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.media-frame.aspect-3x4::after {
  content: "";
  display: block;
  padding-bottom: 133%;
}

.media-frame img,
.media-frame video,
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.pill {
  border-radius: var(--pill);
}

.small {
  font-size: 14px;
  color: var(--ink-weak);
}
