:root {
  color-scheme: light;
  --ink: #083f49;
  --ink-soft: #526d69;
  --navy: #06333d;
  --teal: #087c85;
  --green: #2f8c24;
  --green-dark: #216b29;
  --green-pale: #eaf2d5;
  --cream: #fff7df;
  --paper: #f5ead0;
  --gold: #f7b83f;
  --coral: #ed6d5e;
  --line: #dec995;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { min-width: 320px; margin: 0; background: linear-gradient(180deg, #fbf1d7 0, var(--cream) 430px, #fff9e8 100%); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.section-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 34px;
  min-height: 82px; padding: 12px max(32px, calc((100vw - 1320px) / 2));
  border-bottom: 4px solid var(--gold); background: rgba(6, 51, 61, .97);
  box-shadow: 0 5px 0 rgba(8, 124, 133, .24), 0 10px 22px rgba(6, 51, 61, .14); backdrop-filter: blur(15px);
}
.brand { display: inline-flex; align-items: center; gap: 0; min-width: max-content; color: var(--cream); }
.brand-mascot { position: relative; z-index: 2; display: block; flex: 0 0 auto; width: 49px; aspect-ratio: 1; overflow: visible; }
.brand-mascot::before { position: absolute; inset: 1px; border: 3px solid #fff7df; border-radius: 50%; background: #88d33c; box-shadow: 0 0 0 2px #267620; content: ''; }
.brand-mascot > span { position: absolute; z-index: 1; top: -5px; left: -7px; width: 62px; aspect-ratio: 1; background: url('../images/ui/kwaker-logo-wave-yellow-v1.webp') center / contain no-repeat; }
.brand-word { position: relative; z-index: 1; display: flex; min-height: 43px; flex-direction: column; align-items: center; justify-content: center; margin-left: -7px; padding: 4px 10px 4px 12px; border: 2px solid rgba(255, 247, 223, .94); border-left: 0; border-radius: 0 13px 13px 0; background: #2f8c24; color: #fff7df; text-align: center; }
.brand-word strong { display: inline-flex; font: 900 18px/.92 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif; letter-spacing: -.065em; -webkit-text-stroke: .8px #07515b; paint-order: stroke fill; }
.brand-word strong span { color: #fff7df; }
.brand-word strong b { margin-left: 1px; color: #ffd33e; font: inherit; }
.brand-word small { margin-top: 2px; color: #fff7df; font-size: 7px; font-weight: 900; letter-spacing: .055em; line-height: 1; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 42px); flex: 1; }
.main-nav a, .site-footer nav a { color: #e7f3d2; font-size: 13px; font-weight: 700; transition: color .18s ease; }
.main-nav a:hover, .site-footer nav a:hover { color: var(--gold); }
.header-actions, .hero-actions, .account-actions { display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 14px; font-size: 13px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 17px; }
.button-soft { border-color: #e4c36e; color: #604914; background: #fff0be; box-shadow: 0 3px 0 #c68b2b; }
.button-soft:hover { background: #ffe79b; }
.button-primary { border-color: #1e6f26; color: white; background: linear-gradient(180deg, #42ad3a, #28842d); box-shadow: 0 4px 0 #1b6422, 0 9px 19px rgba(38, 111, 41, .18); }
.button-primary:hover { box-shadow: 0 5px 0 #1b6422, 0 12px 22px rgba(38, 111, 41, .24); }
.button-outline { border-color: #a5c984; color: var(--green-dark); background: rgba(255, 255, 246, .8); }
.button-outline:hover { background: white; }
.nav-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 84px); width: min(1280px, calc(100% - 64px)); min-height: 630px; margin: 0 auto; padding: 54px 12px 72px; }
.hero-copy { position: relative; z-index: 1; padding-left: clamp(0px, 3vw, 46px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #ac681b; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > i { width: 9px; height: 9px; border-radius: 50%; background: #88d33c; box-shadow: 0 0 0 4px #deedbd; }
.eyebrow-green { color: #277b70; }
.hero h1, .section-heading h2, .account-copy h2, .closing-inner h2 { margin: 18px 0 17px; font: 900 clamp(46px, 5.7vw, 76px)/.98 'Trebuchet MS', sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-copy > p { max-width: 490px; margin: 0; color: #536d59; font-size: 17px; line-height: 1.72; }
.hero-actions { flex-wrap: wrap; margin-top: 30px; }
.hero-scene { position: relative; width: 100%; margin: 0; padding: 9px; border: 4px solid var(--navy); border-radius: 25px; background: var(--gold); box-shadow: 0 0 0 3px #fff7df, 0 0 0 6px #087c85, 0 23px 50px rgba(6, 51, 61, .2); transform: rotate(.35deg); }
.hero-scene img { display: block; width: 100%; aspect-ratio: 1.52; border: 2px solid #fff7df; border-radius: 15px; object-fit: cover; }
.hero-scene figcaption { position: absolute; right: 24px; bottom: 23px; display: grid; min-width: 210px; padding: 12px 17px; border: 2px solid #fff7df; border-radius: 12px; color: #fff7df; background: linear-gradient(#42a939, #247d2b); box-shadow: 0 4px 0 #175923; }
.hero-scene figcaption span { color: #e6f6cb; font-size: 10px; font-weight: 700; }
.hero-scene figcaption strong { font: 900 16px 'Trebuchet MS', sans-serif; }

.world-section { padding-top: 68px; padding-bottom: 112px; }
.section-heading { max-width: 680px; }
.section-heading h2, .account-copy h2 { margin: 11px 0 12px; font-size: clamp(34px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.section-heading p, .account-copy > p { margin: 0; color: #657b68; font-size: 15px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 37px; }
.feature-card { min-height: 330px; overflow: hidden; padding: 9px; border: 2px solid #087c85; border-radius: 18px; background: var(--cream); box-shadow: 0 5px 0 #d4b96f; }
.feature-card:nth-child(2) { background: #fff1c8; }
.feature-card:nth-child(3) { background: #f7ead1; }
.feature-image { display: block; width: 100%; height: 155px; border: 2px solid #fff7df; border-radius: 12px; object-fit: cover; }
.feature-copy { padding: 14px 13px 12px; }
.feature-card h3 { margin: 0 0 7px; font: 900 19px 'Trebuchet MS', sans-serif; }
.feature-card p { min-height: 42px; margin: 0; color: #64786a; font-size: 13px; line-height: 1.6; }
.feature-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--teal); font-size: 12px; font-weight: 900; }

.news-section { padding: 77px 0 88px; border-top: 5px solid #e3bf69; border-bottom: 5px solid #e3bf69; background: linear-gradient(130deg, #f1dfb7, #fff5dc 68%, #ebd4a0); }
.news-heading { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 24px; }
.news-heading h2 { margin-top: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 32px; }
.news-status { grid-column: 1 / -1; margin: 0; padding: 25px; border: 2px dashed #bca15f; border-radius: 16px; color: #60716a; background: rgba(255, 247, 223, .8); text-align: center; }
.news-card { display: flex; min-height: 214px; flex-direction: column; align-items: flex-start; padding: 22px; border: 2px solid #087c85; border-radius: 18px; background: var(--cream); box-shadow: 0 5px 0 #d0b56d; }
.news-card time, .news-dialog .news-date { color: #829177; font-size: 11px; font-weight: 700; }
.news-card h3 { margin: 9px 0 8px; font: 900 19px/1.2 'Trebuchet MS', sans-serif; }
.news-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #667968; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card button { margin-top: auto; padding: 18px 0 0; border: 0; color: #378837; background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }

.account-section { padding-top: 100px; padding-bottom: 100px; }
.account-card { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #cfe2b3; border-radius: 26px; background: var(--cream); box-shadow: 0 9px 0 rgba(57, 109, 45, .07); }
.account-art { position: relative; display: grid; min-height: 360px; place-items: center; overflow: hidden; background: linear-gradient(180deg, rgba(6, 51, 61, .08), rgba(6, 51, 61, .2)), url('../images/kwaakfu-nest-v1.webp') center / cover; }
.account-sun { position: absolute; top: 46px; right: 53px; width: 78px; height: 78px; border-radius: 50%; background: #ffdd64; box-shadow: 0 0 0 15px rgba(255, 221, 100, .22); }
.account-duck { position: relative; z-index: 1; display: block; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(6, 51, 61, .32)); transform: rotate(-5deg); }
.account-ripple { position: absolute; bottom: 24px; width: 250px; height: 26px; border: 3px solid rgba(62, 150, 139, .38); border-radius: 50%; }
.account-copy { align-self: center; padding: clamp(32px, 6vw, 70px); }
.account-copy h2 { font-size: clamp(37px, 4vw, 52px); }
.account-copy > p { max-width: 500px; }
.account-actions { align-items: flex-start; flex-direction: column; margin-top: 24px; }
.text-link { padding: 6px 0; color: #398a37; font-size: 12px; font-weight: 800; }

.closing-cta { padding: 56px 0; color: white; background: linear-gradient(110deg, #06333d, #087c85); border-block: 5px solid var(--gold); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.closing-inner .eyebrow { color: #e2f5c8; }
.closing-inner h2 { margin: 10px 0 7px; font-size: clamp(30px, 4vw, 42px); }
.closing-inner p { margin: 0; color: #e7f4d9; font-size: 14px; }
.closing-inner .button-primary { flex: 0 0 auto; border-color: #ffe68a; color: #604a13; background: linear-gradient(#ffe374, #ffc83d); box-shadow: 0 4px 0 #c37d1d; }
.site-footer { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 18px; color: #61726d; font-size: 11px; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font: 900 17px 'Trebuchet MS', sans-serif; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { font-size: 11px; }

.news-dialog { position: fixed; width: min(650px, calc(100% - 28px)); max-height: min(82vh, 780px); padding: 35px; border: 1px solid #b7d497; border-radius: 23px; color: var(--ink); background: #fffef3; box-shadow: 0 25px 100px rgba(7, 46, 28, .35); }
.news-dialog::backdrop { background: rgba(13, 42, 26, .57); backdrop-filter: blur(4px); }
.news-dialog form { position: absolute; top: 13px; right: 13px; margin: 0; }
.news-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d1a035; border-radius: 50%; color: #68490b; background: #ffdb4c; font-size: 24px; cursor: pointer; }
.news-dialog .news-date { margin: 19px 0 5px; }
.news-dialog h2 { max-width: 520px; margin: 0 0 20px; font: 900 30px/1.1 'Trebuchet MS', sans-serif; }
.news-dialog-body { overflow-y: auto; max-height: 55vh; color: #526b58; font-size: 14px; line-height: 1.75; }
.news-dialog-body img { max-width: 100%; height: auto; border-radius: 12px; }
.news-dialog-body a { color: #2e8131; text-decoration: underline; }
.news-dialog-body p:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .site-header { gap: 19px; }
  .brand-word small { display: none; }
  .hero { gap: 32px; min-height: 560px; }
  .hero h1 { font-size: clamp(43px, 6vw, 62px); }
  .hero-copy > p { font-size: 15px; }
  .feature-card { padding: 22px 19px; }
}
@media (max-width: 680px) {
  .section-wrap { width: min(100% - 36px, 520px); }
  .site-header { min-height: 70px; padding: 9px 18px; }
  .brand-mascot { width: 42px; }
  .brand-mascot > span { width: 54px; }
  .brand-word { min-height: 38px; padding-right: 7px; }
  .brand-word strong { font-size: 16px; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 12px; left: 12px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 9px; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--cream); box-shadow: 0 15px 25px rgba(31, 79, 34, .13); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 9px; }
  .main-nav a:hover { background: #eff7e1; }
  .header-actions { margin-left: auto; gap: 7px; }
  .header-actions .button { min-height: 37px; padding-inline: 12px; font-size: 11px; }
  .nav-toggle { display: grid; width: 37px; height: 37px; align-content: center; justify-items: center; gap: 4px; margin-left: 2px; border: 1px solid #61999a; border-radius: 11px; background: #fff7df; }
  .nav-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--green-dark); }
  .hero { grid-template-columns: 1fr; gap: 36px; width: min(100% - 36px, 540px); min-height: auto; padding: 57px 0 67px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin-top: 17px; font-size: clamp(45px, 13vw, 63px); }
  .hero-copy > p { max-width: 500px; font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-scene { width: calc(100% - 10px); margin: 0 auto; transform: rotate(.4deg); }
  .hero-scene img { aspect-ratio: 1.18; }
  .hero-scene figcaption { right: 24px; bottom: 23px; }
  .hero-scene::before { inset: 14px -9px -13px 16px; }
  .world-section { padding-top: 53px; padding-bottom: 72px; }
  .section-heading h2, .account-copy h2 { font-size: 37px; }
  .feature-grid, .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { display: grid; min-height: 0; grid-template-columns: 125px 1fr; align-items: stretch; gap: 5px; padding: 8px; }
  .feature-image { height: 100%; min-height: 142px; }
  .feature-copy { align-self: center; padding: 12px; }
  .feature-card p { min-height: 0; }
  .news-section { padding: 59px 0 65px; }
  .news-heading { align-items: flex-start; flex-direction: column; }
  .news-heading .button { min-height: 40px; }
  .news-card { min-height: 190px; }
  .account-section { padding-top: 66px; padding-bottom: 68px; }
  .account-card { grid-template-columns: 1fr; }
  .account-art { min-height: 235px; }
  .account-duck { width: 112px; height: 112px; font-size: 68px; }
  .account-sun { top: 27px; right: 28px; width: 55px; height: 55px; }
  .account-copy { padding: 29px 25px 32px; }
  .account-actions .button { width: 100%; }
  .closing-cta { padding: 38px 0; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
  .closing-inner .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; padding-top: 21px; padding-bottom: 21px; }
  .site-footer > span { order: 2; width: 100%; }
  .site-footer nav { margin-left: auto; gap: 12px; }
  .news-dialog { padding: 28px 21px; }
  .news-dialog h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
