/* /assets/css/components.css */
/* Components: header/nav/footer */

.site-header {
  background: linear-gradient(to bottom, var(--paper), var(--paper-2));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}
.brand-link:hover,
.brand-link:focus {
  text-decoration: none;
}
.brand-logo {
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
}

.brand-text { 
  display: grid; 
  gap: 4px; 
}

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
  color: var(--oak);
  font-weight: 950;
}

.brand-tagline {
  font-size: 12.5px;
  margin-top: -4px;
  margin-left:3px;
  letter-spacing: 0.2px;
}

/* keeps the brand block feeling like one unit */
.brand-link {
  align-items: center;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  position: relative; /* anchors the mobile dropdown */
}

.nav-toggle {
  display: none; /* shown only under 700px */
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: inline-block;
  font-variant: small-caps;
  padding: 6px 8px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.4px;
}

.nav-menu a:hover {
  background: #4b3621;
  text-decoration: none;
  color:#f5f0e6;
}

/* Footer */
.site-footer {
  background: linear-gradient(to top, var(--paper), var(--paper-2));
  padding-top: var(--space-6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
}

.footer-title {
  font-family: var(--serif);
  margin: 0 0 var(--space-2);
  font-weight: 650;
}

.footer-text { opacity: 0.9; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--rule);
}

/* Responsive: hamburger at 1000px */
@media (max-width: 1000px) {
  .header-inner {
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) 0;
	.nav {
  align-self: center;
  margin-top: 4px;
}
  }

  .brand-logo {
  width: 86px;
  height: 86px;
}

  .brand-name {
    font-size: 22px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);   /* sits below the header/nav area */
    z-index: 1000;

    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    background: var(--paper); /* solid, not see-through */
    opacity: 1;

    border: 1px solid rgba(75, 54, 33, 0.28);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);

    padding: 12px;
    min-width: 240px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    background: transparent;
  }

  .nav-menu a:hover {
    background: #4b3621;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: var(--space-5) 0;
  }
}
/* Responsive: tagline at 600px */
@media (max-width: 600px) {

  .brand-tagline {
    display: none; /* tidy mobile header */
  }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(245, 240, 230, 0.95);
  border: 1px solid rgba(75, 54, 33, 0.35);
  color: var(--oak);

  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.4px;

  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,0.15);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.back-to-top:hover {
  background: rgba(75, 54, 33, 0.08);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* slightly smaller on mobile */
@media (max-width: 700px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    padding: 9px 12px;
  }
}
/* Notice strip (daily updates / site messages) */
.site-notice {
  background: linear-gradient(
    to bottom,
    var(--oak),
    var(--leather-2)
  );
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 240, 230, 0.25);
}

.site-notice p {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.2px;
}

.site-notice a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.site-notice a:hover {
  opacity: 0.9;
}
