.story-page { background: #f8f3ec; }
.story-page .story-studio {
  min-height: 100vh;
  padding-top: 190px;
  background:
    linear-gradient(90deg, rgba(169,25,39,.04) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(180deg, #f8f3ec 0%, #eee3da 100%);
}
.story-page .section-heading {
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid #302725;
}
.story-page .section-heading h2 { font-size: clamp(38px, 4.5vw, 56px); }
.story-page .section-heading > p { max-width: 470px; font-size: 15px; }
.story-page .studio-grid { grid-template-columns: minmax(0, 1.9fr) minmax(270px, .62fr); gap: 32px; }
.story-page .memory-form { min-height: 720px; padding: 52px; border: 1px solid #d9cdc4; box-shadow: 0 20px 70px rgba(56,33,29,.1); }
.story-page .field { font-size: 14px; }
.story-page .field input,
.story-page .field textarea,
.story-page .field select { font-size: 16px; }
.story-page .check-row,
.story-page .consent-card > p { font-size: 14px; }
.story-page .photo-drop strong { font-size: 15px; }
.story-page .photo-drop small,
.story-page .field-meta,
.story-page .field-error,
.story-page .form-actions p { font-size: 12px; }
.story-page .primary-button { text-decoration: none; }
.story-page .form-actions > [hidden] { display: none !important; }
.story-page .back-button { min-height: 46px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #861725; background: #fff; border: 1px solid #861725; border-radius: 999px; font-size: 14px; font-weight: 700; }
.story-page .back-button:hover { color: #fff; background: #861725; }
.story-page .back-button:focus-visible { outline: 3px solid rgba(169,25,39,.24); outline-offset: 4px; }
.story-page .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.optional-label { color: #9b8b84; font-size: .82em; font-weight: 500; }
.story-page .consent-legal { margin: 18px 0 0; color: #81736d; font-size: 10px; line-height: 1.65; }
.story-page .consent-legal a { color: var(--red); font-weight: 700; }
.important-dates-editor { margin-top: 26px; padding: 24px; background: #fffaf6; border: 1px solid #d9cdc4; }
.important-dates-heading { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.important-dates-heading > div { display: grid; gap: 5px; }
.important-dates-heading strong { color: #302523; font-family: "Libre Baskerville", Georgia, serif; font-size: 17px; font-weight: 400; }
.important-dates-heading small { max-width: 560px; color: #7a6d67; font-size: 11px; line-height: 1.6; }
.important-dates-heading > span { flex: 0 0 auto; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.important-dates-list { display: grid; gap: 14px; }
.important-date-entry { padding: 18px; display: grid; grid-template-columns: minmax(170px, .7fr) minmax(230px, 1.3fr) auto; align-items: end; gap: 16px; background: #fff; border: 1px solid #eadfd8; }
.important-date-entry .field { margin: 0; }
.remove-date-button { min-height: 41px; padding: 0 4px; color: #8d1722; background: transparent; border: 0; border-bottom: 1px solid #c99197; font-size: 10px; font-weight: 700; }
.remove-date-button[hidden], .add-date-button[hidden] { display: none; }
.add-date-button { margin-top: 16px; padding: 11px 0; color: #8d1722; background: transparent; border: 0; font-size: 11px; font-weight: 700; }
.add-date-button span { margin-right: 5px; font-size: 16px; }
.awareness-editor { margin: 26px 0 0; padding: 26px; background: #171313; border: 1px solid #171313; }
.awareness-title-panel { margin: -26px -26px 24px; padding: 23px 28px 20px; color: #171313; background: #fff; border-bottom: 6px solid #a91927; }
.awareness-title-panel span { display: block; margin-bottom: 7px; color: #a91927; font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.awareness-title-panel h3 { margin: 0; color: #090707; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
.awareness-editor > p { max-width: 850px; margin: 3px 0 22px; color: #fff4f2; font-size: 15px; line-height: 1.75; }
.awareness-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.awareness-options > label { position: relative; display: block; cursor: pointer; }
.awareness-options input { position: absolute; opacity: 0; pointer-events: none; }
.awareness-options label > span { min-height: 70px; padding: 15px 16px; display: grid; align-content: center; gap: 5px; color: #2a201e; background: #fff; border: 2px solid transparent; transition: border-color .2s, background .2s, color .2s; }
.awareness-options label > span strong { color: #241a18; font-size: 15px; font-weight: 700; line-height: 1.35; }
.awareness-options label > span small { color: #6d5c56; font-size: 12px; font-weight: 600; line-height: 1.4; }
.awareness-options input:checked + span { color: #fff; background: #a91927; border-color: #f2b8bd; }
.awareness-options input:checked + span strong { color: #fff; }
.awareness-options input:checked + span small { color: #ffd9dc; }
.awareness-options input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.awareness-options input:disabled + span { opacity: .45; cursor: not-allowed; }
.awareness-custom { margin-top: 14px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff8f4; }
.awareness-custom[hidden] { display: none; }
.awareness-custom .field { color: #493936; font-size: 14px; font-weight: 700; }
.optional-note { color: #846e67; font-size: 11px; font-weight: 500; }
.awareness-editor > .field-error { margin-top: 12px; display: block; color: #ffd0d4; }
.live-awareness { margin-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.live-awareness[hidden] { display: none; }
.live-awareness span { padding: 6px 8px; color: #ffdadd; border: 1px solid #713640; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.care-checkin-card { position: relative; padding: clamp(28px, 5vw, 46px); color: #fff; background: linear-gradient(135deg, rgba(11,8,8,.98), rgba(54,12,18,.97) 68%, rgba(143,18,32,.96)); border-top: 7px solid #a91927; box-shadow: 0 24px 60px rgba(56,22,25,.18); overflow: hidden; }
.care-checkin-card::after { content: "K"; position: absolute; right: -18px; bottom: -58px; color: rgba(255,255,255,.04); font-family: "Libre Baskerville", Georgia, serif; font-size: 230px; line-height: 1; }
.care-checkin-card > * { position: relative; z-index: 1; }
.care-checkin-card .eyebrow { color: #ff9ba4; }
.care-checkin-card h4 { margin: 0 0 18px; color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(26px, 4vw, 38px); font-weight: 400; line-height: 1.2; }
.care-checkin-card > p:not(.eyebrow) { max-width: 650px; color: #e2d4d1; font-size: 14px; line-height: 1.8; }
.care-checkin-choice { margin: 28px 0 18px; padding: 22px; color: #241b19; background: #fff; border-left: 4px solid #c82031; }
.care-checkin-choice input { flex: 0 0 auto; width: 18px; height: 18px; }
.care-checkin-choice span { display: grid; gap: 5px; }
.care-checkin-card > small { display: block; color: #cbb9b6; font-size: 10px; line-height: 1.6; }

/* The live preview now echoes the finished tribute experience. */
.story-page .live-card {
  color: #fff;
  background:
    linear-gradient(rgba(8,6,6,.84), rgba(27,7,10,.91)),
    var(--kerose-memorial-art) center / cover no-repeat;
  border: 1px solid #3b2d2c;
  border-top: 7px solid #a91927;
  box-shadow: 0 28px 75px rgba(34,10,14,.3);
}
.story-page .live-card::before,
.story-page .live-card::after { display: none; }
.story-page .live-card-top { color: #c3b6b2; }
.story-page .private-chip { color: #fff; background: rgba(9,7,7,.72); border-color: rgba(255,255,255,.36); }
.story-page .live-portrait { width: min(250px, 80%); height: auto; aspect-ratio: 1; margin: 38px 0 28px; background: linear-gradient(145deg, #a91927, #241113); border: 6px solid #fff; border-radius: 4px; box-shadow: 0 0 0 2px #a91927, 0 22px 50px rgba(0,0,0,.42); }
.story-page .live-card h3 { color: #fff; font-size: clamp(30px, 4vw, 42px); }
.story-page .live-dates { color: #d2c2be; }
.story-page .live-card blockquote { color: #f0e6e2; }
.story-page .word-row span { color: #fff; background: rgba(9,7,7,.7); border-color: rgba(255,255,255,.35); }
.story-page .edited-note { color: #b5a6a2; }

@media (max-width: 900px) {
  .story-page .story-studio { padding-top: 190px; }
  .story-page .studio-grid { grid-template-columns: 1fr; }
  .story-page .memory-form { padding: 44px; }
  .important-date-entry { grid-template-columns: 1fr 1fr; }
  .important-date-entry .remove-date-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 600px) {
  .story-page .story-studio { padding-top: 180px; }
  .story-page .section-heading { padding-bottom: 28px; }
  .story-page .section-heading h2 { font-size: 38px; }
  .story-page .memory-form { min-height: 700px; padding: 30px 22px; }
  .important-dates-editor { padding: 18px 14px; }
  .important-dates-heading { flex-direction: column; }
  .important-date-entry { grid-template-columns: 1fr; }
  .important-date-entry { display: grid; }
  .awareness-editor { padding: 22px 14px; }
  .awareness-title-panel { margin: -22px -14px 22px; padding: 21px 17px 18px; }
  .awareness-title-panel h3 { font-size: 29px; }
  .awareness-options, .awareness-custom { grid-template-columns: 1fr; }
  .story-page .stepper { grid-template-columns: repeat(5, 104px); overflow-x: auto; }
  .care-checkin-card { padding: 28px 20px; }
}

/* Quiet memorial texture behind the family submission studio */
.story-page .story-studio {
  background:
    linear-gradient(rgba(226,214,205,.82), rgba(210,191,181,.86)),
    var(--kerose-memorial-art) center top / cover no-repeat;
  background-attachment: scroll, fixed;
}
