:root {
  --ink: #263028;
  --muted: #667068;
  --green: #477a55;
  --green-dark: #28533a;
  --green-soft: #edf3ed;
  --cream: #f8f6f0;
  --rule: #cbd8cc;
  --white: #fff;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font: 17px/1.55 var(--sans); margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

.skip-link { background: var(--green-dark); color: #fff; left: 12px; padding: 10px 14px; position: fixed; top: -100px; z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { align-items: center; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; margin: auto; max-width: var(--max); padding: 14px 28px; }
.brand { align-items: center; display: inline-flex; gap: 12px; text-decoration: none; }
.brand img { height: 42px; object-fit: contain; width: 82px; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--green-dark); font-size: 1.05rem; }
.brand small { color: var(--muted); font: italic .76rem/1.25 var(--serif); }
.header-contact { color: var(--green-dark); font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }

main { margin: auto; max-width: var(--max); }
.hero { border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.hero-copy { align-self: center; padding: 62px 50px 58px 68px; }
.eyebrow { color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .15em; margin-bottom: 12px; text-transform: uppercase; }
.hero h1 { font-size: clamp(3rem, 5.5vw, 4.7rem); line-height: .98; letter-spacing: -.025em; }
.hero-subhead { font: 500 1.2rem/1.5 var(--serif); margin-top: 20px; }
.hero-photo { border-left: 1px solid var(--rule); overflow: hidden; }
.hero-photo img { height: 100%; object-fit: cover; width: 100%; }
.intro { margin: auto; max-width: 800px; padding: 42px 28px 20px; text-align: center; }
.intro p { font: 500 1.12rem/1.6 var(--serif); }

.program-menu { margin: auto; max-width: 830px; padding: 24px 30px 54px; text-align: center; }
.menu-heading { padding-bottom: 24px; }
.menu-heading h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.menu-heading p { color: var(--muted); font-size: 1.02rem; margin-top: 5px; }
.program-item { align-items: center; border-top: 1px solid var(--rule); display: grid; gap: 16px 28px; grid-template-columns: minmax(0, 1fr) auto; padding: 25px 8px; text-align: left; }
.program-item:last-child { border-bottom: 1px solid var(--rule); }
.program-copy { text-align: center; }
.program-item h3 { font-size: 1.42rem; line-height: 1.3; }
.program-copy > p:not(.variation) { font: 500 1.08rem/1.5 var(--serif); margin-top: 5px; }
.variation { color: var(--muted); font-size: .96rem; line-height: 1.45; margin-top: 9px; }
.variation em { color: var(--green); }
.variation span { color: #98aa9a; margin: 0 .45rem; }
.select-program, .remove-program, #clear-list { background: transparent; border: 1px solid var(--green); border-radius: 3px; color: var(--green-dark); cursor: pointer; font-size: .9rem; font-weight: 700; min-height: 44px; padding: 11px 15px; }
.select-program { align-self: center; min-height: 46px; white-space: nowrap; }
.select-program:hover, .select-program:focus-visible, .program-item.is-selected .select-program { background: var(--green-dark); color: #fff; }
.program-controls { background: var(--green-soft); border-left: 3px solid var(--green); display: grid; gap: 12px; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; }
.program-controls[hidden] { display: none; }
.program-controls label { display: grid; gap: 5px; }
.program-controls label span { font-size: .85rem; font-weight: 700; }
.program-controls input, .program-controls select { background: #fff; border: 1px solid #9daf9f; border-radius: 2px; min-height: 44px; padding: 8px 10px; width: 100%; }

.purchase-options { background: var(--cream); border-block: 1px solid #e4e0d7; padding: 40px 50px 42px; text-align: center; }
.purchase-options h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.purchase-grid { display: grid; gap: 50px; grid-template-columns: 1fr 1fr; margin: 24px auto 0; max-width: 800px; text-align: left; }
.purchase-grid article { border-top: 2px solid var(--green); padding-top: 12px; }
.purchase-grid h3 { font-size: 1.3rem; }
.purchase-grid p { font-size: .98rem; line-height: 1.5; margin-top: 6px; }
.purchase-grid .price { color: var(--green-dark); font-size: 1.02rem; font-weight: 700; }
.pricing-note { color: var(--muted); font-size: .84rem; margin-top: 22px; }

.retained-sections { padding: 0 64px; }
.section { border-bottom: 1px solid var(--rule); padding: 60px 0; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; }
.section-heading-split { align-items: end; display: grid; gap: 45px; grid-template-columns: 1.1fr .9fr; }
.section-heading-split > p { color: var(--muted); }
.support-list { border-block: 1px solid var(--rule); margin-top: 34px; }
.support-list article { display: grid; gap: 26px; grid-template-columns: minmax(210px, .35fr) 1fr; padding: 20px 0; }
.support-list article + article { border-top: 1px solid var(--rule); }
.support-list p, .faq-list p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.faq-section { background: var(--green-soft); margin-inline: -64px; padding-inline: 64px; }
.faq-list { border-block: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; }
.faq-list article { padding: 20px 24px 20px 0; }
.faq-list article:nth-child(n+3) { border-top: 1px solid var(--rule); }
.faq-list p { margin-top: 8px; }
.memory-section { border-bottom: 0; padding-bottom: 68px; }
.memory-grid { display: grid; gap: 10px; grid-auto-rows: clamp(150px, 16vw, 230px); grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.memory-tile { border: 1px solid var(--rule); display: block; overflow: hidden; }
.memory-tile:first-child { grid-column: span 2; grid-row: span 2; }
.memory-tile img { height: 100%; object-fit: cover; width: 100%; }
.memory-tile:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.testimonial-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.testimonial-card { border-left: 3px solid var(--green); padding: 20px 22px; }
.testimonial-card blockquote { font: 600 clamp(1.08rem, 2vw, 1.35rem)/1.4 var(--serif); }
.testimonial-card figcaption { color: var(--muted); font-size: .92rem; font-weight: 600; line-height: 1.45; margin-top: 12px; }
.testimonial-card-smile { background: var(--cream); grid-column: 1 / -1; }
.testimonial-card-smile blockquote { color: var(--green-dark); font-size: clamp(1.45rem, 3vw, 2.3rem); }

.inquiry { background: var(--cream); border-top: 1px solid #e4e0d7; padding: 58px 64px 66px; }
.inquiry-intro { margin: auto; max-width: 720px; text-align: center; }
.inquiry-intro h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.inquiry-intro > p:last-child { color: var(--muted); margin-top: 8px; }
.list-shell, #inquiry-form { background: #fff; border: 1px solid var(--rule); margin: 28px auto 0; max-width: 860px; padding: 24px; }
.list-heading { align-items: center; display: flex; justify-content: space-between; }
.list-heading h3 { font-size: 1.25rem; }
#empty-list { color: var(--muted); margin-top: 14px; }
#program-list { list-style: none; margin: 16px 0 0; padding: 0; }
#program-list li { align-items: center; border-top: 1px solid var(--rule); display: grid; gap: 8px 16px; grid-template-columns: 1fr auto; padding: 14px 0; }
#program-list li strong { font-family: var(--serif); font-size: 1.05rem; }
#program-list li p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
#program-list .list-edit { color: var(--green-dark); font-size: .86rem; font-weight: 700; }
.upgrade { align-items: start; background: var(--green-soft); display: flex; gap: 12px; padding: 16px; }
.upgrade input { margin-top: 5px; }
.upgrade span, .upgrade small { display: block; }
.upgrade small { color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: 4px; }
.form-grid { display: grid; gap: 18px 22px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid label > span { font-size: .9rem; font-weight: 700; }
.form-grid input, .form-grid textarea { border: 1px solid #9daf9f; border-radius: 2px; padding: 10px; width: 100%; }
.form-grid input { min-height: 44px; }
.form-grid textarea { resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }
.form-status { font-weight: 600; margin-top: 18px; min-height: 1.5em; }
.form-status.is-error { color: #9b2f2f; }
.form-status.is-success { color: var(--green-dark); }
.submit-button { background: var(--green-dark); border: 0; border-radius: 3px; color: #fff; cursor: pointer; font-weight: 700; margin-top: 8px; padding: 13px 20px; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.submit-button:hover, .submit-button:focus-visible { background: var(--green); outline: 3px solid #477a5533; outline-offset: 3px; }

.site-footer { align-items: center; border-top: 1px solid var(--rule); color: var(--muted); display: grid; gap: 8px; justify-items: center; margin: auto; max-width: var(--max); padding: 34px 24px; text-align: center; }
.footer-brand { align-items: center; color: var(--green-dark); display: flex; font-weight: 700; gap: 10px; text-decoration: none; }
.footer-brand img { height: 34px; object-fit: contain; width: 66px; }
.site-footer p { font-size: .86rem; }
.site-footer a { text-underline-offset: 3px; }
.site-footer small { font-size: .72rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 30px; }
  .hero-photo { border-left: 0; border-top: 1px solid var(--rule); min-height: 240px; }
  .program-item { grid-template-columns: 1fr; padding-block: 26px; }
  .select-program { justify-self: center; min-height: 48px; padding-inline: 18px; }
  .program-controls { grid-template-columns: 1fr; }
  .purchase-grid, .section-heading-split, .support-list article, .faq-list, .testimonial-grid, .form-grid { grid-template-columns: 1fr; }
  .faq-list article:nth-child(2) { border-top: 1px solid var(--rule); }
  .memory-grid { grid-auto-rows: clamp(150px, 28vw, 220px); grid-template-columns: repeat(2, 1fr); }
  .memory-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .form-grid .full { grid-column: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { padding: 12px 18px; }
  .brand img { height: 34px; width: 66px; }
  .brand small { display: none; }
  .header-contact { font-size: .8rem; }
  .hero-copy { padding: 36px 22px 40px; }
  .hero-photo { min-height: 190px; }
  .intro { padding: 32px 22px 12px; }
  .program-menu { padding: 18px 22px 42px; }
  .program-item { padding-inline: 0; }
  .variation span { margin-inline: .2rem; }
  .purchase-options { padding: 34px 22px 38px; }
  .retained-sections { padding: 0 22px; }
  .section { padding: 48px 0; }
  .faq-section { margin-inline: -22px; padding-inline: 22px; }
  .memory-grid { grid-auto-rows: auto; grid-template-columns: 1fr; }
  .memory-tile:first-child { grid-column: auto; }
  .memory-tile img { aspect-ratio: 4 / 3; height: auto; }
  .inquiry { padding: 48px 18px 54px; }
  .list-shell, #inquiry-form { padding: 18px; }
  #program-list li { grid-template-columns: 1fr; }
  .remove-program { justify-self: start; }
  .submit-button { width: 100%; }
}

@media print {
  .site-header, .site-footer, .select-program, .program-controls, .inquiry { display: none; }
}
