/* ---------- Arcwillow Design Tokens ---------- */
:root{
  --arcwillow-black: #3d302c;   /* warm black "ink" */
  --arcwillow-gray:  #aaa59a;   /* signature gray */
  --arcwillow-accent:#5c6023;   /* olive button */
}

/* ---------- Custom Fonts ---------- */
@font-face {
  font-family: "Magick Journal";
  src: url("../fonts/magickjournal-webfont.woff2") format("woff2"),
       url("../fonts/magickjournal-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--arcwillow-black);
  background: #fff;
  line-height: 1.5;
  font-family: "Averia Serif Libre", serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #0ea5e9; outline-offset: 2px; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-synthesis: none;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Layout Helpers ---------- */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.stack { display: grid; gap: var(--gap, 1rem); }
.center { display: grid; place-items: center; }
.spacer { height: 24px; }

/* ---------- Title Banner (Logo) ---------- */
.title-banner { border: none !important; box-shadow: none !important; }
.title-banner::after { content: none !important; }
.title-banner {
  display: grid; place-items: center;
  padding-top: 18px; padding-bottom: 6px;
  background: #fff;
}
.title-banner .logo-wrap { display: grid; place-items: center; }
.title-banner img { display: block; height: auto; width: clamp(180px, 50vw, 360px); }
@media (min-width: 768px)  { .title-banner img { width: clamp(260px, 24vw, 520px); } }
@media (min-width: 1280px) { .title-banner img { width: clamp(300px, 20vw, 600px); } }

/* ---------- Nav (base) ---------- */
nav {
  background: #fff;
  color: var(--arcwillow-gray);
  margin: 0; border: 0;
}
.menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
}
.menu li { padding: 0; margin: 0; display: flex; align-items: center; }
.menu li:not(:last-child)::after {
  content: "•"; display: inline-block; width: 2.25ch; text-align: center;
  color: currentColor; line-height: 1; transform: translateY(-0.04em);
}
.menu li a { display: inline-block; padding: 0.6rem 0; text-decoration: none; font-size: 1.05rem; }

/* ---------- Nav typography (Averia) ---------- */
nav .menu,
nav .menu li,
nav .menu li a {
  font-family: "Averia Serif Libre", serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Per-nav borders */
/* Top nav: line below */
nav[aria-label="Primary"]{
  border-top: 0;
  border-bottom: 2px solid var(--arcwillow-gray);
  margin-block-start: 0;
  margin-block-end: 16px;
}
/* Bottom nav: line above */
.footer-nav{
  border-top: 2px solid var(--arcwillow-gray);
  border-bottom: 0;
  margin-block-start: 16px;
  margin-block-end: 0;
}

/* ---------- HERO ---------- */
.hero img{
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ---------- Header Image ---------- */
.about-header img,
.about-header-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Events Header Image ---------- */
.events-header img,
.events-header-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 10px; /* optional, for space before the heading */
}

/* ---------- Artist Tagline ---------- */
.artist-tagline{
  text-align: center;
  margin-block: 14px 28px;
  color: var(--arcwillow-gray);
  font-family: "Averia Serif Libre", serif;
  font-style: italic; font-weight: 300; letter-spacing: 0.02em;
}
.artist-tagline p{ margin: 0; font-size: clamp(0.95rem, 1.1vw, 1.15rem); }

/* ---------- Divider Icon ---------- */
.divider-icon{ display: flex; justify-content: center; padding-block: 18px; }
.divider-icon img{ width: 24px; height: auto; opacity: 0.9; }

/* ---------- Section Headings / Full-width line ---------- */
h2 { font-size: clamp(1.25rem, 1.2rem + 1vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.8vw, 1.4rem); color: #222; }
.section { padding: 28px 0; }

.section h2{
  border: 0 !important; display: block; position: relative;
  text-align: center; color: var(--arcwillow-gray);
  margin: 0 auto; padding-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section h2::after{
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100vw; height: 2px; background: var(--arcwillow-gray);
}
/* tighten space to gallery */
.section h2 + .gallery,
.section h2 + .gallery-large { margin-top: -8px; }

/* ---------- Optional Line-Free Heading ---------- */
.subheading {
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;  /* match h2 kerning */
  color: var(--arcwillow-gray);
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  text-align: center;
  margin: 0 auto 18px;
  padding-bottom: 0;       /* no underline space */
  border: none;            /* explicitly kill line */
  position: relative;
}

/* --- Line-free h2 variant for pages like About / Events / Contact --- */
.section h2.subheading {
  /* keep Magick Journal + caps + gray, but no underline space */
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;                /* extra kerning */
  color: var(--arcwillow-gray);
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  text-align: center;
  margin: 0 auto 18px;
  padding-bottom: 0;                      /* don't reserve space for a line */
}

/* kill the automatic underline line for this variant */
.section h2.subheading::after {
  content: none !important;
}

/* ---------- Prose Text (storybook body copy) ---------- */
.prose {
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  color: var(--arcwillow-gray);
  font-weight: 400;
  font-style: normal;
  text-transform: none;                 /* mixed case */
  font-size: clamp(1.25rem, 1.4vw + 0.4rem, 1.9rem);;  /* bigger, “extravagant” */
  line-height: 1.8;
  letter-spacing: 0.01em;
  max-width: 68ch;
  margin-inline: auto;
  text-align: justify;
  -webkit-hyphens: auto;
          hyphens: auto;
}

/* strong book-style indent on every paragraph */
.prose p {
  margin: 0 0 1.2em 0;      /* space between paragraphs */
  text-indent: 2.5em;       /* the actual indent — bigger if you want */
  white-space: normal;
}

/* if you ever want the first paragraph unindented, add .no-first-indent to .prose */
.prose.no-first-indent p:first-of-type {
  text-indent: 0;
}

/* tighten spacing after story sections */
.section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
}
.prose {
  margin-bottom: 0;      /* removes any extra bottom margin */
}
.prose p:last-child {
  margin-bottom: 0;      /* cancels the usual paragraph space */
}

/* ---------- Galleries ---------- */
.card { position: relative; overflow: hidden; border-radius: 10px;
  background: #f6f6f6; box-shadow: 0 1px 0 rgba(0,0,0,0.05) inset; }
.thumb { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: center; display: block; }

/* Large Prints: 1 col on phones; 2 on desktop */
.gallery-large { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 1024px){ .gallery-large { grid-template-columns: repeat(2, 1fr); } }

/* Small Prints: 4 wide normally, 2 wide under 1024px */
.gallery{ display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px){ .gallery{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox-backdrop[hidden] { display: none !important; }
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(61,48,44,0.86);
  display: grid; place-items: center;
  z-index: 9999; padding: 24px;
}
.lightbox-dialog { position: relative; max-width: 94vw; max-height: 90vh; display: grid; place-items: center; outline: none; }
.lightbox-img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; appearance: none; border: 0;
  background: rgba(255,255,255,0.1); color: #fff;
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  font-size: 1.6rem; line-height: 1;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease; backdrop-filter: blur(2px);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2); transform: translateY(-1px);
}
.lightbox-close { top: -8px; right: -8px; font-size: 1.8rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 8px 12px; }
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }
@media (max-width: 640px){ .lightbox-prev, .lightbox-next { font-size: 2.2rem; padding: 10px 14px; } }

/* ---------- Events Subheadings ---------- */
.events-subhead {
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--arcwillow-gray);

  /* alignment + spacing tweaks */
  text-align: left;          /* align left instead of center */
  margin: 18px auto 6px;     /* top: breathing room from header, bottom: closer to list */
  max-width: 820px;          /* aligns with event cards below */
  padding-left: 4px;         /* tiny nudge so text lines up with card edge */
}

/* Add extra separation before the "Past" heading */
.events-subhead:nth-of-type(2) {
  margin-top: 40px; /* space above “Past” */
}

.events-list{
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto 14px;
}

.event-card{
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f6f6;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05) inset;
}

.event-date{
  color: var(--arcwillow-black);
  font-family: "Averia Serif Libre", serif;
  font-weight: 700;
}

.event-title{
  color: var(--arcwillow-black);
  font-family: "Magick Journal", "Averia Serif Libre", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-where{
  color: var(--arcwillow-gray);
  font-family: "Averia Serif Libre", serif;
  font-style: italic;
}

.event-link{
  font-family: "Averia Serif Libre", serif;
  text-transform: lowercase;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--arcwillow-accent);
  color: #fff;
  text-decoration: none;
}
.event-link:hover{ filter: brightness(1.1); }

.events-empty{
  text-align: center;
  color: var(--arcwillow-gray);
  font-style: italic;
  margin: 8px 0 20px;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  font-family: "Averia Serif Libre", serif;
  color: var(--arcwillow-black);
}

.contact-form label {
  font-style: italic;
  color: var(--arcwillow-gray);
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Averia Serif Libre", serif;
  letter-spacing: 0.02em;
  color: #333;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--arcwillow-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Averia Serif Libre", serif;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  transition: filter 0.2s ease;
}

.contact-form button:hover {
  filter: brightness(1.15);
}

/* ---------- Newsletter ---------- */
.newsletter { padding: 32px 0; }
.newsletter h3 { text-align: center; margin-bottom: 12px; }
.form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }

label.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Limit width ONLY for the newsletter email input */
.newsletter .form input[type="email"]{
  width: min(420px, 72vw);
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  font-family: "Averia Serif Libre", serif;
  font-style: normal; font-weight: 400;
  text-transform: lowercase; letter-spacing: 0.02em;
}

.newsletter .form input[type="email"]::placeholder{
  color: var(--arcwillow-gray);
  font-family: "Averia Serif Libre", serif;
  font-style: italic; text-transform: lowercase; letter-spacing: 0.02em;
}

/* Center the Kit success message + use Arcwillow black */
.formkit-alert-success {
  text-align: center !important;
  color: var(--arcwillow-black) !important;
  font-family: "Averia Serif Libre", serif;
  font-style: normal;
}

/* Buttons (global) */
button{
  padding: 12px 16px; border: 0; border-radius: 10px;
  font-weight: 400; cursor: pointer;
  background: var(--arcwillow-accent); color: #fff; transition: filter 0.2s ease;
  font-family: "Averia Serif Libre", serif; font-style: normal; text-transform: lowercase; letter-spacing: 0.03em;
}
button:hover{ filter: brightness(1.15); }

/* ---------- Footer ---------- */
footer { color: #444; }
.footer-copy{
  text-align: center; padding: 22px 0 40px; font-size: 0.95rem;
  color: var(--arcwillow-gray);
  font-family: "Averia Serif Libre", serif;
  font-style: italic; font-weight: 300; letter-spacing: 0.02em;
}

/* === Contact page: force the contact email field full width === */
.page-contact .contact-form input[type="email"] {
  width: 100% !important;
  max-width: none;
  display: block;
  box-sizing: border-box;
}

/* (Optional) If you also have the newsletter block on Contact, stack it full-width only there */
.page-contact .newsletter .form {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 14px auto 0;
  justify-items: stretch;
}
.page-contact .newsletter .form input[type="email"],
.page-contact .newsletter .form button {
  width: 100%;
}
/* ===== MOBILE-ONLY TWEAKS ===== */
@media (max-width: 480px) {
  /* Nav: one line, centered, sensible spacing, readable text */
  nav .menu,
  .footer-nav .menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;                 /* tighter gaps */
    padding: 0 8px;            /* keeps off the edges */
    width: 100%;
    box-sizing: border-box;
  }

  nav .menu li,
  .footer-nav .menu li { flex: 0 0 auto; }

  nav .menu a,
  .footer-nav .menu a {
    white-space: nowrap;       /* keep on one line */
    padding: 6px 4px;
    font-size: clamp(13.5px, 3.6vw, 16px);
    line-height: 1.2;
    letter-spacing: 0;
    word-spacing: 0;
  }

  /* If you had decorative separators added via CSS (dots/dashes), hide them on mobile */
  nav .menu li::before,
  nav .menu li::after,
  .footer-nav .menu li::before,
  .footer-nav .menu li::after {
    content: none !important;
  }

  /* Newsletter heading: center, keep single line, default to black */
  .newsletter h3 {
    text-align: center;
    white-space: nowrap;
    margin: 0 auto;
    color: var(--arcwillow-black, #000);
    font-size: clamp(16px, 5vw, 22px);
    line-height: 1.2;
    max-width: calc(100vw - 16px); /* keeps it off the edges */
    padding: 0 8px;
  }
}

/* Extra squeeze for very tiny phones */
@media (max-width: 360px) {
  nav .menu a,
  .footer-nav .menu a {
    font-size: 12.5px;
    padding: 4px 3px;
    letter-spacing: 0;
    word-spacing: 0;
  }
}
/* ===== Override Kit embed colors ===== */
.formkit-form,
.formkit-form .formkit-background {
  background: #fff !important;    /* pure white */
  box-shadow: none !important;    /* remove subtle shadow if present */
  border: none !important;        /* keep it clean */
}

/* Optional: make the field + button visually match Arcwillow style */
.formkit-input {
  background: #fff !important;
  border: 1px solid #ccc !important;
  color: var(--arcwillow-black, #000) !important;
  font-family: "Averia Serif Libre", serif !important;
}

.formkit-submit {
  background: var(--arcwillow-accent, #5c6023) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: "Averia Serif Libre", serif !important;
  text-transform: lowercase !important;
  letter-spacing: 0.03em !important;
}

/* keep in css/style.css */
img.thumb {
  aspect-ratio: 3 / 4; /* match your real ratio */
  width: 100%;
  height: auto;
  display: block;
}