/*
 * GetKoselig complete homepage design reference.
 * All selectors are scoped to .gk- to avoid interference from the current
 * application's hero, grid, illustration, and section styles.
 * At 1586px the component geometry matches the approved 1586 x 992 image.
 * The gallery scales down without cropping into Margaret's face.
 */
:root {
  /* Aliased onto the shared brand tokens in styles.css so the homepage
     stops drifting from the rest of the site's colors. */
  --gk-cream: var(--cream);
  --gk-white: var(--paper);
  --gk-heading: var(--fjord);
  --gk-copy: var(--ink);
  --gk-muted: var(--muted);
  --gk-red: var(--falu);
  --gk-blue: var(--fjord);
  --gk-border: var(--line);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
.gk-page {
  background: var(--gk-cream);
  color: var(--gk-heading);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gk-page a { color: inherit; text-decoration: none; }
.gk-page img { max-width: 100%; display: block; }
.gk-page button { font: inherit; }
.gk-page :focus-visible { outline: 3px solid var(--gk-blue); outline-offset: 4px; }

/* HEADER / CURRENT NAV ITEMS */
.gk-header { height: 70px; border-bottom: 1px solid #e8e1d7; }
.gk-header-inner {
  width: min(calc(100% - 152px), 1460px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gk-brand { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.gk-brand-mark {
  display: grid; place-items: center;
  width: 49px; height: 49px;
  border: 2px solid var(--gk-red); border-radius: 50%;
  font: 400 34px/1 "Newsreader", Georgia, serif;
  color: var(--gk-red);
}
.gk-brand-name {
  font: 500 35px/1 "Newsreader", Georgia, serif;
  letter-spacing: -1.2px;
}
.gk-nav { display: flex; align-items: center; gap: 46px; padding-right: 44px; }
.gk-nav > a:not(.gk-nav-organizer) { font-size: 17px; font-weight: 600; color: #122834; }
.gk-nav-organizer {
  min-width: 136px; min-height: 49px; padding: 11px 21px;
  border: 1.5px solid #233e4a; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600;
}
.gk-menu-toggle { display: none; }

/* HERO: EXACT 570px at reference width. NO 720px inherited min-height. */
.gk-hero {
  padding: 35px 0 39px;
  margin: 0;
  min-height: 0;
  border-bottom: 1px solid #ebe4db;
}
.gk-hero-inner {
  width: min(calc(100% - 152px), 1404px);
  margin-left: max(76px, calc((100% - 1460px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 844px);
  gap: 40px;
  align-items: center;
}
.gk-hero-copy { min-width: 0; }
.gk-eyebrow {
  margin: 0 0 18px;
  color: var(--gk-red);
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.14em; line-height: 1.3;
  text-transform: uppercase;
}
.gk-hero-copy h1 {
  margin: 0 0 23px;
  font: 500 66px/1.012 "Newsreader", Georgia, serif;
  letter-spacing: -0.038em;
  color: var(--gk-heading);
  white-space: nowrap;
}
.gk-hero-description {
  max-width: 530px;
  margin: 0 0 32px;
  color: var(--gk-copy);
  font-size: 22px; line-height: 1.39; font-weight: 400;
}
.gk-hero-actions { display: flex; align-items: center; gap: 14px; }
.gk-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px;
  border-radius: 11px;
  font-size: 18px; font-weight: 700;
  white-space: nowrap;
  padding: 12px 24px;
  transition: background .15s ease, border-color .15s ease;
}
.gk-button-primary { min-width: 250px; background: var(--gk-blue); color: white !important; }
.gk-button-primary:hover { background: #143f59; }
.gk-button-secondary { min-width: 253px; border: 1.5px solid #254458; background: transparent; color: #24353d !important; }
.gk-button-secondary:hover { background: #f0eae2; }
.gk-privacy {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0;
  color: #30373c; font-size: 14px; line-height: 1.5;
}
.gk-privacy svg { flex: 0 0 auto; }

/* RIGHT VISUAL — TWO COLUMNS, 16px GUTTERS, 495px REFERENCE HEIGHT */
.gk-preview {
  display: grid;
  grid-template-columns: minmax(0, 380fr) minmax(0, 449fr);
  gap: 16px;
  width: 100%;
  height: 495px;
  min-width: 0;
}
.gk-preview-portrait-wrap, .gk-preview-family-wrap {
  position: relative;
  width: 100%; height: 100%; min-width: 0;
  overflow: hidden; border-radius: 16px;
}
.gk-preview-portrait, .gk-preview-family {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: center center;
}
.gk-preview-right { min-width: 0; display: grid; grid-template-rows: 269px minmax(0, 1fr); gap: 16px; }
.gk-preview-memory {
  min-height: 0; min-width: 0;
  background: var(--gk-white);
  border: 1px solid var(--gk-border);
  border-radius: 16px;
  box-shadow: 0 3px 7px rgba(37,37,37,.08);
  padding: 14px 28px 17px;
  overflow: hidden;
}
.gk-preview-label {
  margin: 0 0 3px;
  font-size: 16px; line-height: 1.3; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gk-red);
}
.gk-preview-title {
  margin: 0;
  font: 500 37px/1.04 "Newsreader", Georgia, serif;
  letter-spacing: -.025em;
  color: #292831;
}
.gk-preview-contributor {
  margin: 1px 0 6px;
  font-size: 17px; line-height: 1.3;
  color: #34343b;
}
.gk-preview-quote {
  margin: 0 0 15px;
  font: italic 500 20px/1.25 "Newsreader", Georgia, serif;
  color: #32313a;
  white-space: nowrap;
}
.gk-preview-audio { display: flex; align-items: center; width: 100%; min-width: 0; gap: 15px; }
.gk-audio-play {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gk-blue); color: #fff;
}
.gk-audio-wave { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 2px; height: 28px; min-width: 0; overflow: hidden; }
.gk-audio-wave i { display: block; flex: 0 0 2px; height: var(--h); min-height: 5px; border-radius: 9px; background: #abaeab; }
.gk-audio-duration { font-size: 16px; white-space: nowrap; color: #4b4e51; }

/* HOW IT WORKS — FOLLOWS HERO IMMEDIATELY */
.gk-how { background: #fffdfa; padding: 24px 0 50px; }
.gk-how-inner { width: min(calc(100% - 152px), 1384px); margin-left: max(76px, calc((100% - 1460px) / 2)); }
.gk-how-eyebrow {
  margin: 0 0 6px;
  color: var(--gk-red);
  font-size: 16px; line-height: 1.25; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.gk-how h2 {
  margin: 0 0 2px;
  font: 500 49px/1.05 "Newsreader", Georgia, serif;
  letter-spacing: -.04em;
}
.gk-how-intro { margin: 0 0 25px; color: #30333a; font-size: 20px; line-height: 1.4; }
.gk-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.gk-step {
  display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px;
  min-height: 146px; padding: 17px 32px;
  background: #fffdfa; border: 1.5px solid #d8cfc6;
  border-radius: 12px;
}
.gk-step-number { color: var(--gk-red); font: 500 26px/1.2 "Newsreader", Georgia, serif; padding-top: 1px; }
.gk-step h3 { margin: 0 0 8px; font: 500 27px/1.1 "Newsreader", Georgia, serif; letter-spacing: -.02em; }
.gk-step p { margin: 0; color: #292b32; font-size: 16px; line-height: 1.36; }

/* Pre-existing closing invitation (below approved screenshot's crop). */
.gk-closing { padding: 70px 24px; background: #2e4a5c; color: white; text-align: center; }
.gk-closing-inner { max-width: 730px; margin: 0 auto; }
.gk-closing h2 { margin: 0 0 14px; font: 500 clamp(32px,4vw,48px)/1.12 "Newsreader", Georgia, serif; }
.gk-closing p { color: #e2e7e5; font-size: 17px; line-height: 1.6; margin: 0 0 26px; }
.gk-button-closing { color: #233c48 !important; background: #fffdfa; }
.gk-footer { padding: 30px 20px; background: #fffdfa; text-align: center; color: #65716a; font-size: 12px; }

/* TABLETS / SMALL LAPTOPS: scale the whole photo composition, not its crop. */
@media (max-width: 1530px) and (min-width: 1101px) {
  .gk-header-inner, .gk-hero-inner, .gk-how-inner { width: calc(100% - 96px); margin-inline: auto; }
  .gk-nav { padding-right: 0; gap: 33px; }
  .gk-hero-inner { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 32px; }
  .gk-hero-copy h1 { font-size: clamp(44px, 4.15vw, 63px); }
  .gk-hero-description { font-size: clamp(17px,1.45vw,21px); }
  .gk-button { min-height: 50px; font-size: 15px; padding-inline: 16px; }
  .gk-button-primary, .gk-button-secondary { min-width: 0; }
  .gk-preview { height: auto; aspect-ratio: 844 / 495; }
  .gk-preview-right { grid-template-rows: 54.3% minmax(0,1fr); gap: 12px; }
  .gk-preview { gap: 12px; }
  .gk-preview-memory { padding: 11px 17px 12px; }
  .gk-preview-label { font-size: clamp(10px,.95vw,15px); }
  .gk-preview-title { font-size: clamp(25px,2.4vw,36px); }
  .gk-preview-contributor { font-size: clamp(11px,1.05vw,16px); }
  .gk-preview-quote { font-size: clamp(12px,1.24vw,19px); margin-bottom: 10px; }
  .gk-audio-play { width: 32px; height: 32px; flex-basis: 32px; }
  .gk-audio-duration { font-size: 12px; }
  .gk-audio-wave { height: 20px; }
  .gk-how-inner { max-width: 1384px; }
}

/* MOBILE / TABLET: stack hero so photos remain complete and legible. */
@media (max-width: 1100px) {
  .gk-header-inner, .gk-hero-inner, .gk-how-inner { width: min(92%, 760px); margin-inline: auto; }
  .gk-header { height: 70px; }
  .gk-brand-name { font-size: 29px; }
  .gk-brand-mark { width: 43px; height: 43px; font-size: 29px; }
  .gk-menu-toggle { display: inline-flex; padding: 10px 15px; border: 1px solid var(--gk-border); background: #fffdfa; border-radius: 9px; }
  .gk-nav { display: none; position: absolute; top: 70px; right: 4%; left: 4%; z-index: 5; background: #fffdfa; box-shadow: 0 14px 32px rgba(30,35,35,.13); border: 1px solid var(--gk-border); border-radius: 12px; padding: 15px; flex-direction: column; gap: 10px; align-items: stretch; }
  .gk-nav-open { display: flex; }
  .gk-nav a { padding: 11px; }
  .gk-nav-organizer { min-height: 45px; }
  .gk-hero { padding: 42px 0 45px; }
  .gk-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .gk-hero-copy h1 { font-size: clamp(45px, 7vw, 64px); white-space: normal; }
  .gk-hero-description { font-size: 19px; }
  .gk-preview { width: min(100%, 760px); height: auto; aspect-ratio: 844 / 495; gap: 14px; }
  .gk-preview-right { grid-template-rows: 54.3% minmax(0, 1fr); gap: 14px; }
  .gk-preview-memory { padding: 12px 18px; }
  .gk-preview-label { font-size: clamp(10px, 1.6vw, 15px); }
  .gk-preview-title { font-size: clamp(23px, 3.4vw, 36px); }
  .gk-preview-contributor { font-size: clamp(11px,1.8vw,16px); }
  .gk-preview-quote { font-size: clamp(12px,2vw,18px); margin-bottom: 11px; }
  .gk-audio-play { flex-basis: 32px; width: 32px; height: 32px; }
  .gk-audio-duration { font-size: 12px; }
  .gk-audio-wave { height: 20px; }
  .gk-how h2 { font-size: 44px; }
  .gk-steps { gap: 14px; }
  .gk-step { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}
@media (max-width: 640px) {
  .gk-header-inner, .gk-hero-inner, .gk-how-inner { width: calc(100% - 34px); }
  .gk-header { height: 64px; }
  .gk-brand-name { font-size: 26px; }
  .gk-brand-mark { width: 37px; height: 37px; font-size: 25px; }
  .gk-nav { top: 64px; }
  .gk-hero { padding: 36px 0 42px; }
  .gk-eyebrow { font-size: 12px; letter-spacing: .12em; }
  .gk-hero-copy h1 { font-size: clamp(40px, 10.2vw, 55px); line-height: 1.04; letter-spacing: -.035em; }
  .gk-title-break { display: none; }
  .gk-hero-description { font-size: 16px; line-height: 1.5; margin-bottom: 23px; }
  .gk-hero-actions { gap: 10px; flex-wrap: wrap; }
  .gk-button { min-height: 47px; font-size: 14px; padding: 10px 17px; }
  .gk-privacy { font-size: 11px; }
  /* Mobile: vertically stack the photos at their original aspect ratios.
     No fixed-height narrow column can crop Margaret's face. */
  .gk-preview { grid-template-columns: 1fr; height: auto; aspect-ratio: auto; gap: 12px; }
  .gk-preview-portrait-wrap { height: auto; aspect-ratio: 380 / 495; border-radius: 12px; }
  .gk-preview-family-wrap { height: auto; aspect-ratio: 449 / 269; border-radius: 12px; }
  .gk-preview-portrait, .gk-preview-family { height: 100%; object-fit: contain; }
  .gk-preview-right { grid-template-rows: auto auto; gap: 12px; }
  .gk-preview-memory { min-height: 185px; padding: 18px 20px; border-radius: 12px; }
  .gk-preview-label { font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; }
  .gk-preview-title { font-size: 31px; }
  .gk-preview-contributor { font-size: 14px; margin-bottom: 6px; }
  .gk-preview-quote { white-space: normal; font-size: 17px; line-height: 1.3; margin-bottom: 12px; }
  .gk-preview-audio { gap: 12px; }
  .gk-audio-play { width: 34px; height: 34px; flex-basis: 34px; }
  .gk-audio-duration { font-size: 12px; }
  .gk-audio-wave { height: 22px; }
  .gk-how { padding: 37px 0 45px; }
  .gk-how-eyebrow { font-size: 11px; }
  .gk-how h2 { font-size: 39px; }
  .gk-how-intro { font-size: 16px; }
  .gk-steps { grid-template-columns: 1fr; gap: 12px; }
  .gk-step { min-height: 0; grid-template-columns: 35px 1fr; gap: 10px; padding: 18px; }
  .gk-step-number { font-size: 22px; }
  .gk-step h3 { font-size: 23px; }
  .gk-step p { font-size: 14px; }
  .gk-closing { padding: 50px 22px; }
}


/* Integration styles for the *real* GetKoselig header() and footer().
   The standalone design has a .gk-header; the SPA's header() uses
   .container.topbar, .brand, .brand-mark, and .nav instead — and that
   component is now defined ONCE, in styles.css, identically for every
   page (see the comment above .topbar there). Nothing route-scoped for
   the topbar belongs here or anywhere else; only the footer keeps a
   home-specific look, since that's a different component. */
#app[data-route="home"] .gk-page > .footer {
  background: #fffdfa;
  color: #65716a;
  padding: 30px 20px;
}

/* GetKoselig "Simple for everyone" visual redesign.
   Scoped to existing .gk-how section. Append to home-app.css.
   Reuses site palette and fonts; no new libraries required. */
.gk-how {
  background: var(--cream);
  padding: clamp(44px, 4.4vw, 76px) 0 clamp(62px, 5vw, 90px);
}
.gk-how .gk-how-inner {
  width: min(calc(100% - 100px), 1460px);
  margin-inline: auto;
  max-width: none;
}
.gk-how .gk-how-eyebrow {
  margin: 0 0 9px;
  color: var(--falu);
  font: 700 clamp(12px, 1vw, 16px)/1.25 "DM Sans", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gk-how #gk-how-title {
  margin: 0 0 8px;
  font: 500 clamp(38px, 3.7vw, 58px)/1.04 "Newsreader", Georgia, serif;
  letter-spacing: -.035em;
  color: var(--fjord);
}
.gk-how .gk-how-intro {
  margin: 0 0 clamp(30px, 3.4vw, 54px);
  font: 400 clamp(16px, 1.25vw, 21px)/1.45 "DM Sans", sans-serif;
  color: var(--ink);
}
.gk-how .gk-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(14px, 1.3vw, 22px);
  align-items: stretch;
}
.gk-how .gk-step {
  position: relative;
  isolation: isolate;
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 280px;
  height: auto;
  aspect-ratio: 1.60;
  padding: clamp(24px, 2vw, 36px);
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  box-shadow: none;
}
.gk-how .gk-step-create { background: var(--fjord); color: var(--paper); }
.gk-how .gk-step-invite { background: var(--falu); color: var(--paper); }
.gk-how .gk-step-gather { background: var(--ochre); color: #211d16; }
.gk-how .gk-step-copy {
  position: relative;
  z-index: 2;
  width: 38%;
  max-width: 275px;
}
.gk-how .gk-step-number {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: inherit;
  font: 500 clamp(24px, 2vw, 36px)/1.0 "Newsreader", Georgia, serif;
}
.gk-how .gk-step h3 {
  margin: 0 0 18px;
  color: inherit;
  font: 500 clamp(38px, 3.1vw, 57px)/.99 "Newsreader", Georgia, serif;
  letter-spacing: -.038em;
}
.gk-how .gk-step p {
  max-width: 250px;
  margin: 0;
  color: inherit;
  font: 400 clamp(15px, 1.12vw, 20px)/1.34 "DM Sans", sans-serif;
  text-wrap: pretty;
}
.gk-how .gk-step-art {
  position: absolute;
  z-index: 1;
  display: block;
  width: 82%;
  max-width: none;
  height: 100%;
  min-height: 0;
  right: -10%;
  bottom: 0;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  user-select: none;
}
.gk-how .gk-step-create .gk-step-art { width: 82%; height: 100%; right: -10%; bottom: 0; }
.gk-how .gk-step-invite .gk-step-art { width: 82%; height: 100%; right: -10%; bottom: 0; }
.gk-how .gk-step-gather .gk-step-art { width: 82%; height: 100%; right: -10%; bottom: 0; }

/* Compact horizontal cards only on tablets; desktop keeps the three-column sequence. */
@media (max-width: 1049px) {
  .gk-how .gk-how-inner { width: min(calc(100% - 48px), 850px); margin-inline: auto; }
  .gk-how .gk-steps { grid-template-columns: 1fr; gap: 18px; }
  .gk-how .gk-step {
    width: 100%;
    aspect-ratio: auto;
    min-height: 260px;
    padding: 30px 34px;
  }
  .gk-how .gk-step-copy { width: 47%; max-width: 365px; }
  .gk-how .gk-step h3 { font-size: clamp(42px, 5vw, 56px); }
  .gk-how .gk-step p { font-size: clamp(17px, 1.95vw, 20px); max-width: 355px; }
  .gk-how .gk-step-art,
  .gk-how .gk-step-create .gk-step-art,
  .gk-how .gk-step-invite .gk-step-art,
  .gk-how .gk-step-gather .gk-step-art {
    width: 65%; height: 104%; right: -1%; bottom: -1%;
  }
}
@media (max-width: 560px) {
  .gk-how { padding: 43px 0 56px; }
  .gk-how .gk-how-inner { width: calc(100% - 28px); }
  .gk-how .gk-how-eyebrow { font-size: 11px; }
  .gk-how #gk-how-title { font-size: clamp(35px, 9.5vw, 44px); }
  .gk-how .gk-how-intro { font-size: 16px; margin-bottom: 28px; }
  .gk-how .gk-steps { gap: 14px; }
  .gk-how .gk-step {
    height: 405px;
    min-height: 405px;
    aspect-ratio: auto;
    padding: 23px 26px;
    border-radius: 14px;
  }
  .gk-how .gk-step-copy { width: 100%; max-width: 100%; }
  .gk-how .gk-step-number { font-size: 26px; margin-bottom: 5px; }
  .gk-how .gk-step h3 { font-size: 44px; margin-bottom: 9px; }
  .gk-how .gk-step p { max-width: 300px; font-size: 16px; line-height: 1.32; }
  .gk-how .gk-step-art,
  .gk-how .gk-step-create .gk-step-art,
  .gk-how .gk-step-invite .gk-step-art,
  .gk-how .gk-step-gather .gk-step-art {
    width: 97%;
    height: 60%;
    right: 0;
    bottom: 0;
    object-position: bottom center;
  }
}

/* Intermediate desktop: keep three cards across, with copy and art balanced inside each. */
@media (min-width:1050px) and (max-width:1350px) {
  .gk-how .gk-steps {grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .gk-how .gk-step {aspect-ratio:auto;min-height:285px;padding:23px}
  .gk-how .gk-step-copy {width:72%;max-width:none}
  .gk-how .gk-step h3 {font-size:clamp(35px,3.3vw,45px)}
  .gk-how .gk-step p {font-size:15px}
  .gk-how .gk-step-art,
  .gk-how .gk-step-create .gk-step-art,
  .gk-how .gk-step-invite .gk-step-art,
  .gk-how .gk-step-gather .gk-step-art {
    width:68%;height:60%;right:-5%;bottom:0;object-fit:contain;
  }
}
@media (min-width:641px) and (max-width:1049px) {
  .gk-how .gk-step {aspect-ratio:auto;height:auto;min-height:205px;padding:25px 28px}
  .gk-how .gk-step-copy {width:52%;max-width:390px}
  .gk-how .gk-step-art,
  .gk-how .gk-step-create .gk-step-art,
  .gk-how .gk-step-invite .gk-step-art,
  .gk-how .gk-step-gather .gk-step-art {
    width:42%;height:100%;right:1%;bottom:0;object-fit:contain;
  }
}

/* Phase A: compact, content-led visitor layouts across phone widths. */
.gk-page {max-width:100%;overflow-x:clip}
.gk-hero-inner,.gk-how-inner,.gk-preview,.gk-hero-copy {min-width:0}
.gk-hero-copy h1 {overflow-wrap:normal}
.gk-audio-sample {flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#e7eeed;color:var(--gk-blue);font-size:13px;font-weight:700;line-height:1.2}
@media (max-width:640px) {
  .gk-hero-copy h1 {overflow-wrap:break-word;white-space:normal}
  .gk-hero {padding:25px 0 30px}
  .gk-hero-inner {gap:22px}
  .gk-privacy {font-size:13px}
  .gk-preview {
    display:grid;grid-template-columns:minmax(0,0.94fr) minmax(0,1.06fr);
    grid-template-rows:190px auto;gap:10px;width:100%;height:auto
  }
  .gk-preview-portrait-wrap {
    grid-column:1;grid-row:1;height:190px;aspect-ratio:auto;
    overflow:hidden
  }
  .gk-preview-portrait {height:100%;object-fit:cover;object-position:center 30%}
  .gk-preview-right {display:contents}
  .gk-preview-family-wrap {
    grid-column:2;grid-row:1;height:190px;aspect-ratio:auto;
    overflow:hidden
  }
  .gk-preview-family {height:100%;object-fit:cover;object-position:center}
  .gk-preview-memory {
    grid-column:1/-1;grid-row:2;min-height:0;padding:13px 16px
  }
  .gk-preview-label {font-size:11px}
  .gk-preview-title {font-size:26px}
  .gk-preview-contributor {font-size:13px}
  .gk-preview-quote {font-size:15px;margin-bottom:10px}
  .gk-preview-audio {gap:10px}
  .gk-how .gk-step {
    height:auto;min-height:0;aspect-ratio:auto;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,38%);
    align-items:center;gap:8px;padding:18px 16px
  }
  .gk-how .gk-step-copy {width:auto;max-width:none}
  .gk-how .gk-step-number {font-size:22px;margin-bottom:3px}
  .gk-how .gk-step h3 {font-size:34px;margin-bottom:6px}
  .gk-how .gk-step p {font-size:15px;line-height:1.4;max-width:none}
  .gk-how .gk-step-art,
  .gk-how .gk-step-create .gk-step-art,
  .gk-how .gk-step-invite .gk-step-art,
  .gk-how .gk-step-gather .gk-step-art {
    position:relative;grid-column:2;grid-row:1;
    width:100%;height:125px;max-width:100%;
    right:auto;bottom:auto;object-fit:contain;object-position:center
  }
  #app[data-route="home"] .gk-page > .footer a {
    display:inline-flex;align-items:center;min-height:44px;padding:8px 4px
  }
}
@media (max-width:390px) {
  .gk-preview {grid-template-rows:155px auto}
  .gk-preview-portrait-wrap,.gk-preview-family-wrap {height:155px}
  .gk-how .gk-step {grid-template-columns:minmax(0,1fr) minmax(80px,34%)}
  .gk-how .gk-step-art,.gk-how .gk-step-create .gk-step-art,.gk-how .gk-step-invite .gk-step-art,.gk-how .gk-step-gather .gk-step-art {height:110px}
}


/* Homepage monetization additions. Brand-aligned color and scale correction. */
.gk-support-ribbon {
  padding: 20px 24px 19px;
  background: #2e4a5c;
  color: #fff;
  text-align: center;
}
.gk-support-ribbon h2 {
  margin: 0 0 6px;
  color: #fff;
  font: 500 30px/1.1 "Newsreader", Georgia, serif;
  letter-spacing: -.02em;
}
.gk-support-ribbon p {
  margin: 3px 0;
  color: #fff;
  font: 400 15px/1.5 "DM Sans", sans-serif;
}
.gk-disclosure-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}
.gk-resource-band, .gk-journal-band {background:var(--cream);}
.gk-resource-band {padding:48px 0 44px;}
.gk-journal-band {padding:42px 0 54px;border-top:1px solid var(--gk-border);}
.gk-merch-inner {
  width:min(calc(100% - 152px),1384px);
  margin-left:max(76px,calc((100% - 1460px)/2));
  display:grid;
  grid-template-columns:minmax(0,270px) minmax(0,1fr);
  gap:30px;
  align-items:start;
}
.gk-resource-cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}
.gk-journal-cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.gk-merch-intro h2 {
  margin:0 0 16px;
  color:var(--gk-heading);
  font:500 42px/1.02 "Newsreader",Georgia,serif;
  letter-spacing:-.028em;
}
.gk-journal-band .gk-merch-intro h2 {font-size:40px;}
.gk-merch-intro p {
  margin:0 0 20px;
  color:var(--gk-copy);
  font:400 17px/1.48 "DM Sans",sans-serif;
}
.gk-merch-button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:var(--gk-red);
  color:#fff !important;
  border-radius:9px;
  padding:14px 18px;
  font:700 17px/1.3 "DM Sans",sans-serif;
  white-space:nowrap;
}
.gk-merch-button:hover {filter:brightness(.92);}
.gk-merch-textlink, .gk-merch-link {
  color:var(--gk-red) !important;
  font:700 16px/1.35 "DM Sans",sans-serif;
}
.gk-merch-textlink span, .gk-merch-link span {
  margin-left:5px;
  font-size:21px;
  font-weight:400;
  vertical-align:-1px;
}
.gk-merch-card {min-width:0;}
.gk-merch-image {
  display:block;
  overflow:hidden;
  margin-bottom:13px;
  border-radius:11px;
  background:#e9dfd2;
  aspect-ratio:1.17;
}
.gk-journal-cards .gk-merch-image {aspect-ratio:2.08;}
.gk-merch-image img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .2s ease;
}
.gk-merch-image:hover img {transform:scale(1.025);}
.gk-merch-card h3 {
  margin:0 0 9px;
  color:#172334;
  font:600 21px/1.13 "Newsreader",Georgia,serif;
  letter-spacing:-.012em;
}
.gk-merch-card p {
  margin:0 0 12px;
  color:var(--gk-copy);
  font:400 16px/1.42 "DM Sans",sans-serif;
}
@media(max-width:1190px) {
  .gk-merch-inner {width:calc(100% - 96px);margin-inline:auto;grid-template-columns:230px minmax(0,1fr);gap:22px;}
  .gk-resource-cards {gap:14px;}
  .gk-journal-cards {gap:18px;}
  .gk-merch-intro h2 {font-size:36px;}
  .gk-merch-card h3 {font-size:19px;}
  .gk-merch-card p {font-size:14px;}
}
@media(max-width:950px) {
  .gk-merch-inner {width:min(calc(100% - 64px),760px);grid-template-columns:1fr;gap:24px;}
  .gk-merch-intro h2, .gk-journal-band .gk-merch-intro h2 {font-size:37px;}
  .gk-merch-intro h2 br {display:none;}
  .gk-merch-intro p {max-width:580px;}
  .gk-resource-cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;}
  .gk-journal-cards {gap:18px;}
}
@media(max-width:650px) {
  .gk-support-ribbon {padding:19px 17px;}
  .gk-support-ribbon h2 {font-size:26px;}
  .gk-support-ribbon p {font-size:13px;}
  .gk-merch-inner {width:calc(100% - 34px);gap:20px;}
  .gk-resource-band {padding:32px 0 34px;}
  .gk-journal-band {padding:32px 0 42px;}
  .gk-resource-cards, .gk-journal-cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 15px;}
  .gk-journal-cards article:last-child {grid-column:1/-1;max-width:calc(50% - 8px);}
  .gk-merch-card h3 {font-size:19px;}
  .gk-merch-card p {font-size:14px;}
  .gk-merch-intro p {font-size:16px;}
}
@media(max-width:380px) {
  .gk-resource-cards, .gk-journal-cards {grid-template-columns:1fr;}
  .gk-journal-cards article:last-child {grid-column:auto;max-width:none;}
}
