@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #232f25;
  --muted: #4b564b;
  --forest: #244637;
  --rust: #8d4d38;
  --paper: #f9f6ef;
  --white: #fffcf7;
  --line: #d8d8c9;
  --heading: 'Instrument Serif', Georgia, serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  font-size: 100%;
}

:root.larger-text { font-size: 125%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.1875rem/1.53 var(--body); }
button { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid #874326; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.25rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: 1.02; }
h1 { font-size: clamp(3.65rem, 6.3vw, 6.1rem); letter-spacing: -.035em; }
h1 em { color: var(--rust); font-weight: inherit; }
h2 { font-size: clamp(2.55rem, 4.2vw, 4rem); letter-spacing: -.025em; }
h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 700; }
p, li { overflow-wrap: break-word; }
.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; inset: .5rem auto auto .5rem; transform: translateY(-150%); padding: .7rem 1rem; color: white; background: var(--forest); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 400 2rem/1 var(--heading); text-decoration: none; min-height: 3rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--forest); color: var(--white); font: 1.06rem/1 Georgia, serif; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.75rem, 2.6vw, 2.4rem); }
.nav a, .text-size { display: inline-flex; align-items: center; min-height: 3rem; font-size: 1.025rem; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.text-size { cursor: pointer; gap: .55rem; border: 1px solid #9ba396; border-radius: .4rem; background: transparent; color: var(--ink); padding: .35rem .7rem; }
.text-size span { font-family: Georgia, serif; }
.text-size[aria-pressed='true'] { background: #e2eadf; border-color: var(--forest); }
.language-switcher { display: flex; flex-wrap: wrap; gap: .15rem; }
.language-switcher a { padding-inline: .55rem; border-radius: .4rem; }
.language-switcher a[aria-current='page'] { background: #e2eadf; color: var(--forest); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 4vw, 4.25rem); align-items: center; padding-block: clamp(2.3rem, 4.4vw, 4.5rem); }
.hero-copy p { color: var(--muted); max-width: 36ch; font-size: 1.3rem; line-height: 1.45; margin-top: 1.25rem; }
.hero-copy .button { margin-top: 1.65rem; }
.hero-image { position: relative; border-radius: 8rem .85rem .85rem .85rem; background: #e6e5d7; overflow: hidden; aspect-ratio: 1.38; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; min-height: 3.15rem; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: .4rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: #183627; }
.outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.outline:hover { background: #e2eadf; }

.path-section { background: #eeeee4; padding-block: clamp(2rem, 4vw, 3.6rem) clamp(2.5rem, 5vw, 4.5rem); border-block: 1px solid #e1e1d5; }
.path-section h2 { margin-bottom: 1.55rem; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.living { --tint: #dfeadc; --accent: #324d35; }
.caring { --tint: #f3e2d7; --accent: #783f2d; }
.grief { --tint: #e8e3ec; --accent: #5b4866; }
.path-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); padding: clamp(1rem, 2.1vw, 1.65rem); border: 1px solid #d3d6c9; border-radius: .75rem; text-decoration: none; }
.path-card:hover { border-color: var(--accent); box-shadow: 0 .35rem .9rem #213b2612; }
.path-card:hover .card-action { text-decoration-thickness: .12em; }
.path-icon { display: grid; place-items: center; color: var(--accent); background: var(--tint); width: 2.85rem; height: 2.85rem; border-radius: 50%; font: 1.65rem/1 Georgia, serif; }
.path-card h3 { margin-block: .85rem .5rem; }
.path-card p { color: var(--muted); margin-bottom: .6rem; }
.card-action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; min-height: 3rem; margin-top: auto; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }

.guides { padding-block: 1.35rem 1.8rem; }
.guide { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 1.25rem clamp(1.25rem, 4vw, 4.2rem); padding-block: clamp(2.1rem, 5vw, 4.3rem); }
.guide + .guide { border-top: 1px solid var(--line); }
.guide-heading h2 { margin-block: .9rem .7rem; }
.guide-heading p { max-width: 40ch; color: var(--muted); }
.guide-sheet { padding: clamp(1rem, 2.6vw, 1.8rem); background: var(--white); border: 1px solid var(--line); border-top: .3rem solid var(--tint); border-radius: .65rem; }
.guide-sheet ul { margin-block: .8rem 1rem; padding-left: 1.4rem; }
.guide-sheet li + li { margin-top: .55rem; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin-top: 1rem; }
.text-link, .back-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .1rem .3rem; min-height: 3rem; color: var(--forest); font-weight: 700; }
.back-link { justify-self: start; }

.resources { background: var(--forest); color: var(--white); padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.resource-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.25rem clamp(1.25rem, 4vw, 4.2rem); }
.resource-inner p { margin-top: .55rem; color: #edf0e5; max-width: 48ch; }
.resource-list > div + div { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid #759082; }
.resource-list h3 a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; min-height: 3rem; }
.resources :focus-visible { outline-color: #faf2b8; }
.footer-inner { padding-block: .65rem; }
.footer-inner p, .footer-inner > a:last-child { font-size: 1rem; }
.footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 3rem; }

@media (max-width: 64rem) {
  .wide-break { display: none; }
  .hero-image { border-top-left-radius: 5rem; }
}

@media (max-width: 49rem) {
  .shell { width: min(100% - 2rem, 76rem); }
  .header-inner { padding-block: .45rem; }
  .hero { grid-template-columns: 1fr; gap: 1.45rem; }
  .hero-image { max-height: 22rem; }
  .path-grid, .guide, .resource-inner { grid-template-columns: minmax(0, 1fr); }
  .guide-heading p { max-width: 58ch; }
  .path-card p { margin-bottom: .15rem; }
}

@media (max-width: 35rem) {
  .hero-image { display: none; }
  h1 { font-size: clamp(2.8rem, 10vw, 3.65rem); }
  .hero-copy p { font-size: 1.2rem; }
  .text-size { min-height: 2.75rem; }
}

@media print {
  body { color: black; background: white; font-size: 12pt; }
  .shell { width: 100%; }
  .site-header, .site-footer, .skip-link, .hero, .path-section, .resources, .guide-actions, .back-link, .path-icon { display: none; }
  .guides, .guide, .guide-sheet { display: block; margin: 0; padding: 0; }
  .guide { break-inside: avoid; margin-bottom: 1.5rem; }
  .guide + .guide { border: 0; }
  .guide-heading h2 { margin: 0 0 .5rem; font-size: 25pt; }
  .guide-heading p { margin-bottom: .8rem; }
  .guide-sheet { border: 0; background: white; }
  .printing-guide .guide:not(.print-selected) { display: none; }
}
