/* ==========================================================================
   Jewells 'n Wood — Kenny Jewell
   Rebuilt as plain static HTML/CSS for Cloudflare Pages.
   ========================================================================== */

:root {
  --black:    #000000;
  --charcoal: #262626;
  --gold:     #f7d57f;
  --olive:    #c6c695;
  --paper:    #fcfcfc;
  --ink:      #000000;
  --rule:     #d8d8d8;

  --font-display: "Oswald", "DIN Neuzeit Grotesk", "Arial Narrow", Arial, sans-serif;
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script:  "Mistral", "Yellowtail", cursive;

  --wrap: 1265px;
  --header-h: 108px;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0 0 0.75em; }
ul { padding-left: 1.25em; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--black); padding: 12px 20px;
  font-family: var(--font-display);
}
.skip-link:focus { left: 0; }

/* --- header / nav --------------------------------------------------------- */
.site-header { background: var(--black); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo { display: block; flex: none; }
.logo img { width: 345px; height: 55px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--olive);
  color: var(--olive);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 44px;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 19px;
  color: var(--olive);
  text-decoration: none;
  white-space: nowrap;
  display: block;
  padding: 6px 0;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-current > a { color: var(--gold); }

/* dropdown */
.site-nav .has-sub { position: relative; }
.site-nav .submenu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  padding: 8px 0;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 40;
}
.site-nav .has-sub:hover .submenu,
.site-nav .has-sub:focus-within .submenu { opacity: 1; visibility: visible; }
.site-nav .submenu a { padding: 8px 20px; font-size: 17px; }

/* --- footer --------------------------------------------------------------- */
.site-footer {
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 34px 0;
}
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 1em; }
.site-footer a { color: inherit; }

/* --- shared bands --------------------------------------------------------- */
.band { position: relative; background: var(--charcoal); }
.band--image { background-size: cover; background-position: center; }
.band--workshop { background-image: url("/images/bg-workshop.jpg"); }
.band--forest   { background-image: url("/images/bg-forest.jpg"); }
.band--contact  { background-image: url("/images/bg-contact.jpg"); }
.band > .wrap { position: relative; z-index: 1; }

/* the forest band carries a pale scrim so the cards read against it */
.band--forest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 232, 232, 0.8);
}
/* the photographic bands carry a dark scrim so light type stays readable */
.band--workshop::before,
.band--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.section-light { background: var(--paper); padding: 64px 0 72px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1.1;
  text-align: center;
  margin: 0;
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 22px;
  min-height: 42px;
  border: 0;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn:hover, .btn:focus-visible { filter: brightness(0.9); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--dark {
  background: var(--charcoal);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 1.5px;
}

/* --- home: hero ----------------------------------------------------------- */
.hero { padding-block: 56px 64px; text-align: center; }
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--paper);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
  max-width: 32ch;
  margin: 0 auto 40px;
}

/* slideshow */
.slideshow { max-width: 660px; margin: 0 auto; }
.slideshow__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.slideshow__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slideshow__stage img.is-active { opacity: 1; }
.slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--paper);
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.slideshow__nav:hover { background: rgba(0, 0, 0, 0.65); }
.slideshow__nav--prev { left: 0; }
.slideshow__nav--next { right: 0; }
.slideshow__counter {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin: 14px 0 26px;
}

/* --- home: intro ---------------------------------------------------------- */
.intro { padding-block: 48px 56px; }
/* the pale scrim needs the darker gold to stay legible */
.intro .script { position: relative; z-index: 1; margin-bottom: 24px; color: #7c6b40; }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: stretch;
  margin-top: 8px;
}
.intro__panel { background: var(--charcoal); padding: 48px 56px; }
.intro__figure {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.intro__name {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--gold);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 6px;
}
.intro__role {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  line-height: 1.3;
  margin: 0 0 24px;
}
.intro__copy {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.8;
  max-width: 52ch;
  margin: 0 0 28px;
}
.intro__actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }
.intro__portrait { width: 100%; }

/* --- page hero (interior pages) ------------------------------------------- */
.page-hero { padding-block: 64px; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--paper);
  font-size: clamp(2.75rem, 7vw, 4.375rem);
  line-height: 1.05;
  margin: 0;
}
.page-hero__title--gold { color: var(--gold); }
.page-hero__sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  color: var(--paper);
  font-size: clamp(1.25rem, 3vw, 1.5625rem);
  letter-spacing: 0.05em;
  margin: 10px 0 0;
}

/* --- galleries index ------------------------------------------------------ */
.gallery-index { padding-block: 40px 72px; }
.gallery-cards {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px 48px;
}
.gallery-card a {
  display: block;
  text-decoration: none;
  color: var(--paper);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-card a:hover img,
.gallery-card a:focus-visible img { transform: scale(1.02); }
.gallery-card span {
  display: block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- photo galleries ------------------------------------------------------ */
.gallery-section { padding: 8px 0 56px; }
.gallery-section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 48px 0 8px;
}
.gallery-section__note {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--charcoal);
  margin: 0 0 28px;
}
.gallery-jump {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--paper);
  margin: 22px 0 0;
}
.gallery-jump strong { font-weight: 500; }
.gallery-jump a { text-underline-offset: 3px; }

/* Justified rows: every item in a row lands on the same height while keeping
   its own aspect ratio. --ar (width / height) is set inline per photo. */
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-grid li {
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * 210px);
  max-width: calc(var(--ar) * 320px);
}
.photo-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e9e9e9;
  cursor: zoom-in;
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.photo-grid button:hover img,
.photo-grid button:focus-visible img { transform: scale(1.04); opacity: 0.9; }

/* --- lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  object-fit: contain;
}
.lightbox__caption {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 17px;
  text-align: center;
  max-width: 60ch;
  margin: 18px 0 0;
  min-height: 1.6em;
}
.lightbox__caption em { display: block; font-size: 15px; opacity: 0.8; }
.lightbox__count {
  color: var(--olive);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-top: 10px;
}
.lightbox__btn {
  position: absolute;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  line-height: 1;
  padding: 12px;
}
.lightbox__btn:hover { color: var(--gold); }
.lightbox__btn--close { top: 12px; right: 16px; font-size: 34px; }
.lightbox__btn--prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__btn--next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 44px; }
body.lightbox-open { overflow: hidden; }

/* --- about ---------------------------------------------------------------- */
.wrap--narrow { max-width: 1000px; }
.about-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; }
.about-body p, .prose p { margin: 0 0 1.2em; line-height: 1.45; }
.about-note { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 56px;
}
.links-grid h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: #7c6b40;
  font-size: clamp(1.5rem, 3vw, 2.1875rem);
  margin: 0 0 0.4em;
}
.links-grid ul { margin: 0; padding-left: 1.2em; }
.links-grid li { margin-bottom: 0.35em; }

/* --- contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
}
.contact-grid > * + * { border-left: 1px solid var(--rule); padding-left: 56px; }
.contact-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 28px;
}
.contact-info p { font-size: 22px; margin: 0 0 0.4em; }
.contact-info strong { font-weight: 700; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 6px 2px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 0; border-bottom-width: 2px; }
.form-submit {
  background: var(--black);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  border: 0;
  border-radius: 100px;
  padding: 10px 34px;
  min-width: 148px;
  cursor: pointer;
}
.form-submit:hover { background: var(--charcoal); }
.form-status { margin-top: 18px; font-size: 16px; min-height: 1.5em; }
.form-status[data-state="error"] { color: #a11; }
.form-note {
  margin-top: 24px;
  font-size: 14px;
  color: #666;
  font-family: Helvetica, Arial, sans-serif;
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --header-h: 88px; }
  .logo img { width: 260px; height: auto; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--black);
    padding: 8px 0 20px;
    z-index: 50;
  }
  .header-inner { position: relative; flex-wrap: wrap; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { padding: 12px 24px; font-size: 20px; }
  .site-nav .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0 0 8px;
    min-width: 0;
  }
  .site-nav .submenu a { padding: 8px 24px 8px 44px; font-size: 18px; }

  .intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .intro__portrait { max-width: 320px; }
  .about-body { grid-template-columns: 1fr; gap: 28px; }
  .about-body img { max-width: 320px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  :root { --header-h: 76px; }
  .wrap { padding: 0 16px; }
  .logo img { width: 190px; }
  .nav-toggle { padding: 6px 11px; font-size: 14px; }
  .intro__panel { padding: 32px 24px; }
  .section-light { padding: 44px 0 52px; }
  .hero { padding-block: 36px 44px; }
  .page-hero { padding-block: 44px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .gallery-cards { gap: 40px 24px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .lightbox { padding: 56px 12px; }
  .lightbox__btn--prev, .lightbox__btn--next { font-size: 32px; padding: 8px; }
  .slideshow__nav { width: 36px; height: 52px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
