/* layout/header.css — Top strip, header, navigation bar and brand.
   Part of the split style.css. Keep the load order in includes/layout.php. */

body.site {
  font-size: 17px;
  line-height: 1.55;
}

body.site h1,
body.site h2,
body.site h3,
body.site h4 { line-height: 1.2; }

body.site h1,
body.site h2 { font-family: var(--display); font-weight: 700; letter-spacing: .04em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(48, 18, 12, .08);
}

.topstrip {
  color: #f6edd4;
  border-bottom: 1px solid rgba(232, 197, 106, .55);
  background: linear-gradient(90deg, #310e14, #581822 42%, #671f2b);
}

.topstrip-inner {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.top-brand {
  text-decoration: none;
  color: #e7c56a;
  line-height: 1.15;
}

.top-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-brand small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: .01em;
  text-transform: none;
  color: #f3e0b8;
}

.top-mid, .top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-mid { justify-content: center; }

.top-actions { justify-content: flex-end; }

.top-date {
  margin-left: 4px;
  font-size: 15px;
  color: #f8f1e4;
}

.top-now {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4c56a;
  border-radius: 6px;
  padding: 6px 14px;
  color: #f6e7c2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.top-btn:hover { background: rgba(228, 197, 106, .16); color: #fff; }

.nav-bar {
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  border-bottom: 1px solid rgba(103, 31, 43, .12);
}

.site-header .nav-bar { display: block; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.site-header .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand strong { display: block; font-family: var(--sans); letter-spacing: .12em; font-size: 12px; }

.site-header .brand strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #581822;
}

.brand small { display: block; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; opacity: .75; }

.site-header .brand small {
  font-size: 12px;
  letter-spacing: .14em;
  color: #a07840;
  opacity: 1;
}

.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; font-size: 13px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Cinzel", Palatino, "Palatino Linotype", serif;
  color: var(--gold-2);
  background: radial-gradient(circle at 40% 30%, rgba(231,211,163,.25), transparent 60%);
}

.site-nav { align-items: center; gap: 20px; }

.site-nav a {
  text-decoration: none;
  font-size: 16px;
  letter-spacing: .01em;
  opacity: 1;
  padding: 4px 0;
  color: #3d2418;
}

.site-header .site-nav a.is-on,
.site-header .site-nav a:hover { color: var(--maroon); font-weight: 700; }

.site-nav a.is-on, .site-nav a:hover { opacity: 1; }

.nav-login {
  border: 1px solid var(--gold);
  padding: 4px 10px !important;
  border-radius: 999px;
  color: var(--gold-2);
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger { display: none; cursor: pointer; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 700; color: #581822; }

body.site .section { padding: 44px 0 52px; }

body.site .section-head h2,
body.site .block-title { font-size: 36px; line-height: 1.2; }

@media (max-width: 760px) {
    .nav-bar { position: relative; }
    .nav-burger { display: inline-flex; }
    #nav-toggle:checked ~ .site-nav { display: flex; }
}

@media (max-width: 980px) {
    .topstrip-inner {
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: center;
      gap: 10px;
    }
    .top-actions { justify-content: center; }
}

@media (max-width: 760px) {
    body.site .section-head h2,
    body.site .block-title { font-size: 28px; }
    .site-header .site-nav a { padding: 8px 0; }
}
