/* ============================================================
   Shagbolt.com — Main Stylesheet
   Design: Vintage concert program / musical manuscript
   Palette: Burgundy, brass, warm cream, charcoal ink
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cormorant+SC:wght@400;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Custom properties ── */
:root {
  --burgundy:       #6b1e2e;
  --burgundy-dark:  #4a1320;
  --burgundy-light: #8c2a3e;
  --brass:          #b5883a;
  --brass-light:    #d4a85c;
  --brass-pale:     #f0e0b8;
  --cream:          #faf6ee;
  --cream-dark:     #f0e8d8;
  --ink:            #1e1a16;
  --ink-light:      #3d3530;
  --ink-muted:      #6b5f54;
  --rule:           rgba(181,136,58,0.35);
  --rule-strong:    rgba(107,30,46,0.4);

  --font-display:   'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --font-body:      'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-ui:        'Cormorant Garamond', Georgia, serif;

  --max-w:          960px;
  --nav-h:          70px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--brass); }

/* ── Ornamental rule ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--brass);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

/* ── Navigation ── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--burgundy-dark);
  border-bottom: 2px solid var(--brass);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

#site-nav .nav-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  /* If logo is on dark bg, we can use a CSS filter to invert/lighten */
  filter: brightness(1.8) saturate(0.6);
}

#site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

#site-nav .nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--brass-pale);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}

#site-nav .nav-links a:hover,
#site-nav .nav-links a.active {
  color: #fff;
  background: rgba(181,136,58,0.2);
}

/* Mobile hamburger */
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass);
  color: var(--brass-pale);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
  border-radius: 2px;
}

/* ── Page header ── */
.page-header {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 59px,
    rgba(181,136,58,0.08) 59px,
    rgba(181,136,58,0.08) 60px
  );
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-light);
  position: relative;
}

.page-header .subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(240,224,184,0.8);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  position: relative;
}

/* ── Main content wrapper ── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ── Section headings within content ── */
.content-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.content-wrap p {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

/* ── Hero (home page) ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(30,26,22,0.92) 40%, transparent);
  padding: 4rem 3rem 3rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-light);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cream-dark);
  max-width: 560px;
  line-height: 1.7;
}

.hero-body em {
  color: var(--brass-light);
  font-style: italic;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  border-radius: 1px;
}

.hero-cta:hover {
  background: var(--brass);
  color: var(--ink);
}

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  border: 3px solid var(--brass);
  box-shadow: 6px 6px 0 var(--burgundy);
  border-radius: 2px;
}

.about-text p + p { margin-top: 1rem; }

/* ── Arrangements table ── */
.arrangements-intro { margin-bottom: 2rem; }

.arr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.arr-table thead tr {
  background: var(--burgundy);
  color: var(--brass-pale);
}

.arr-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  text-align: left;
}

.arr-table tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}

.arr-table tbody tr:nth-child(even) {
  background: rgba(181,136,58,0.06);
}

.arr-table tbody tr:hover {
  background: rgba(107,30,46,0.07);
}

.arr-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

.arr-table tbody td:first-child {
  font-style: italic;
  color: var(--ink);
}

.arr-table tbody td:nth-child(2) {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.arr-table tbody td:nth-child(3) {
  color: var(--burgundy);
  font-size: 0.92rem;
}

.arr-contact {
  background: var(--cream-dark);
  border-left: 4px solid var(--brass);
  padding: 1.25rem 1.5rem;
  border-radius: 0 2px 2px 0;
  font-size: 0.98rem;
  color: var(--ink-light);
}

/* ── Blog page ── */
.blog-placeholder {
  text-align: center;
  padding: 3rem 2rem;
}

.blog-placeholder .sackbut-def {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.blog-placeholder .sackbut-sub {
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.blog-placeholder .coming-soon {
  display: inline-block;
  border: 1px solid var(--rule-strong);
  color: var(--ink-muted);
  font-style: italic;
  padding: 0.6rem 1.5rem;
  border-radius: 1px;
  font-size: 0.95rem;
}

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 0.75rem;
}

.contact-info p {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(107,30,46,0.25);
  border-radius: 2px;
  padding: 0.55rem 0.8rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(181,136,58,0.15);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.btn-submit {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--burgundy);
  border: none;
  border-radius: 2px;
  padding: 0.65rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--burgundy-light); }
.btn-submit:disabled { background: #999; cursor: not-allowed; }

.form-msg {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-style: italic;
}
.form-msg.success {
  display: block;
  background: #eaf3de;
  color: #3b6d11;
  border-left: 4px solid #639922;
}
.form-msg.error {
  display: block;
  background: #fcebeb;
  color: #a32d2d;
  border-left: 4px solid #e24b4a;
}

/* ── Footer ── */
#site-footer {
  background: var(--burgundy-dark);
  border-top: 2px solid var(--brass);
  color: rgba(240,224,184,0.6);
  text-align: center;
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Blog index ── */
.post-featured {
  border-left: 4px solid var(--brass);
  padding: 0 0 0 1.5rem;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.post-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.post-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(107,30,46,0.08);
  border: 1px solid rgba(107,30,46,0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 1px;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-title a { color: var(--burgundy); text-decoration: none; transition: color 0.15s; }
.post-title a:hover { color: var(--brass); }

.post-excerpt {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.post-read-more {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  transition: color 0.15s;
}
.post-read-more:hover { color: var(--burgundy); }

.posts-section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.posts-list { margin-bottom: 2.5rem; }

.post-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-item:first-of-type { border-top: 1px solid var(--rule); }

.post-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.post-item-title a { color: var(--burgundy); }
.post-item-title a:hover { color: var(--brass); }

.post-item-excerpt {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.archive-list { list-style: none; padding: 0; }
.archive-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ── Individual blog post ── */
.post-body { max-width: 680px; margin: 0 auto; }

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--burgundy);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.06em;
}

.post-body p { margin-bottom: 1.1rem; font-size: 1.05rem; }

.post-body blockquote {
  border-left: 3px solid var(--brass);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: italic;
  color: var(--ink-light);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-nav a { color: var(--brass); }
.post-nav a:hover { color: var(--burgundy); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }

/* ── Responsive ── */
@media (max-width: 700px) {
  #site-nav .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--burgundy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 2px solid var(--brass);
    gap: 0;
  }
  #site-nav .nav-links.open { display: flex; }
  #site-nav .nav-links a { padding: 0.75rem 1rem; }
  #nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero { min-height: 400px; }
  .hero-overlay { padding: 3rem 1.5rem 2rem; }

  .content-wrap { padding: 2rem 1.25rem 3rem; }
  .page-header { padding: 2.5rem 1.5rem 2rem; }

  .arr-table thead th:nth-child(2),
  .arr-table tbody td:nth-child(2) { display: none; }
}
