/* Responsive refinements shared by the WordPress pages. */
:root { --wp-admin-offset: 0px; }
html { scroll-padding-top: calc(8rem + var(--wp-admin-offset)); }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.menu-open { position: fixed; width: 100%; overflow: hidden; }
.site-header { top: calc(14px + var(--wp-admin-offset)); }
.header-inner { position: relative; z-index: 2; }
.mobile-nav { position: relative; z-index: 2; overscroll-behavior: contain; }
.menu-backdrop { position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; padding: 0; background: #153d2f70; backdrop-filter: blur(4px); pointer-events: auto; z-index: 1; }
.hero-copy, .hero-person-row > *, .settling-step > div, .invitation-person > div { min-width: 0; }
.value-art { aspect-ratio: 1; }
.value-art img { object-fit: cover; }
.book-page-number { display: none; }
.step-number .icon { width: 26px; height: 26px; }
.motion-toggle, .footer-inner nav a, .footer-bottom a { min-height: 44px; }
.footer-bottom a { display: inline-flex; align-items: center; }
.text-link { overflow-wrap: anywhere; }
.legal-main { min-width: 0; overflow-wrap: anywhere; }
.legal-main :is(ul, ol) { padding-inline-start: 1.4rem; }
.legal-main table { display: block; max-width: 100%; overflow-x: auto; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right))); }
  .site-header { top: var(--wp-admin-offset); height: 98px; padding-top: 12px; }
  .header-inner { min-height: 74px; gap: .75rem; }
  .menu-toggle { width: 48px; height: 48px; }
  .mobile-nav { width: calc(100% - 48px); max-height: calc(100vh - 112px - var(--wp-admin-offset)); max-height: calc(100dvh - 112px - var(--wp-admin-offset)); padding: .75rem 1.5rem 1.25rem; }
  .mobile-nav a { min-height: 58px; font-size: 1.35rem; line-height: 1.4; }
  .mobile-nav a:last-child { margin-top: .7rem; padding: .9rem 1rem; border: 0; border-radius: 14px; background: var(--green); color: var(--paper); font: 600 1rem/1.5 var(--sans); }
  .hero { margin-top: -98px; }
  .hero-scene { transform: none; will-change: auto; }
  .scene-drift { animation: none; }
  .about { gap: 2rem; }
  .about h2 { font-size: clamp(2.25rem, 4.2vw, 3rem); }
  .portrait-stamp { right: 0; }
  .day-book { transform: none; }
  .day-panel { min-height: 0; }
  .timeline li { grid-template-columns: 100px minmax(0, 1fr); }
  .timeline li::before { left: 108px; }
  .timeline li:not(:last-child)::after { left: 111px; }
  .settling-steps { gap: 1.3rem; }
  .step-kicker { overflow-wrap: anywhere; }
  .value-tag { max-width: 100%; }
}

@media (min-width: 641px) and (max-width: 800px) {
  .about { grid-template-columns: 1fr; grid-template-areas: 'portrait' 'copy'; gap: 3rem; }
  .portrait-composition { width: 340px; }
  .about-copy { max-width: 620px; margin-inline: auto; }
  .about h2 { font-size: 3rem; }
  .values-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .value:nth-child(n) { transform: none; }
  .value-art { aspect-ratio: 1; }
  .value-art img { width: 300%; height: 100%; object-fit: cover; }
  .value-content { padding: 1.5rem; }
  .value h3 { font-size: 1.6rem; }
  .settling-steps { grid-template-columns: 1fr; gap: 1.8rem; max-width: 640px; margin-inline: auto; }
  .settling-steps::before { display: none; }
  .settling-step { display: flex; gap: 1.4rem; text-align: left; }
  .step-number { flex: 0 0 64px; height: 64px; margin: 0; }
}

@media (max-width: 640px) {
  :root { --section: clamp(3.5rem, 14vw, 5rem); }
  html { scroll-padding-top: calc(6.1rem + var(--wp-admin-offset)); }
  .wrap { width: calc(100% - max(20px, env(safe-area-inset-left)) - max(20px, env(safe-area-inset-right))); }
  .site-header { height: 88px; padding-top: 10px; }
  .header-inner { width: calc(100% - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right))); min-height: 68px; padding-inline: .7rem; gap: .5rem; }
  .brand { flex: 1 1 auto; min-width: 0; gap: .45rem; }
  .brand > span { min-width: 0; }
  .brand-gnome { flex: 0 0 27px; width: 27px; height: 43px; }
  .brand-name { font-size: clamp(1.05rem, 5.2vw, 1.45rem); line-height: 1.25; letter-spacing: -.055em; }
  .brand-sub { font-size: .6875rem; letter-spacing: .015em; line-height: 1.6; }
  .menu-toggle { flex: 0 0 46px; width: 46px; height: 46px; }
  .mobile-nav { width: calc(100% - 24px); margin-top: .5rem; padding: .5rem 1.1rem 1.1rem; max-height: calc(100vh - 104px - var(--wp-admin-offset)); max-height: calc(100dvh - 104px - var(--wp-admin-offset)); }
  .mobile-nav a { min-height: 54px; font-size: 1.3rem; }

  /* Content, portrait invitation and gnome each have their own flowing row. */
  .hero { margin-top: -88px; height: auto; min-height: 0; padding-top: 112px; padding-bottom: 62px; background: var(--cream); }
  .hero-inner { padding: 0; }
  .hero-copy { max-width: 35rem; }
  .hero-eyebrow { max-width: 25rem; font-size: .75rem; line-height: 1.6; letter-spacing: .06em; gap: .5rem; margin-bottom: 1.1rem; }
  .hero-eyebrow .icon { width: 16px; height: 16px; }
  .hero h1 { font-size: clamp(2.05rem, 9.5vw, 3.75rem); line-height: 1.18; letter-spacing: -.06em; margin-bottom: 1.1rem; overflow-wrap: normal; }
  .hero-description { max-width: 32rem; padding: 0; font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
  .hero-actions { gap: .35rem; margin-top: 1.4rem; }
  .hero-actions .button { width: min(100%, 340px); min-height: 56px; padding: .9rem 1rem; font-size: 1rem; }
  .hero-discover { min-height: 46px; padding: .6rem .25rem; font-size: .875rem; }
  .hero-scene { top: auto; bottom: 0; height: clamp(250px, 78vw, 435px); left: 0; right: 0; }
  .hero-scene img { position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
  .hero-scene::after { height: 42%; background: linear-gradient(var(--cream), #fff8ed00); }
  .hero-lights { top: 50%; }
  .hero-person-row { position: relative; inset: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; width: calc(100% - 40px); min-height: 178px; margin: 2rem auto .4rem; }
  .olga-welcome { flex: 1 1 220px; max-width: 275px; padding: .7rem; gap: .6rem; border-radius: 16px; transform: none; align-items: center; }
  .olga-welcome > img { flex: 0 0 43px; width: 43px; height: 43px; }
  .olga-welcome > span { min-width: 0; }
  .olga-welcome strong { font-size: 1rem; line-height: 1.4; }
  .olga-welcome span span { max-width: none; font-size: .8125rem; line-height: 1.4; }
  .hello-area { flex: 0 0 84px; width: 84px; height: 164px; margin: 0; transform: none; }
  .hello-wichtel { width: 82px; height: 123px; right: 0; bottom: 0; }
  .hello-bubble { top: 0; right: 0; min-width: 0; width: 150px; max-width: none; font-size: .875rem; padding: .55rem .65rem; transform: rotate(-4deg); }
  .hero-motion { position: relative; left: auto; bottom: auto; transform: none; display: flex; width: fit-content; max-width: calc(100% - 40px); margin: 1rem auto 0; min-height: 44px; font-size: .8125rem !important; white-space: normal; }
  .light-mote:nth-child(n+7) { display: none; }

  .at-a-glance { margin-top: -30px; }
  .facts { border-radius: 22px; padding: .5rem; gap: 0; }
  .fact { padding: 1.2rem .5rem; border: 0; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact strong { font-size: clamp(1.3rem, 5.3vw, 1.75rem); line-height: 1.35; }
  .fact strong span { font-size: 1rem; }
  .fact p { font-size: .875rem; line-height: 1.55; margin-top: .35rem; max-width: 190px; }
  .fact:last-child strong span { display: block; }

  .about { padding-top: 3.5rem; grid-template-columns: 1fr; grid-template-areas: 'portrait' 'copy'; gap: 2.5rem; }
  .portrait-composition { width: min(88%, 350px); padding: 0 0 1.7rem; }
  .portrait-frame { transform: rotate(1.5deg); border-width: 5px; }
  .portrait-composition::before { inset: 0 -5px 1rem 7px; transform: rotate(-3deg); }
  .portrait-label { left: -8px; right: 5px; bottom: 0; font-size: 1rem; line-height: 1.5; padding: .8rem; gap: .65rem; transform: rotate(-3deg); }
  .portrait-label .icon { flex-shrink: 0; width: 23px; height: 23px; }
  .portrait-stamp { top: -12px; right: -10px; width: 94px; height: 94px; font-size: .8125rem; border-width: 4px; }
  h2, .about h2, .section-heading.center h2, .day-intro h2, .settling h2, .little-things h2, .faq-intro h2 { font-size: clamp(2rem, 8.1vw, 3rem); line-height: 1.22; letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: pretty; }
  .section-heading { max-width: 100%; }
  .eyebrow { line-height: 1.7; margin-bottom: 1rem; }
  .about-copy p:not(.eyebrow), .section-heading > p:not(.eyebrow), .everyday-list p, .answer p, .settling-step p { line-height: 1.75; }
  .about-copy p, .value p, .timeline p, .settling-step p, .everyday-list p, .answer p { overflow-wrap: break-word; hyphens: auto; }
  .olga-signature { flex-wrap: wrap; gap: .15rem .65rem; }
  .arrow-link { min-height: 44px; }

  .concept { padding-block: var(--section); }
  .concept::before, .concept::after { left: 0; width: 100%; height: 35px; }
  .concept::before { top: -18px; }
  .concept::after { bottom: -18px; }
  .values-grid { margin-top: 2rem; gap: 1.3rem; max-width: 480px; }
  .value:nth-child(n) { transform: none; border-radius: 22px; }
  .value-art { aspect-ratio: 1; max-height: none; }
  .value-art img { width: 300%; height: 100%; object-fit: cover; }
  .value-content { padding: 1.3rem; }
  .value-top { margin-bottom: .65rem; }
  .value h3 { font-size: 1.6rem; line-height: 1.35; margin-bottom: .7rem; }
  .value p { font-size: 1rem; line-height: 1.75; }
  .value-tag { font-size: .875rem; border-radius: 12px; margin-top: 1rem; padding: .55rem .7rem; }
  .concept-foot { margin-top: 1.8rem; }

  .day-section { padding-block: var(--section); border-bottom-width: 7px; }
  .day-layout { gap: 1.6rem; }
  .day-intro { padding: 0 0 130px; }
  .day-intro > p:not(.eyebrow) { max-width: none; }
  .day-intro h2 { margin-bottom: 1.1rem; }
  .day-gnome { width: 80px; height: 120px; bottom: 0; left: 0; }
  .gnome-caption { left: 103px; right: 0; bottom: 28px; font-size: 1rem; }
  .day-book { width: calc(100% - 5px); border-radius: 6px 20px 20px 6px; border-left-width: 4px; box-shadow: 3px 4px 0 #d4ccae, 5px 7px 0 #e8dfc5, 8px 14px 25px #10291f25; }
  .book-label { padding: .95rem 1rem; font-size: .75rem; line-height: 1.5; }
  .book-label > span:nth-child(2) { max-width: none; letter-spacing: .02em; }
  .day-tabs { padding: .7rem .5rem; gap: .3rem; }
  .day-tabs button { min-height: 62px; flex-direction: column; border-radius: 12px; font-size: .875rem; padding: .55rem .1rem; gap: .25rem; }
  .day-panel { min-height: 0; padding: 1rem 1.2rem 0; animation: answer-arrive .25s ease both; }
  .panel-heading p { font-size: 1.45rem; line-height: 1.4; }
  .timeline { margin-top: 1.35rem; }
  .timeline li { display: block; padding: 0 0 1.5rem 1.2rem; }
  .timeline time { display: block; font-size: .875rem; margin-bottom: .4rem; }
  .timeline li::before { left: 0; top: 9px; }
  .timeline li:not(:last-child)::after { left: 3px; top: 14px; bottom: -9px; }
  .timeline h3 { font-size: 1rem; line-height: 1.5; }
  .timeline p, .timeline.compact p { font-size: 1rem; line-height: 1.7; }
  .day-footer { font-size: .75rem; line-height: 1.65; padding-block: 1rem; letter-spacing: .015em; }

  .settling > .section-heading { text-align: left; }
  .settling-steps { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 2rem; }
  .settling-steps::before { display: none; }
  .settling-step { display: flex; align-items: flex-start; text-align: left; gap: .85rem; }
  .step-number { flex: 0 0 44px; width: 44px; height: 44px; border-width: 0; margin: 0; }
  .step-number .icon { width: 22px; height: 22px; }
  .step-kicker { font-size: .75rem; letter-spacing: .025em; }
  .settling-step h3 { font-size: 1.45rem; line-height: 1.35; margin: .4rem 0 .6rem; }
  .settling-step p { font-size: 1rem; }
  .little-things { padding-block: var(--section); border-radius: 28px 28px 0 0; }
  .little-things-layout { gap: 2rem; }
  .everyday-love { font-size: 1rem; transform: none; }
  .everyday-list h3 { font-size: 1.5rem; }
  .everyday-list article { padding-block: 1.3rem; }
  .faq-section { gap: 1.5rem; }
  .faq-list summary { gap: .8rem; padding-block: 1.15rem; align-items: flex-start; font-size: 1rem; }
  .faq-list .plus { margin-top: .05rem; }
  .answer { padding: 0 0 1.25rem; }
  .contact-section { padding-block: var(--section); }
  .site-footer { padding-block: 1.7rem max(1.2rem, env(safe-area-inset-bottom)); }
  .footer-inner, .footer-bottom { align-items: flex-start; }
  .footer-inner nav { display: flex; gap: 0 1.25rem; flex-wrap: wrap; }
  .footer-inner nav .motion-toggle { flex-basis: 100%; }
  .footer-brand { font-size: 1.5rem; }
  .footer-bottom { gap: .35rem; font-size: .8125rem; }
  .footer-bottom a { white-space: normal; }
  .legal-main { padding-block: 2rem 4rem; }
  .legal-main h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); line-height: 1.2; margin-bottom: 1.8rem; }
  .legal-main h2 { font-size: 1.6rem; line-height: 1.35; }
  .legal-main p, .legal-main li { line-height: 1.75; }
  .legal-back { min-height: 44px; margin-bottom: 1.3rem; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero-person-row { width: calc(100% - 32px); gap: .4rem; }
  .hero-eyebrow { letter-spacing: .03em; }
  .olga-welcome { padding: .55rem; gap: .45rem; }
  .olga-welcome > img { flex-basis: 34px; width: 34px; height: 34px; }
  .olga-welcome strong { font-size: .9375rem; }
  .olga-welcome span span { font-size: .75rem; }
  .hello-area { flex-basis: 68px; width: 68px; }
  .hello-wichtel { width: 68px; height: 102px; }
  .hero-person-row { min-height: 165px; }
  .day-tabs button { font-size: .8125rem; }
  .day-panel { padding-inline: 1rem; }
  .value-content { padding: 1.1rem; }
  .settling-step { gap: .75rem; }
  .step-number { flex-basis: 36px; width: 36px; height: 36px; }
}

@media (max-width: 960px) and (orientation: landscape) and (max-height: 600px) {
  .site-header { height: 76px; padding-top: 6px; }
  .header-inner { min-height: 62px; }
  .mobile-nav { max-height: calc(100dvh - 88px - var(--wp-admin-offset)); }
  .mobile-nav a { min-height: 46px; padding-block: .55rem; font-size: 1.15rem; }
  .hero { margin-top: -76px; height: auto; min-height: 0; padding-top: 104px; padding-bottom: 64px; }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
  .hero-person-row { position: relative; inset: auto; min-height: 180px; margin: 2.5rem auto 0; }
  .hero-motion { position: relative; left: auto; bottom: auto; transform: none; display: flex; width: fit-content; margin: 1rem auto 0; }
}

@media (hover: none) {
  .button:hover, .value:hover, .value:nth-child(n):hover, .day-tabs button:hover, .olga-welcome:hover { transform: none; }
  .button:hover .icon:last-child { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .day-panel, .hero-copy { animation: none; }
}
