/* =========================================================================
   Presswood Antiques — Gilded Age stylesheet
   Palette sampled from the heraldic crest (burnished copper-brown #82421A)
   ========================================================================= */

:root {
  /* Core palette */
  --bg:            #16120F;   /* deep charcoal / near-black */
  --bg-alt:        #1C1712;   /* slightly lifted panel background */
  --bg-card:       #221B15;   /* card / frame fill */
  --ink:           #F2E8D5;   /* warm parchment / ivory text */
  --ink-soft:      #D8C8AC;   /* muted parchment */
  --ink-faint:     #9C8C73;   /* captions, fine print */

  --accent:        #82421A;   /* burnished copper-brown (logo) */
  --accent-hi:     #B5732E;   /* lighter copper highlight (hover) */
  --accent-glow:   rgba(181, 115, 46, 0.45);

  --green:         #33402F;   /* deep hunter green (secondary) */
  --oxblood:       #3A2622;   /* oxblood (secondary) */

  --line:          rgba(130, 66, 26, 0.45);
  --line-soft:     rgba(242, 232, 213, 0.12);

  /* Type */
  --display: "Cinzel", "Times New Roman", serif;
  --body:    "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--bg);
  /* faint damask / linen-style texture woven from the palette — low opacity */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(130, 66, 26, 0.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%2382421a' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M30 0c8 8 8 22 0 30C22 38 22 52 30 60M0 30c8-8 22-8 30 0 8 8 22 8 30 0'/%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.2rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-hi); text-decoration: none; transition: color .25s ease; }
a:hover, a:focus-visible { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .85em 2.2em;
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--ink);
}

.btn-hero {
  background: linear-gradient(180deg, var(--accent), #6c3514);
  border-color: var(--accent-hi);
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.btn-hero:hover, .btn-hero:focus-visible {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #fff;
  box-shadow: 0 0 18px var(--accent-glow);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--accent-hi);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 14, 11, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-crest { width: 42px; height: auto; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand:hover .brand-name { color: var(--accent-hi); }

.nav-menu {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-family: var(--display);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: .14em;
  font-size: 1rem;
  color: var(--ink-soft);
  padding: .35em 0;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-hi);
  transition: width .3s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { width: 100%; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(130, 66, 26, 0.16), transparent 62%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.6), transparent 70%);
  overflow: hidden;
}
.hero::before { /* engraved double-line frame — top starts below the fixed header */
  content: "";
  position: absolute;
  top: calc(var(--header-h) + clamp(8px, 1.5vw, 18px));
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  left: clamp(14px, 3vw, 34px);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(18,14,11,1), inset 0 0 0 5px var(--line-soft);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-crest {
  width: clamp(190px, 34vw, 330px);
  height: auto;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,.6));
  animation: crestFade 1.2s ease both;
}
@keyframes crestFade {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  letter-spacing: .1em;
  margin: 0 0 .4em;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 auto 2rem;
  letter-spacing: .02em;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--accent-hi);
  z-index: 1;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-story       { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
.section-collections { background: var(--bg); }
.section-gallery     { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
.section-visit       { background: var(--bg); }
.section-contact     { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }

.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: .8rem auto 0;
  max-width: 46ch;
}

/* ornamental rule (diamond between two engraved lines) */
.ornament-rule {
  width: min(260px, 70%);
  height: 18px;
  margin: 0 auto;
  position: relative;
}
.ornament-rule::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 3px double var(--line);
}
.ornament-rule::after {
  content: "\2756"; /* ❖ */
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-hi);
  background: var(--bg-alt);
  padding: 0 .5rem;
  font-size: .9rem;
}
.section-collections .ornament-rule::after,
.section-visit .ornament-rule::after { background: var(--bg); }

/* =====================================================================
   OUR STORY
   ===================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 820px) {
  .story-grid { grid-template-columns: 1.25fr 1fr; }
}
.story-text p { margin: 0 0 1.2em; color: var(--ink-soft); }
.story-text .drop-cap::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.6em;
  line-height: .78;
  padding: .06em .12em 0 0;
  color: var(--accent-hi);
  font-weight: 700;
}
.story-placeholder { color: var(--ink-faint); font-size: .95em; }

/* framed portrait + corner ornaments */
.framed { margin: 0; position: relative; }
.framed::before, .framed::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.framed::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.framed::after  { bottom: 38px; right: -8px; border-left: 0; border-top: 0; }

.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(130,66,26,.08) 0 12px, transparent 12px 24px),
    var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  gap: .6rem;
}
.portrait-placeholder { aspect-ratio: 4 / 5; }
.portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--line);
}
.placeholder-mono {
  font-family: var(--display);
  font-size: 3.4rem;
  font-style: italic;
  color: var(--accent);
}
.placeholder-label {
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: .12em;
  font-size: .82rem;
  line-height: 1.5;
}
.framed figcaption {
  margin-top: .9rem;
  text-align: center;
  font-style: italic;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

/* =====================================================================
   COLLECTIONS
   ===================================================================== */
.collections-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.tag-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem 1rem;
}
.tag {
  font-family: var(--display);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: .12em;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--accent);
  padding: .45em 1.15em;
  position: relative;
  background: rgba(130, 66, 26, 0.06);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.tag:hover {
  background: rgba(181, 115, 46, 0.18);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-2px);
}
.collections-closing {
  text-align: center;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
  margin: 2.4rem auto 0;
  max-width: 40ch;
}

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.gallery-item { margin: 0; }
.gallery-trigger {
  display: block;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.gallery-trigger:hover, .gallery-trigger:focus-visible {
  border-color: var(--accent-hi);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-3px);
}
.gallery-trigger img,
.gallery-trigger .img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-item figcaption {
  margin-top: .7rem;
  text-align: center;
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: .1em;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* =====================================================================
   HOURS & VISIT
   ===================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 820px) {
  .visit-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.visit-subhead {
  font-size: 1.5rem;
  letter-spacing: .1em;
  color: var(--accent-hi);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.12rem;
}
.hours-table th, .hours-table td {
  padding: .7em .4em;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.hours-table th {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
}
.hours-table td { text-align: right; color: var(--ink-soft); }
.hours-table td.closed { color: var(--ink-faint); font-style: italic; }

.visit-address {
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}
.visit-note { color: var(--ink-soft); margin-bottom: 1.4rem; }
.visit-note em { color: var(--ink-faint); }

.map-frame {
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--bg-card);
}
.map-frame iframe { display: block; width: 100%; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-list li { margin-bottom: 1rem; }
.contact-label {
  display: block;
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: .14em;
  color: var(--ink-faint);
  font-size: .85rem;
}
.contact-list a { font-size: 1.3rem; color: var(--ink); }
.contact-list a:hover { color: var(--accent-hi); }

.social-row { display: flex; gap: 1rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--accent);
  color: var(--ink-soft);
  transition: all .3s ease;
}
.social-link:hover, .social-link:focus-visible {
  color: #fff;
  border-color: var(--accent-hi);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-2px);
}

/* form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; }
.contact-form label span {
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: .1em;
  font-size: .9rem;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: .7em .9em;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-hi);
  box-shadow: 0 0 0 1px var(--accent-hi);
}
.contact-form .btn-outline { align-self: flex-start; }
.form-note { font-size: .92rem; color: var(--ink-faint); margin: 0; }

/* honeypot — visually & technically hidden from people, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  margin: 0;
}

/* submit status message */
.form-status { margin: 0; font-size: 1.02rem; min-height: 1.2em; }
.form-status:empty { display: none; }
.form-status.sending { color: var(--ink-faint); font-style: italic; }
.form-status.success {
  color: var(--ink);
  border-left: 3px solid var(--accent-hi);
  padding-left: .8em;
}
.form-status.error {
  color: #E7B7A0;
  border-left: 3px solid var(--oxblood);
  padding-left: .8em;
}
button[disabled] { opacity: .6; cursor: progress; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: #100C09;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.footer-crest { width: 64px; height: auto; opacity: .95; }
.footer-name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: .14em;
  color: var(--ink);
  margin: 0;
}
.footer-address { font-style: normal; color: var(--ink-soft); }
.footer-social { justify-content: center; margin: .4rem 0; }
.footer-social .social-link { width: 40px; height: 40px; }
.footer-copy { color: var(--ink-faint); font-size: .95rem; margin: .6rem 0 0; }
.footer-credit { color: var(--ink-faint); font-size: .85rem; margin: .3rem 0 0; letter-spacing: .03em; }
.footer-credit a { color: var(--accent-hi); }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--ink); }
.back-to-top {
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: .12em;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .4rem;
}
.back-to-top:hover { color: var(--accent-hi); }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(10, 7, 5, 0.94);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox-figure img,
.lightbox-figure .img-placeholder {
  max-width: 92vw;
  max-height: 74vh;
  width: auto;
  border: 1px solid var(--accent);
  padding: 8px;
  background: var(--bg-card);
  box-shadow: 0 12px 50px rgba(0,0,0,.7);
}
.lightbox-figure .img-placeholder { width: min(640px, 92vw); aspect-ratio: 4/3; }
.lightbox-figure figcaption {
  margin-top: 1rem;
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: .12em;
  color: var(--ink-soft);
}
.lightbox-close {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: all .25s ease;
}
.lightbox-close:hover, .lightbox-close:focus-visible {
  border-color: var(--accent-hi);
  color: var(--accent-hi);
}

/* =====================================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-crest, .scroll-cue { animation: none; }
}

/* =====================================================================
   RESPONSIVE / MOBILE NAV
   ===================================================================== */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(16, 12, 9, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
    transform: translateY(-130%);
    transition: transform .35s ease;
    padding: .5rem 0 1rem;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a {
    display: block;
    padding: .9em 1rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-menu a::after { display: none; }
  .brand-name { font-size: 1rem; }
}
