/* Gladys-May.com — memorial styles
   Single shared stylesheet for the entire single-page site.
*/
:root {
  --bg: #faf7f2;
  --bg-soft: #f4eee5;
  --ink: #2a2620;
  --ink-soft: #6e655a;
  --ink-softer: #9a9185;
  --rule: #d9d1c4;
  --panel: #fdfbf7;
  --shadow:        0 1px 2px rgba(42,38,32,0.04), 0 12px 28px -16px rgba(42,38,32,0.18);
  --shadow-strong: 0 1px 2px rgba(42,38,32,0.04), 0 22px 44px -22px rgba(42,38,32,0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nav */
nav.site-nav {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  padding: 16px 20px;
}
nav.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
nav.site-nav a {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 200ms ease;
}
nav.site-nav a:hover { color: var(--ink); }
nav.site-nav li + li::before {
  content: '·';
  color: var(--ink-softer);
  margin-right: 8px;
  margin-left: -4px;
}

/* Page wrappers */
.memorial-page { max-width: 1180px; margin: 0 auto; padding: 88px 28px 96px; }
.memorial-page.narrow { max-width: 880px; }

/* Section heads */
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 28px;
}
.rule { width: 32px; height: 1px; background: var(--rule); margin: 0 auto 28px; }
.section-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.005em; line-height: 1.1; margin-bottom: 22px;
}
.section-head h2 em { font-style: italic; color: var(--ink-soft); }
.deck {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.15rem;
  color: var(--ink-soft); max-width: 40ch; margin: 0 auto; line-height: 1.5;
}

/* Tribute */
#tribute { padding: 80px 28px 88px; text-align: center; }
#tribute .lead-eyebrow {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 36px;
}
#tribute .hero-portrait {
  display: block; width: 100%; max-width: 320px; height: auto;
  margin: 0 auto 44px; box-shadow: var(--shadow-strong); background: #fff;
}
@media (min-width: 720px) { #tribute .hero-portrait { max-width: 380px; } }
#tribute h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05; margin-bottom: 24px;
  max-width: 18ch; margin-left: auto; margin-right: auto;
}
#tribute .dates {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.2rem;
  color: var(--ink-soft); margin-bottom: 28px;
}
#tribute .places {
  font-size: 10.5px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--ink-softer); margin-bottom: 64px;
}
#tribute .tribute-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 24px;
}
#tribute .tribute-deck {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.4rem;
  color: var(--ink); margin-bottom: 36px;
}
#tribute .tribute-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.25rem; line-height: 1.65;
  color: var(--ink); max-width: 36ch; margin: 0 auto 44px;
}
#tribute .farewell-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.3rem;
  color: var(--ink); margin-bottom: 8px;
}
.section-divider {
  width: 100%; border-top: 1px solid var(--rule);
  max-width: 96px; margin: 24px auto;
}

/* Photos */
.chapter { margin-top: 80px; }
.chapter:first-of-type { margin-top: 24px; }
.chapter-head { text-align: center; margin-bottom: 44px; }
.chapter-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.85rem; color: var(--ink); margin-bottom: 10px;
}
.chapter-deck {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1rem; color: var(--ink-soft);
}
.gallery { column-count: 1; column-gap: 22px; }
@media (min-width: 640px) { .gallery { column-count: 2; column-gap: 26px; } }
@media (min-width: 1000px) { .gallery { column-count: 3; column-gap: 30px; } }
.tile {
  break-inside: avoid; margin: 0 0 26px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 600ms ease;
}
@media (min-width: 640px) { .tile { margin-bottom: 30px; } }
.tile img { display: block; width: 100%; height: auto; }
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(42,38,32,0.05), 0 20px 36px -16px rgba(42,38,32,0.22);
}

/* Her Work */
.work-panel { text-align: center; margin-bottom: 96px; }
.work-panel:last-of-type { margin-bottom: 0; }
.venture {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.8; margin-bottom: 36px;
}
.venture-name {
  color: var(--ink); font-weight: 400; font-size: 12px;
  display: inline-block; margin-bottom: 6px;
}
.exhibit {
  display: block; width: 100%; max-width: 420px; height: auto;
  margin: 0 auto 40px; box-shadow: var(--shadow-strong); background: #fff;
}
.exhibit + .exhibit { margin-top: -16px; }
.exhibit-caption {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-softer); margin: -24px auto 32px;
}
.body-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.15rem; line-height: 1.65;
  color: var(--ink); max-width: 44ch; margin: 0 auto;
}
.body-text em { color: var(--ink-soft); }
.link-line {
  margin-top: 28px; font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.link-line a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}

/* Memories & tributes */
.tributes-list { max-width: 720px; margin: 0 auto; }
.tribute {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.tribute:last-child { border-bottom: none; }
.tribute-head { margin-bottom: 24px; }
.tribute-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400; font-size: 1.35rem; color: var(--ink); margin-bottom: 6px;
}
.tribute-rel {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-softer);
}
.tribute-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.1rem; line-height: 1.7; color: var(--ink);
}
.tribute-body p { max-width: 60ch; }

/* Condolences grid */
.condolence-eyebrow { text-align: center; margin: 96px 0 16px; }
.condolence-eyebrow .eyebrow { margin-bottom: 16px; }
.condolence-intro {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  max-width: 50ch; margin: 0 auto 56px;
}
.condolences-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .condolences-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
.condolence { text-align: center; padding: 0 8px; }
.condolence-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.05rem;
  line-height: 1.55; color: var(--ink); margin-bottom: 10px;
}
.condolence-from {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-softer);
}

/* Obituary */
.obituary-body p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.1rem; line-height: 1.7;
  color: var(--ink); margin-bottom: 22px;
}
.obituary-body p:last-child { margin-bottom: 0; }
.obituary-coda {
  text-align: center; margin-top: 40px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; color: var(--ink-soft);
}

/* Service */
.service-scripture { text-align: center; margin-bottom: 72px; }
.service-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.5rem;
  line-height: 1.4; color: var(--ink); max-width: 30ch; margin: 0 auto 16px;
}
.service-cite {
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
}
.services {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  max-width: 880px; margin: 0 auto;
}
@media (min-width: 720px) {
  .services { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.service-card {
  background: var(--panel); padding: 48px 32px; text-align: center;
  box-shadow: var(--shadow);
}
.service-tag {
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-softer); margin-bottom: 16px;
}
.service-city {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 2rem; color: var(--ink); margin-bottom: 8px;
}
.service-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1rem;
  color: var(--ink-soft); margin-bottom: 32px;
}
.service-detail { margin-bottom: 20px; }
.service-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-softer); margin-bottom: 6px;
}
.service-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400; font-size: 1.05rem; color: var(--ink); line-height: 1.5;
}

/* Recordings */
.recordings {
  margin-top: 80px; max-width: 1000px;
  margin-left: auto; margin-right: auto;
}
.recordings-head { text-align: center; margin-bottom: 40px; }
.recordings-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px;
}
.recordings-deck {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.05rem; color: var(--ink-soft);
}
.recordings-group { margin-bottom: 56px; }
.recordings-group:last-child { margin-bottom: 0; }
.recordings-group-label {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.5rem; color: var(--ink); margin-bottom: 28px;
}
.recordings-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 720px) {
  .recordings-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.recordings-grid.single { max-width: 560px; margin: 0 auto; }
@media (min-width: 720px) {
  .recordings-grid.single { grid-template-columns: 1fr; }
}
.recording { margin: 0; }
.recording-label {
  text-align: center;
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-softer); margin-bottom: 16px;
}
.video-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--ink); box-shadow: var(--shadow); overflow: hidden;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.external-video {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow);
  text-decoration: none; text-align: center;
  padding: 24px;
  transition: background 250ms ease, transform 250ms ease;
}
.external-video:hover { background: #1a1813; transform: translateY(-1px); }
.play-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 999px;
  border: 1px solid rgba(250, 247, 242, 0.4);
  color: var(--bg); margin-bottom: 18px;
}
.external-label {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300; font-size: 1.25rem; margin-bottom: 6px;
}
.external-platform {
  display: block; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(250, 247, 242, 0.65);
}

/* Share form */
.share-card { max-width: 640px; margin: 0 auto; text-align: center; }
.share-prompt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.1rem; line-height: 1.7;
  color: var(--ink); max-width: 50ch; margin: 0 auto 16px;
}
.share-list {
  list-style: none; margin: 16px auto 32px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; color: var(--ink); font-size: 1.05rem; line-height: 1.8;
}
.share-form {
  max-width: 580px; margin: 64px auto 0; padding: 56px 32px;
  background: var(--panel); box-shadow: var(--shadow); text-align: left;
}
@media (min-width: 720px) { .share-form { padding: 64px 56px; } }
.form-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center; margin-bottom: 28px;
}
.share-form .rule { margin-bottom: 44px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.format-toggle {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; border: none; padding: 0; margin-bottom: 40px;
}
.format-option { position: relative; cursor: pointer; }
.format-option input { position: absolute; opacity: 0; pointer-events: none; }
.format-option span {
  display: block; text-align: center; padding: 12px 8px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--rule);
  transition: all 200ms ease;
}
.format-option input:checked + span {
  color: var(--ink); background: var(--bg-soft); border-color: var(--ink-soft);
}
.field { margin-bottom: 32px; }
.field-label {
  display: block;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.field-label .req { color: var(--ink); margin-left: 2px; }
.field-label .muted {
  color: var(--ink-softer); text-transform: none; letter-spacing: 0.02em;
  font-style: italic; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px; margin-left: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--rule); padding: 10px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 1.1rem; color: var(--ink);
  transition: border-color 200ms ease;
}
.field textarea { resize: vertical; line-height: 1.6; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.dropzone {
  position: relative;
  border: 1px dashed var(--rule);
  background: rgba(0,0,0,0.01);
  padding: 36px 24px; text-align: center;
}
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem; color: var(--ink); margin-bottom: 6px;
}
.dropzone-hint {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-softer);
}
.family-note {
  text-align: center; margin: 40px 0 32px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 1rem; color: var(--ink-soft); line-height: 1.5;
}
.family-note-rule {
  display: block; width: 24px; height: 1px; background: var(--rule);
  margin: 0 auto 20px;
}
.submit-button {
  display: block; width: 100%; padding: 18px 24px;
  background: var(--ink); color: var(--bg); border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  cursor: pointer; transition: background 200ms ease;
}
.submit-button:hover { background: #1a1813; }

/* Footer */
footer.site-foot {
  text-align: center; padding: 80px 28px 56px;
  background: var(--bg-soft); border-top: 1px solid var(--rule);
  margin-top: 80px;
}
footer.site-foot .rule { margin-bottom: 24px; }
footer.site-foot p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; color: var(--ink-soft); line-height: 1.6;
}
footer.site-foot .for-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-style: normal; font-size: 1.4rem;
  color: var(--ink); margin-bottom: 16px;
}
footer.site-foot small {
  display: block; margin-top: 28px;
  font-family: 'Inter', sans-serif; font-style: normal;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-softer);
}
