/* WOOT blog: shared styles for the listing and the post page.
   Tokens, fonts, buttons, header, logo and footer follow prototypes/home/index.html. Calm on purpose: no scroll animation. */
:root {
  --bg: #FCEFDF;
  --bg-2: #F8E5CC;
  --surface: #FFF8EE;
  --ink: #2A2420;
  --ink-2: #574B42;
  --line: rgba(42, 36, 32, .14);
  --blue: #3B4FA8;
  --orange: #E8913A;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0 0.12 .14 0 0 0 -.045'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  --topo-ink: rgba(150, 96, 44, .09);
  --topo-ink-index: rgba(150, 96, 44, .13);
  --orange-text: #C8681A;
  --mint-soft: #CDEFD8;
  --yellow: #F7DD9C;
  --peach-soft: #F6D2B8;
  --sand-tint: #F8E7D1;
  --sand-edge: rgba(150, 96, 44, .16);
  --btn-bg: #3B4FA8;
  --btn-ink: #FCEFDF;
  --btn-shadow: #E8913A;
  --feat-bg: #3B4FA8;
  --feat-ink: #FCEFDF;
  --feat-ink-2: #E9E2F0;
  --feat-accent: #F7DD9C;
  --feat-btn-bg: #FCEFDF;
  --feat-btn-ink: #2C3C8A;
  --chip-on-bg: #3B4FA8;
  --chip-on-ink: #FFFFFF;
  --footer-bg: #2C3C8A;
  --footer-ink: #FCEFDF;
  --footer-accent: #F7DD9C;
  --focus: #2C3C8A;
  --header-bg: rgba(252, 239, 223, .92);
  --shadow: 0 1px 0 rgba(42,36,32,.06), 0 18px 40px -22px rgba(59,79,168,.35);
  --shadow-lift: 0 1px 0 rgba(42,36,32,.06), 0 30px 54px -26px rgba(59,79,168,.48);
  --font-display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --r-card: 24px;
  --r-img: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151937;
    --bg-2: #1A1F45;
    --surface: #20265A;
    --ink: #F6EADB;
    --ink-2: #CBC1B6;
    --line: rgba(246, 234, 219, .16);
    --blue: #A9B5F5;
    --orange: #F0A050;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.92 0 0 0 0 0.86 .14 0 0 0 -.045'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
    --topo-ink: rgba(246, 234, 219, .05);
    --topo-ink-index: rgba(246, 234, 219, .085);
    --orange-text: #F4A65B;
    --mint-soft: #1E3F3E;
    --yellow: #3A3222;
    --peach-soft: #43291F;
    --sand-tint: #221F38;
    --sand-edge: rgba(246, 234, 219, .1);
    --btn-bg: #F0A050;
    --btn-ink: #1A1630;
    --btn-shadow: #A9B5F5;
    --feat-bg: #2E3880;
    --chip-on-bg: #A9B5F5;
    --chip-on-ink: #151937;
    --footer-bg: #0F1230;
    --footer-ink: #F6EADB;
    --focus: #F4A65B;
    --header-bg: rgba(21, 25, 55, .9);
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 18px 40px -22px rgba(0,0,0,.6);
    --shadow-lift: 0 1px 0 rgba(0,0,0,.2), 0 30px 54px -26px rgba(0,0,0,.75);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grain), var(--topo, none);
  background-size: 180px 180px, 1600px 1600px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1rem; color: var(--blue); margin-bottom: .7rem;
  display: flex; align-items: center; gap: .5em;
}
.burst { width: 1.05em; height: 1.05em; flex: none; color: var(--orange); }
.cat {
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: .95rem; line-height: 1.2; color: var(--blue);
}
.meta { color: var(--ink-2); font-size: .95rem; }
.meta .dot { margin: 0 .4em; }

/* Buttons (home page shape: pill with an offset orange shadow) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; line-height: 1.1; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--spring), box-shadow .45s var(--spring), background-color .2s;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 4px 0 var(--btn-shadow); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-small { min-height: 44px; padding: .55em 1.1em; font-size: 1rem; }
.btn .arrow { width: 1.35em; height: .8em; flex: none; transition: transform .45s var(--spring); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--btn-shadow); }
  .btn-ghost:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); transform: translateY(-2px); }
  .btn:hover .arrow { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow); transition-duration: .07s; }
}

/* Header: always solid, sticky like the home page's */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; text-decoration: none; line-height: 1; border-radius: 10px; }
.logo-svg { display: block; height: var(--logo-h, 60px); width: auto; overflow: visible; }
.lg-b { fill: var(--lg-b, var(--blue)); }
.lg-o { fill: #C7681B; opacity: var(--lg-o-op, 1); }
.lg-c { fill: #F8EBDA; }
/* Header logo v2: the WA coastline sits back at 30% so the wordmark leads */
.site-header .logo-svg { --lg-o-op: .3; }
.main-nav { margin-left: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .55em .8em; text-decoration: none; font-weight: 600; border-radius: 999px;
  color: var(--ink); transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); }
.nav-links a[aria-current] { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--blue); background: transparent; color: var(--blue); font: 600 1rem var(--font-display); cursor: pointer;
}
.burger { position: relative; display: block; flex: none; width: 20px; height: 16px; }
.burger i { position: absolute; left: 0; top: 6.8px; width: 100%; height: 2.4px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s; }
.burger i:nth-child(1) { transform: translateY(-5.8px); }
.burger i:nth-child(3) { transform: translateY(5.8px); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: rotate(-45deg); }
@media (max-width: 899px) {
  .nav { min-height: 64px; }
  .logo-svg { --logo-h: 50px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .nav-links { padding-bottom: 10px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { min-height: 44px; padding: .5em 1em; font-size: .95rem; }
  .js .menu-btn { display: inline-flex; }
  .js .main-nav { display: none; } /* with JS the full-screen menu takes over; without it the links show under the header */
}
@media (max-width: 420px) {
  .menu-btn { padding: 0; width: 44px; }
  .menu-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .logo-svg { --logo-h: 44px; }
}

/* The full-screen menu (phones and tablets, JS only), matching the home page. The header stays on top with the logo, Book button and the X. */
.mmenu { display: none; }
@media (max-width: 899px) {
  .js .mmenu {
    display: block; position: fixed; inset: 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
    background-color: var(--bg); background-image: var(--grain), var(--topo, none); background-size: 180px 180px, 1100px 1100px;
    opacity: 0; transition: opacity .28s ease;
  }
  .js .mmenu[hidden] { display: none; }
  .js .mmenu.open { opacity: 1; }
  html.menu-open { overflow: hidden; }
  .mm-inner {
    position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; gap: 22px;
    padding: calc(92px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  }
  .mm-links { list-style: none; margin: 0; padding: 0 60px 0 0; display: grid; gap: 0; }
  .mm-links li { transform-origin: 0 60%; }
  .mm-links a {
    display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 3px 0; text-decoration: none; -webkit-tap-highlight-color: transparent;
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.95rem, 8.4vw, 2.7rem); line-height: 1.05; letter-spacing: -.01em; color: var(--blue);
  }
  .mm-links li:nth-child(even) a { color: var(--orange-text); }
  .mm-links .burst { width: .46em; height: .46em; flex: none; color: var(--orange); transition: transform .5s var(--spring); }
  .mm-links li:nth-child(even) .burst { color: var(--blue); }
  .mm-links a:active .burst, .mm-links a:focus-visible .burst { transform: rotate(90deg) scale(1.3); }
  .mm-book { width: 100%; min-height: 60px; font-size: 1.25rem; }
  .mm-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
  .mm-social { list-style: none; margin: 0 0 0 -10px; padding: 0; display: flex; gap: 4px; }
  .mm-social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--blue); }
  .mm-social svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mm-social .dot { fill: currentColor; stroke: none; }
  .mm-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
  .mm-phone svg { width: 22px; height: 22px; color: var(--orange-text); }
  .mm-rope { position: absolute; z-index: 0; top: 0; right: max(14px, env(safe-area-inset-right)); width: 30px; height: clamp(150px, 36vh, 300px); pointer-events: none; }
  .mm-cord { position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; border-radius: 3px; background: repeating-linear-gradient(45deg, #BF8246 0 4px, #64401F 4px 6px); }
  .mm-qd { position: absolute; left: 50%; top: calc(100% - 4px); width: 26px; margin-left: -13px; transform-origin: 50% 3px; }
  .mm-qd svg { display: block; width: 100%; height: auto; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .mm-links li, .mm-cta, .mm-foot { opacity: 0; transform: translateY(26px) scale(.86) rotate(-3deg); transition: opacity .2s ease, transform .2s ease; }
  .mmenu.open .mm-links li, .mmenu.open .mm-cta, .mmenu.open .mm-foot {
    opacity: 1; transform: none;
    transition: opacity .35s ease calc(70ms + var(--i) * 55ms), transform .75s cubic-bezier(.3, 1.75, .45, 1) calc(70ms + var(--i) * 55ms);
  }
  .mmenu.open .mm-rope { animation: mmRope .8s var(--spring) both .05s; }
  .mmenu.open .mm-qd { animation: clipSwing 2s cubic-bezier(.25, .7, .35, 1) both .45s; }
}
@keyframes mmRope { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes clipSwing { 0% { rotate: 0deg; } 14% { rotate: 13deg; } 36% { rotate: -8deg; } 58% { rotate: 4.5deg; } 78% { rotate: -2deg; } 100% { rotate: 0deg; } }
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .js .mmenu { transition-duration: .25s !important; } }

/* Post cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.grid > li { display: flex; }
.card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1);
}
.card-media { aspect-ratio: 3 / 2; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card-title { font-size: 1.32rem; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
@supports not selector(:has(a)) { .card-title a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; } }
.card-ex { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: .9rem; }
@media (hover: hover) {
  .card-title a:hover { color: var(--blue); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* CTA panel (listing band and in-article box) */
.cta-panel {
  background: var(--feat-bg); color: var(--feat-ink); border-radius: 32px 26px 34px 24px / 26px 34px 24px 32px;
  padding: clamp(26px, 5vw, 52px);
}
.cta-panel h2 { color: var(--feat-ink); font-size: clamp(1.7rem, 4vw, 2.5rem); text-wrap: balance; }
.cta-panel p { color: var(--feat-ink-2); margin-top: 10px; max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-panel .btn-primary { background: var(--feat-btn-bg); color: var(--feat-btn-ink); box-shadow: 0 4px 0 var(--orange); }
.cta-panel .btn-ghost { border-color: var(--feat-ink); color: var(--feat-ink); }
.cta-panel :focus-visible { outline-color: var(--feat-accent); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .cta-panel .btn-primary:hover { box-shadow: 0 7px 0 var(--orange); }
  .cta-panel .btn-ghost:hover { background: color-mix(in srgb, var(--feat-ink) 12%, transparent); }
}

/* Footer: navy, logo, contact, social, policies, Acknowledgement of Country, faint giant wordmark */
.site-footer {
  position: relative; overflow: hidden; margin-top: clamp(56px, 8vw, 96px);
  background: var(--footer-bg); color: var(--footer-ink);
  padding: 48px 0 max(96px, calc(11vw + 20px));
}
.site-footer > .wrap { position: relative; z-index: 1; }
.foot-word { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fw-in { position: absolute; left: -2%; right: -2%; bottom: 0; }
.fw-in svg { display: block; width: 100%; height: auto; overflow: visible; }
.fw-in text {
  font-family: var(--font-display); font-weight: 700; font-size: 320px;
  fill: color-mix(in srgb, var(--footer-ink) 4%, transparent); stroke: color-mix(in srgb, var(--footer-ink) 15%, transparent);
  stroke-width: 1.4; vector-effect: non-scaling-stroke; paint-order: stroke;
}
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer .logo-svg { --logo-h: 96px; --lg-b: var(--footer-ink); }
.site-footer h2 { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; margin-bottom: 10px; color: var(--footer-accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--footer-ink); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--footer-accent); }
.site-footer :focus-visible { outline-color: var(--footer-accent); }
.site-footer .social { display: flex; gap: 8px; margin-left: -9px; }
.site-footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; transition: color .2s; }
.social svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social .dot { fill: currentColor; stroke: none; }
.site-footer .social a:hover { color: var(--orange); }
.ph {
  display: inline-block; padding: 0 .45em; border: 1.5px dashed currentColor; border-radius: 7px;
  font-size: .86em; line-height: 1.5; font-weight: 600;
}
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--footer-ink) 20%, transparent); font-size: .92rem; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
