/* Free obituary writer (p284). Look from the approved mockup:
   ivory #FBF8F2, gold #8A6416, ink #2B2622, Cormorant Garamond + Source Sans 3,
   large type and strong contrast (Brian: easy reading). */
.ow, .ow * { box-sizing: border-box; }
.ow [hidden] { display: none !important; }
body.ow-site .ow-brandbar { display: none; } /* the site's own header is there */
.ow-step h1:focus { outline: none; }
body.ow { margin: 0; background: #FBF8F2; color: #2B2622; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 18px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
.ow a { color: #8A6416; }
.ow a:hover { color: #75540F; }
.ow-main { max-width: 640px; margin: 0 auto; padding: 28px 22px 64px; display: flex; flex-direction: column; gap: 20px; }
.ow-brandbar { display: flex; align-items: center; padding: 16px 22px; border-bottom: 1px solid #EDE5D8; background: #fff; }
.ow-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #2B2622 !important; }
.ow-brand span { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; }
.ow-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; color: #8A6416; }
.ow-eyebrow.small { letter-spacing: 2px; }
.ow-h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 40px; line-height: 1.1; font-weight: 600; }
.ow-h1s { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 34px; line-height: 1.15; font-weight: 600; }
.ow-h2 { margin: 12px 0 0; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; }
.ow-lead { margin: 0; font-size: 19px; line-height: 1.5; color: #4A423B; }
.ow-lead.small { font-size: 17px; }
.ow-muted { color: #6B625A; }
.ow-small { margin: 0; font-size: 16px; line-height: 1.45; color: #6B625A; }
.ow-note { margin: 0; font-size: 15px; color: #6B625A; }
.ow .center { text-align: center; align-self: center; }
.ow-link { font-size: 18px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.ow-flash { padding: 14px 16px; border-radius: 12px; font-size: 17px; }
.ow-flash.err { background: #FBE9E7; border: 1px solid #E0A79C; color: #7A2617; }
.ow-flash.ok { background: #EEF5E9; border: 1px solid #B7D2A6; color: #2E4B1F; }

.ow-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 2px solid #D9C7A6; border-radius: 29px;
  background: #fff; color: #2B2622 !important; font-family: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ow-btn:hover { border-color: #B8862B; }
.ow-btn:focus-visible, .ow-chip:focus-visible, .ow-length:focus-visible, .ow-input:focus-visible, .ow-para:focus-visible { outline: 3px solid #B8862B; outline-offset: 2px; }
.ow-btn.primary { background: #2B2622; border-color: #2B2622; color: #fff !important; }
.ow-btn.primary:hover { background: #3d3630; }
.ow-btn.big { min-height: 60px; font-size: 20px; }
.ow-btn.small { min-height: 48px; font-size: 17px; padding: 0 18px; font-weight: 600; }
.ow-btn.wide { width: 100%; }
.ow-btn.light { background: #fff; border-color: #fff; color: #1E2B3C !important; }
.ow-btn[disabled] { opacity: .55; cursor: default; }
.ow-linkbtn { background: none; border: none; padding: 0; min-height: 44px; color: #8A6416; font: inherit; font-size: 18px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ow-inline { margin: 0; }

.ow-card { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ow-card.gold { border: 2px solid #B8862B; }
.ow-card.dark { background: #1E2B3C; border-color: #1E2B3C; color: #fff; }
.ow-card.dark .ow-card-text { color: #E9E2D6; }
.ow-card-title { margin: 0; font-size: 19px; font-weight: 700; }
.ow-card-serif { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; line-height: 1.2; }
.ow-card-text { margin: 0; font-size: 17px; line-height: 1.45; color: #4A423B; }
.ow-url { margin: 0; font-size: 16px; font-weight: 600; word-break: break-all; }
.ow-stack { display: flex; flex-direction: column; gap: 14px; }
.ow-mine { margin: 0; font-size: 17px; }
.ow-mine a { font-weight: 700; }
.ow-how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; color: #4A423B; }
.ow-found { display: flex; flex-direction: column; gap: 8px; }
.ow-found-item { text-align: left; padding: 12px 14px; border: 2px solid #D9C7A6; border-radius: 12px; background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; }
.ow-found-item span { font-size: 15px; color: #6B625A; }
.ow-foot { text-align: center; padding: 24px 16px 40px; font-size: 15px; color: #6B625A; }

/* steps */
.ow-steps { max-width: 640px; margin: 0 auto; padding: 0 0 48px; display: flex; flex-direction: column; }
.ow-progress { position: sticky; top: 0; z-index: 5; padding: 16px 22px; border-bottom: 1px solid #EDE5D8; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.ow-progress-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.ow-bar { height: 10px; border-radius: 5px; background: #EDE5D8; }
.ow-bar-fill { height: 10px; border-radius: 5px; background: #8A6416; transition: width .25s; }
.ow-step { padding: 28px 22px 8px; display: flex; flex-direction: column; gap: 18px; }
.ow-steps > .ow-flash { margin: 16px 22px 0; }
.ow-field { display: flex; flex-direction: column; gap: 8px; }
.ow-label { margin: 0; font-size: 18px; font-weight: 700; }
.ow-input { width: 100%; min-height: 56px; border: 1px solid #D9C7A6; border-radius: 12px; padding: 0 14px; font-size: 18px; font-family: inherit; background: #fff; color: #2B2622; }
textarea.ow-input { padding: 12px 14px; line-height: 1.45; resize: none; overflow: hidden; min-height: 90px; }
.ow-two { display: flex; gap: 12px; }
.ow-two > * { flex: 1; min-width: 0; }
.ow-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ow-chip { min-height: 48px; padding: 0 18px; border: 2px solid #D9C7A6; border-radius: 24px; background: #fff; font-family: inherit; font-size: 17px; font-weight: 600; color: #2B2622; cursor: pointer; }
.ow-chip.on { border-color: #8A6416; background: #F9EEDA; font-weight: 700; }
.ow-chips[data-key="served"] .ow-chip { flex: 1; min-height: 56px; font-size: 19px; font-weight: 700; border-radius: 28px; }
.ow-lengths { display: flex; flex-direction: column; gap: 12px; }
.ow-length { text-align: left; padding: 16px 18px; border: 2px solid #D9C7A6; border-radius: 16px; background: #fff; font-family: inherit; color: #2B2622; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ow-length.on { border-color: #8A6416; background: #F9EEDA; }
.ow-length-t { font-size: 19px; font-weight: 700; }
.ow-length-d { font-size: 16px; line-height: 1.4; color: #4A423B; }
.ow-tip { background: #F3EBDD; border-radius: 16px; padding: 16px 18px; }
.ow-tip p { margin: 0; font-size: 17px; line-height: 1.5; color: #4A423B; }
.ow-tip .ow-tip-title { font-weight: 700; color: #2B2622; margin-bottom: 4px; }
.ow-hint { margin: 0; font-size: 17px; background: #F3EBDD; border-radius: 12px; padding: 12px 14px; }
.ow-add { align-self: flex-start; background: none; border: none; padding: 0; min-height: 44px; color: #8A6416; font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.ow-drop { height: 260px; border: 2px dashed #D9C7A6; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.ow-drop img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ow-drop.ow-drop-over { border-color: #8A6416; background: #FBF5E9; }
.ow-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ow-drop-title { font-size: 19px; font-weight: 700; }
.ow-problems { background: #FBE9E7; border: 1px solid #E0A79C; border-radius: 12px; padding: 12px 14px; color: #7A2617; font-size: 17px; }
.ow-problems p { margin: 0; }
.ow-match { background: #fff; border: 2px solid #B8862B; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ow-match p { margin: 0; }
.ow-match-row { display: flex; gap: 10px; }
.ow-match-row .ow-btn { flex: 1; min-height: 48px; font-size: 17px; padding: 0 12px; }
.ow-nav { display: flex; gap: 12px; padding: 18px 22px 0; }
.ow-nav #ow-back { flex: 1; }
.ow-nav #ow-next { flex: 2; }
.ow-skip { align-self: center; background: none; border: none; color: #8A6416; font-family: inherit; font-size: 18px; font-weight: 600; text-decoration: underline; min-height: 44px; margin-top: 8px; cursor: pointer; }
.ow-saved { text-align: center; min-height: 22px; margin-top: 6px; }
.ow-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* draft */
.ow-draftbar { position: sticky; top: 0; z-index: 5; padding: 16px 22px; border-bottom: 1px solid #EDE5D8; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ow-draftbar-t { font-size: 18px; font-weight: 700; }
.ow-article { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ow-article-name { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 32px; line-height: 1.15; font-weight: 600; }
.ow-article-dates { margin: 0; font-size: 16px; font-weight: 600; color: #6B625A; }
.ow-paras { display: flex; flex-direction: column; gap: 14px; }
.ow-para { margin: 0; font-size: 18px; line-height: 1.6; border-radius: 8px; padding: 6px 8px; margin-left: -8px; margin-right: -8px; white-space: pre-wrap; }
.ow-para:hover { background: #FCF6EA; }
.ow-para.on { background: #F9EEDA; outline: 2px solid #B8862B; }
.ow-para.busy { opacity: .5; }
.ow-writing { margin: 0; font-size: 17px; color: #6B625A; display: flex; align-items: center; gap: 10px; }
.ow-dot { width: 12px; height: 12px; border-radius: 50%; background: #B8862B; animation: owpulse 1s infinite ease-in-out; }
@keyframes owpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.ow-tools { position: sticky; bottom: 12px; z-index: 6; background: #fff; border: 1px solid #D9C7A6; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 24px rgba(43, 38, 34, .12); }
.ow-tools-t { margin: 0; font-size: 17px; font-weight: 700; }
.ow-tools-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ow-check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; cursor: pointer; }
.ow-check input { width: 26px; height: 26px; margin: 0; accent-color: #8A6416; flex: none; }
.ow-save form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ow-sharebox { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* samples */
.ow-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 17px; font-weight: 600; }
.ow-sample { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 22px; }
.ow-sample h3 { margin: 0 0 4px; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; }
.ow-sample p { margin: 0 0 12px; font-size: 18px; line-height: 1.6; }
.ow-sample p:last-child { margin-bottom: 0; }
.ow-sample .ow-sample-dates { font-size: 16px; font-weight: 600; color: #6B625A; }
.ow-template p { font-family: Georgia, serif; }
.ow-tips { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: #4A423B; }
.ow-samples .ow-btn:not(.wide) { align-self: flex-start; }

@media (max-width: 420px) {
  .ow-h1 { font-size: 36px; }
}
/* p289: "How to write an obituary" questions on the start page */
.ow-faq { display: flex; flex-direction: column; gap: 10px; }
.ow-faq details { background: #fff; border: 1px solid #EDE5D8; border-radius: 12px; padding: 14px 18px; }
.ow-faq summary { cursor: pointer; font-size: 19px; font-weight: 700; line-height: 1.35; }
.ow-faq summary:focus-visible { outline: 3px solid #8A6416; outline-offset: 3px; border-radius: 6px; }
.ow-faq p { margin: 10px 0 0; font-size: 18px; line-height: 1.55; }
/* p290: family, one person per row */
.ow-people { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ow-people-list { display: flex; flex-direction: column; gap: 12px; }
.ow-person { background: #fff; border: 1px solid #EDE5D8; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ow-person.ow-person-bad { border: 2px solid #B3261E; }
.ow-person select.ow-input { padding: 0 10px; }
.ow-living { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ow-living .ow-person-remove { margin-left: auto; font-size: 16px; font-weight: 600; }
.ow-person-add { align-self: flex-start; }
.ow-email-ask { margin-top: 18px; padding-top: 18px; border-top: 1px solid #EDE5D8; }
@media (max-width: 560px) { .ow-person .ow-two { flex-direction: column; } }
.ow-mini { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ow-mini > span { font-size: 15px; font-weight: 600; color: #4A433C; }
/* p292: "your copy" note and the version choices on the draft */
.ow-editnote { margin-bottom: 14px; }
.ow-versions { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.ow-versions .ow-label { margin: 0; }
/* p292: the finished obituary as it would look in a newspaper */
.ow-paper { background: #FBF8F1; border: 1px solid #DDD3C2; border-radius: 4px; padding: 26px 26px 20px; margin: 18px 0 22px; box-shadow: 0 2px 10px rgba(43,36,30,.08); font-family: Georgia, 'Times New Roman', serif; color: #1F1A15; }
.ow-paper::after { content: ''; display: block; clear: both; }
.ow-paper-mast { text-align: center; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; border-top: 3px double #2B241E; border-bottom: 1px solid #2B241E; padding: 6px 0; margin: 0 0 18px; }
.ow-paper-photo { float: left; width: 150px; height: auto; margin: 4px 18px 10px 0; border: 1px solid #CFC4B2; filter: grayscale(15%); }
.ow-paper-name { font-family: Georgia, serif; font-size: 28px; line-height: 1.15; margin: 0 0 4px; font-weight: 700; }
.ow-paper-dates { font-size: 16px; font-style: italic; margin: 0 0 14px; color: #4A433C; }
.ow-paper-text { clear: none; }
.ow-paper-text p { font-size: 17px; line-height: 1.6; margin: 0 0 12px; text-align: justify; hyphens: auto; }
@media (min-width: 760px) { .ow-paper-text { column-count: 2; column-gap: 28px; clear: both; } .ow-paper-text p { break-inside: avoid-column; } }
@media (max-width: 480px) { .ow-paper { padding: 18px 16px 12px; } .ow-paper-photo { width: 110px; margin-right: 14px; } .ow-paper-name { font-size: 24px; } }

/* p292: what Turning Hearts does next */
.ow-story { margin: 30px 0 22px; padding: 28px 0 6px; border-top: 1px solid #EDE5D8; }
.ow-story-h { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; line-height: 1.15; margin: 4px 0 10px; }
.ow-story-lead { font-size: 19px; line-height: 1.55; margin: 0 0 22px; }
.ow-story-step { display: grid; grid-template-columns: 1fr; gap: 14px; background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.ow-story-step img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ow-story-step > div { padding: 4px 20px 20px; }
.ow-story-step h3 { font-size: 22px; margin: 0 0 8px; }
.ow-story-step p { font-size: 18px; line-height: 1.55; margin: 0 0 14px; }
.ow-story-n { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: #2B241E; color: #fff; font-weight: 700; font-size: 16px; margin: 0 0 8px !important; }
@media (min-width: 760px) { .ow-story-step { grid-template-columns: 300px 1fr; } .ow-story-step img { height: 100%; min-height: 240px; } .ow-story-step > div { padding: 22px 22px 22px 4px; } }
.ow-main.ow-done { max-width: 760px; }
/* p294: change it, right above the clipping */
.ow-paper-edit { text-align: right; margin: 6px 0 -12px; font-size: 17px; }
.ow-paper-edit a { color: #8A6416; font-weight: 600; }
