/* ==========================================================================
   Willow & Pine Photography — fictional portfolio example
   Romantic fine-art album: ivory ground, charcoal ink, eucalyptus accent.
   ========================================================================== */

:root {
  --ivory: #faf7f0;          /* warm-white page ground */
  --ivory-deep: #f3eee2;     /* tinted section ground */
  --charcoal: #2e2c28;       /* body ink */
  --charcoal-soft: #56524b;  /* secondary ink */
  --eucalyptus: #6e7f6c;     /* faded eucalyptus accent */
  --eucalyptus-deep: #4d5e4c;/* accent at small sizes / on ivory, contrast-safe */
  --hairline: #d8d2c2;       /* 1px frame tone */

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --frame: 1px solid var(--hairline);
}

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

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Accessibility primitives ---------- */

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -130%);
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7em 1.4em;
  text-decoration: none;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--eucalyptus-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Type system ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 em, h2 em, h3 em, .wordmark-text em, .footer-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--eucalyptus-deep);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

a {
  color: var(--charcoal);
  text-decoration-color: var(--eucalyptus);
  text-underline-offset: 3px;
}

a:hover { color: var(--eucalyptus-deep); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--eucalyptus-deep);
  margin: 0 0 1.2em;
}

.section-lede,
.hero-lede {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  color: var(--charcoal-soft);
  font-size: 1.25rem;
}

.fine-print,
.form-note,
.footer-fine {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.02em;
}

/* ---------- Header & nav ---------- */

.site-header {
  border-bottom: var(--frame);
  background: var(--ivory);
}

.masthead {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.monogram {
  width: 52px;
  height: 52px;
  color: var(--eucalyptus-deep);
}

.wordmark-text {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.8rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.4em 0.1em;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--eucalyptus-deep);
  border-bottom-color: var(--eucalyptus);
}

.nav-cta {
  border: var(--frame) !important;
  border-color: var(--eucalyptus-deep) !important;
  padding: 0.5em 1.2em !important;
  color: var(--eucalyptus-deep) !important;
}

.nav-cta:hover {
  background: var(--eucalyptus-deep);
  color: var(--ivory) !important;
}

/* Navigation is never hidden: the centered masthead nav simply wraps on
   small screens. A six-link single page does not need a menu. */
@media (max-width: 40rem) {
  .site-nav ul { gap: 0.3rem 1.3rem; }
  .site-nav a { font-size: 0.82rem; padding: 0.5em 0.2em; }
}

/* ---------- Sections & rhythm ---------- */

main { display: block; }

.section,
.hero {
  max-width: 70rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  text-align: center;
}

.section-tinted {
  max-width: none;
  background: var(--ivory-deep);
  border-top: var(--frame);
  border-bottom: var(--frame);
}

.section-tinted > * {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.flourish {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--eucalyptus);
}

.flourish svg { width: 220px; height: 26px; }

/* ---------- Hero ---------- */

.hero {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hero-lede { font-size: 1.3rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.2rem 0 3rem;
}

.hero-ridge {
  width: min(680px, 100%);
  height: auto;
  color: var(--eucalyptus);
  display: block;
  margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero > .eyebrow,
  .hero > h1,
  .hero > .hero-lede,
  .hero > .hero-actions,
  .hero > .hero-ridge {
    animation: rise 0.9s ease-out both;
  }
  .hero > h1 { animation-delay: 0.08s; }
  .hero > .hero-lede { animation-delay: 0.16s; }
  .hero > .hero-actions { animation-delay: 0.24s; }
  .hero > .hero-ridge { animation-delay: 0.32s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 0.95em 2.2em;
  cursor: pointer;
}

.button:hover {
  background: var(--eucalyptus-deep);
  border-color: var(--eucalyptus-deep);
  color: var(--ivory);
}

.button-ghost {
  background: transparent;
  color: var(--charcoal);
}

.button-ghost:hover {
  background: transparent;
  color: var(--eucalyptus-deep);
}

/* ---------- Collections ---------- */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 2rem;
  align-items: stretch;
}

.collection {
  border: var(--frame);
  background: var(--ivory);
  padding: 2.6rem 1.8rem 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.collection-featured {
  border-color: var(--eucalyptus);
  box-shadow: 0 0 0 1px var(--eucalyptus) inset;
}

.featured-tag {
  position: absolute;
  top: -0.8em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ivory);
  padding: 0 1em;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--eucalyptus-deep);
  white-space: nowrap;
  margin: 0;
}

.collection-mark {
  width: 44px;
  height: 44px;
  color: var(--eucalyptus-deep);
  margin-bottom: 0.8rem;
}

.price {
  margin: 0 0 1.4rem;
}

.price-amount {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--eucalyptus-deep);
}

.inclusions {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 1.2rem 0 0;
  border-top: var(--frame);
  width: 100%;
  font-size: 1.05rem;
}

.inclusions li {
  padding: 0.35em 0;
}

.collection-note {
  margin-top: auto;
  font-style: italic;
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

/* ---------- Elopements ---------- */

.elopement-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  text-align: left;
}

.elopement-text h3 { font-size: 1.7rem; }

.elopement-art {
  width: 100%;
  height: auto;
  color: var(--eucalyptus-deep);
  border: var(--frame);
  background: var(--ivory);
  padding: 1.4rem;
}

@media (max-width: 48rem) {
  .elopement-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ---------- About ---------- */

.about-frame {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  border: var(--frame);
  padding: 3rem;
  margin-top: 3rem;
  text-align: left;
  background: var(--ivory);
}

.about-portrait {
  width: 100%;
  height: auto;
  color: var(--eucalyptus-deep);
}

.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 48rem) {
  .about-frame {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.4rem;
  }
  .about-portrait {
    max-width: 180px;
    margin: 0 auto;
  }
  .about-text { text-align: left; }
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin: 3rem auto 0;
  text-align: left;
  border-top: var(--frame);
}

.faq-item {
  border-bottom: var(--frame);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.4rem 1.3rem 0.3rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  display: inline;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--eucalyptus-deep);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:hover h3 { color: var(--eucalyptus-deep); }

.faq-item > p {
  padding: 0 2.4rem 1.4rem 0.3rem;
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- Studio ---------- */

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.studio-card {
  border: var(--frame);
  background: var(--ivory);
  padding: 2.2rem 1.6rem;
}

.studio-card h3 {
  font-style: italic;
  color: var(--eucalyptus-deep);
}

.studio-card address {
  font-style: normal;
  margin-bottom: 1em;
}

.studio-card p:last-child { margin-bottom: 0; }

/* ---------- Inquiry form ---------- */

.inquiry-form {
  max-width: 46rem;
  margin: 3rem auto 0;
  text-align: left;
  border: var(--frame);
  padding: 2.6rem 2.2rem;
  background: var(--ivory);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

@media (max-width: 40rem) {
  .form-row { grid-template-columns: 1fr; }
  .inquiry-form { padding: 1.8rem 1.2rem; }
}

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: var(--charcoal);
}

.field .optional {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--charcoal-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--charcoal);
  background: var(--ivory);
  border: var(--frame);
  padding: 0.7em 0.9em;
  border-radius: 0;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
}

.form-note { margin: 1.4rem 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: var(--frame);
  background: var(--ivory-deep);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-sprig {
  width: 110px;
  height: 38px;
  color: var(--eucalyptus-deep);
}

.footer-name {
  font-size: 1.5rem;
  margin: 0.6rem 0 0.8rem;
}

.footer-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  margin: 0 0 0.4em;
}

.footer-fine { margin-top: 1.6rem; }

/* Social links (fictional .example profiles) */
.social-links { display: flex; gap: 1.2rem; list-style: none; justify-content: center; padding: 0 1.5rem; margin: 1.5rem auto 0; }
.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { width: 1.3rem; height: 1.3rem; }

