﻿/* Stay Sober Coffee: shared styles */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #F8F3E8;
  font-family: 'Manrope', sans-serif;
  color: #1B1712;
}
a { text-decoration: none; }
img { display: block; }

/* ---------- Theme swap (home only) ---------- */
body[data-theme="light"] .theme-dark { display: none; }
body[data-theme="dark"]  .theme-light { display: none; }

/* ---------- Image placeholders ---------- */
.img-slot {
  background: #EFE6D2;
  border: 1px dashed rgba(27,23,18,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #A9987A;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 12px;
}
.theme-dark .img-slot { background: #F8F3E8; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #F8F3E8;
  border-bottom: 1px solid rgba(27,23,18,0.14);
  width: 100%;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 84px; display: flex; align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand-name {
  font-family: 'Bodoni Moda', Georgia, serif; font-weight: 600;
  font-size: 15px; letter-spacing: 0.10em; color: #1B1712; white-space: nowrap;
}
.brand-name span { color: #C9A03C; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 14px; font-weight: 600; color: #1B1712;
  padding-bottom: 5px; border-bottom: 1.5px solid transparent;
}
.nav-link:hover { color: #C9A03C; }
.nav-link.active { color: #C9A03C; border-bottom-color: #C9A03C; }

.subscribe {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: #F8F3E8; background: #1B1712; padding: 12px 24px; border-radius: 2px;
}
.subscribe:hover { background: #C9A03C; color: #1B1712; }

.sponsor {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: #1B1712; background: #C9A03C; padding: 12px 24px; border-radius: 2px;
}
.sponsor:hover { background: #DBB03A; }

/* Theme toggle (home) */
.theme-toggle {
  display: flex; align-items: center; background: #F8F3E8;
  border-radius: 999px; padding: 3px; border: 1px solid rgba(27,23,18,0.12);
}
.theme-toggle button {
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.03em; border: none; border-radius: 999px;
  padding: 7px 12px; cursor: pointer; background: transparent; color: #8A7C64;
}
.theme-toggle button.active { background: #1B1712; color: #F8F3E8; }
body[data-theme="light"] .theme-toggle button.tt-light { background: #C9A03C; color: #1B1712; }
body[data-theme="dark"]  .theme-toggle button.tt-dark  { background: #1B1712; color: #F8F3E8; }
body[data-theme="light"] .theme-toggle button.tt-dark  { background: transparent; color: #8A7C64; }
body[data-theme="dark"]  .theme-toggle button.tt-light { background: transparent; color: #8A7C64; }

/* Hamburger + menu panel (visible at all sizes) */
.hamburger {
  display: flex; background: none; border: none; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: flex-end;
}
.hamburger span { width: 26px; height: 2px; background: #1B1712; display: block; }
.hamburger span:last-child { width: 18px; }
.mobile-panel { display: none; background: #F8F3E8; border-top: 1px solid rgba(27,23,18,0.14); padding: 8px 24px 28px; flex-direction: column; gap: 4px; }
.mobile-panel.open { display: flex; }
.mobile-panel a {
  font-size: 16px; font-weight: 600; color: #1B1712;
  padding: 14px 0; border-bottom: 1px solid rgba(27,23,18,0.1);
}
.mobile-panel .subscribe { margin-top: 16px; text-align: center; padding: 14px 24px; border-bottom: none; color: #F8F3E8; }
.mobile-panel .subscribe:hover { color: #1B1712; }
.mobile-panel .sponsor { margin-top: 10px; text-align: center; padding: 14px 24px; border-bottom: none; color: #1B1712; }

@media (max-width: 859px) {
  .nav-links, .nav-right .subscribe, .nav-right .sponsor { display: none; }
  .hamburger { display: flex; flex-shrink: 0; }
  .nav-inner { padding: 0 16px; gap: 8px; }
  .nav-right { gap: 10px; flex-shrink: 0; }
  .brand { min-width: 0; }
  .brand img { height: 30px; }
  .brand-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .theme-toggle { flex-shrink: 0; }
  .theme-toggle button { font-size: 9px; padding: 6px 9px; }
}

/* ---------- Footer ---------- */
.footer { background: #1B1712; width: 100%; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 72px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 600; font-size: 16px; letter-spacing: 0.10em; color: #F8F3E8; }
.footer-brand span span { color: #C9A03C; }
.footer-tag { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 20px; color: #C9BBA0; margin: 0 0 18px; max-width: 280px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #7A6E5A; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a, .footer-col div { font-size: 14px; color: #D9D0BE; line-height: 1.5; }
.footer-col a:hover { color: #DBB03A; }
.footer-ig { font-size: 13px; font-weight: 600; color: #DBB03A; letter-spacing: 0.03em; }
.footer-ig:hover { color: #F8F3E8; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input {
  flex: 1; min-width: 0; background: transparent; border: none;
  border-bottom: 1px solid rgba(248,243,232,0.3); color: #F8F3E8; font-size: 14px; padding: 8px 2px; outline: none;
  font-family: inherit;
}
.newsletter-row input::placeholder { color: rgba(248,243,232,0.4); }
.newsletter-row button { background: #C9A03C; border: none; color: #1B1712; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; padding: 0 18px; border-radius: 2px; cursor: pointer; font-family: inherit; }
.newsletter-row button:hover { background: #DBB03A; }
.footer-note { margin-top: 56px; font-size: 12px; line-height: 1.6; color: #8A7C64; text-align: center; }
.footer-legal { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(248,243,232,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal span { font-size: 12px; color: #6B6152; }

@media (max-width: 859px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
