/* ===== Base ===== */
* { box-sizing: border-box; }

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

:root {
  --bsb-strip-h: 64px;
  --bsb-logo-h: 150px;
  --bsb-logo-overhang: calc((var(--bsb-logo-h) - var(--bsb-strip-h)) / 2);
  --bsb-top-gap: 6px;
}
@media (min-width: 700px) {
  :root {
    --bsb-strip-h: 80px;
    --bsb-logo-h: 200px;
    --bsb-top-gap: 10px;
  }
}

body {
  background: #e5e5e5;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  color: #222;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a { color: #8a7b2e; text-decoration: underline; }
a:hover { color: #b89845; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: #000; font-weight: normal; line-height: 1.25; }
h1 { font-size: 28px; margin: 12px 0 16px; }
h2 { font-size: 22px; margin: 24px 0 10px; }
h3 { font-size: 18px; margin: 20px 0 8px; }

p { margin: 0 0 12px; }

/* ===== Layout container ===== */
#main {
  background: #fff;
  margin: 0 auto;
  max-width: 800px;
  padding: 0;
  border: 1px solid #ccc;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

#main2 {
  padding: 16px 20px 24px;
}

/* ===== Header (slim gold strip + badge-style logo) ===== */
.header {
  position: relative;
  background: #b89845;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--bsb-strip-h);
  padding: 0 16px;
  margin-top: calc(var(--bsb-logo-overhang) + var(--bsb-top-gap));
  margin-bottom: var(--bsb-logo-overhang);
  overflow: visible;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  z-index: 2;
}
.logo a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.25s ease;
  transform-origin: center center;
  will-change: transform;
}
.logo a:hover,
.logo a:focus-visible {
  transform: scale(1.06);
}
.logo img {
  display: block;
  height: var(--bsb-logo-h);
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

@media (prefers-reduced-motion: reduce) {
  .logo a { transition: none; }
  .logo a:hover,
  .logo a:focus-visible { transform: none; }
}

/* ===== Hamburger button ===== */
.hamburger {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 60;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Open state - turn into X */
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Slide-in menu ===== */
.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  border-left: 1px solid #ccc;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  padding: 64px 0 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 50;
}
body.menu-open .site-menu {
  transform: translateX(0);
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-menu li { border-bottom: 1px solid #eee; }
.site-menu a {
  display: block;
  padding: 12px 20px;
  color: #222;
  text-decoration: none;
  background: #fafafa;
  min-height: 44px;
  line-height: 1.3;
}
.site-menu a:hover,
.site-menu a.here {
  background: #555;
  color: #fff;
}
.site-menu a.here { font-weight: bold; }

.menu-subtitle {
  margin: 18px 0 6px;
  padding: 0 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7b2e;
  font-weight: bold;
}
.menu-subtitle-sm {
  margin: 14px 0 4px;
  padding: 0 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: bold;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 40;
}
body.menu-open .menu-overlay {
  opacity: 1;
}

/* Prevent background scroll when menu is open */
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .menu-overlay,
  .hamburger span { transition: none; }
}

/* ===== Content helpers ===== */
.img-right { display: block; margin: 8px auto 12px; max-width: 70%; }
.img-left  { display: block; margin: 8px auto 12px; max-width: 70%; }
.img-center { display: block; margin: 8px auto 12px; max-width: 100%; }
.text-center { text-align: center; }

.muted { color: #666; font-size: 14px; }
.subtle-divider { border: 0; border-top: 1px solid #eee; margin: 28px 0; }

/* Hero image picture wrapper: keeps aspect on mobile and floats on desktop */
.brand-figure { margin: 8px auto 12px; text-align: center; }
.brand-figure img { display: inline-block; max-width: 220px; height: auto; }
@media (min-width: 700px) {
  .brand-figure {
    float: right;
    margin: 4px 0 12px 18px;
    text-align: right;
  }
}

.hero-figure { margin: 16px 0; text-align: center; }
.hero-figure img { display: inline-block; max-width: 100%; height: auto; }

/* "Origin" tag under page title */
.origin {
  display: inline-block;
  font-size: 13px;
  color: #555;
  background: #f3ecd6;
  padding: 2px 10px;
  border-radius: 999px;
  margin: 0 0 12px;
}

/* Top-10 list on home */
.top-list { margin: 0; padding: 0; list-style: none; }
.top-list > li {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fafafa;
  border-left: 4px solid #b89845;
  border-radius: 4px;
}
.top-list .rank {
  display: inline-block;
  min-width: 28px;
  font-weight: bold;
  color: #8a7b2e;
}
.top-list h3 { margin: 0 0 4px; font-size: 18px; display: inline; }
.top-list h3 a { color: #222; text-decoration: none; border-bottom: 1px dotted #b89845; }
.top-list h3 a:hover { color: #b89845; }
.top-list p { margin: 6px 0 0; }

.also-notable {
  background: #f9f6ee;
  padding: 14px 16px;
  border-radius: 4px;
  margin: 24px 0;
}
.also-notable h2 { margin-top: 0; font-size: 19px; }

/* Brand page nav buttons (prev/next) */
.brand-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0 8px;
}
.brand-nav a {
  flex: 1;
  padding: 10px 12px;
  background: #f3ecd6;
  color: #222;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.brand-nav a:hover { background: #b89845; color: #000; }
.brand-nav a.next { text-align: right; }

/* Contact form */
.contact-form label {
  display: block;
  margin: 14px 0 4px;
  font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  margin-top: 16px;
  padding: 12px 22px;
  background: #b89845;
  color: #000;
  border: 0;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.contact-form button:hover { background: #8a7b2e; color: #fff; }
.honeypot { position: absolute; left: -9999px; }

/* ===== Footer ===== */
#footer {
  width: 100%;
  margin: 24px auto 32px;
  padding: 12px;
  text-align: center;
  max-width: 800px;
  font-size: 14px;
  color: #444;
}
#footer p { margin: 6px 0; }
#footer a { color: #555; }
#footer .sep { color: #aaa; padding: 0 4px; }

/* ===== Desktop refinements ===== */
@media (min-width: 700px) {
  body { font-size: 16px; }
  #main2 { padding: 18px 28px 28px; }
  h1 { font-size: 30px; }

  .img-right {
    float: right;
    max-width: 45%;
    margin: 4px 0 12px 18px;
  }
  .img-left {
    float: left;
    max-width: 45%;
    margin: 4px 18px 12px 0;
  }
  /* Clear floats after main2 sections */
  #main2::after { content: ""; display: table; clear: both; }
}
