/* duck.cool · Cool Duck Seasonal Mandalas
   Calm pond palette: cream paper, sage, dusty blue, sand, warm brown ink. */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe8da;
  --pond: #dfe8e6;
  --pond-deep: #c9d9d6;
  --sage: #9db29a;
  --sage-deep: #6f8a6c;
  --blue: #a9c4d4;
  --blue-deep: #6f93a8;
  --sand: #e6c98f;
  --clay: #c9a383;
  --ink: #4a3b2c;
  --ink-soft: #776656;
  --card: #fffdf8;
  --line: #e4dccb;
  --shadow: 0 10px 30px -14px rgba(74, 59, 44, .28);
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.sub { color: var(--ink-soft); max-width: 640px; margin: 0 auto 2.4rem; }
.eyebrow {
  font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--sage-deep);
  margin: 0 0 .1em; letter-spacing: .01em;
}
.script { font-family: "Caveat", cursive; font-weight: 700; color: var(--sage-deep); font-size: 1.12em; }
.small { font-size: .92rem; }
.muted { color: var(--ink-soft); opacity: .85; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(247, 242, 232, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 220, 203, .7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-word, .footer-brand { font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.b-duck { color: #c99a3c; }
.b-dot { color: var(--ink-soft); }
.b-cool { color: var(--blue-deep); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 7px 12px; border-radius: 999px; transition: background .25s;
}
.nav a:hover { background: var(--pond); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s, background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--sage-deep); color: #fff; box-shadow: 0 8px 18px -10px rgba(74, 99, 72, .7); }
.btn-solid:hover { background: #637d60; }
.btn-soft { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: #fff; }
.btn-small { padding: 8px 16px; font-size: .92rem; background: var(--blue-deep); color: #fff; }
.btn-small:hover { background: #5f8296; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--paper-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(169, 196, 212, .35), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(157, 178, 154, .32), transparent 45%),
    var(--paper);
  padding: clamp(36px, 6vw, 80px) 0 110px;
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 2;
}
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  border: 2px dashed rgba(111, 147, 168, .35); animation: spin 90s linear infinite;
}
.hero-art img {
  border-radius: 50%; box-shadow: 0 30px 60px -30px rgba(74, 59, 44, .45);
  animation: bob 7s ease-in-out infinite;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-10px) rotate(.6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* drifting leaves */
.drift { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.leaf {
  position: absolute; top: -40px; width: 18px; height: 18px;
  background: var(--sage); opacity: .45;
  border-radius: 0 70% 0 70%;
  animation: fall linear infinite;
}
.l1 { left: 8%;  animation-duration: 19s; animation-delay: -2s; }
.l2 { left: 32%; animation-duration: 24s; animation-delay: -9s; background: var(--sand); }
.l3 { left: 58%; animation-duration: 21s; animation-delay: -5s; background: var(--clay); width: 14px; height: 14px; }
.l4 { left: 78%; animation-duration: 27s; animation-delay: -14s; background: var(--blue); }
.l5 { left: 92%; animation-duration: 23s; animation-delay: -18s; }
@keyframes fall {
  0%   { transform: translate(0, -40px) rotate(0); }
  50%  { transform: translate(40px, 50vh) rotate(180deg); }
  100% { transform: translate(-20px, 110vh) rotate(360deg); }
}

/* waves between sections */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--paper-2); z-index: 3; }
.wave.top { top: -1px; bottom: auto; fill: var(--paper); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.books { background: var(--paper-2); }
.free { background: var(--pond); padding-top: 120px; padding-bottom: 130px; }
.free .wave { fill: var(--paper); }
.free .wave.top { fill: var(--paper-2); }
.colour { background: var(--paper); }
.breathe { background: var(--pond); padding-top: 120px; padding-bottom: 130px; }
.breathe .wave { fill: var(--paper-2); }
.breathe .wave.top { fill: var(--paper); }
.soon { background: var(--paper-2); }
.about { background: var(--paper); }

/* ---------- Books ---------- */
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.book {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s;
}
.book:hover { transform: translateY(-4px); }
.book-cover { background: var(--tint); padding: 26px 34px 0; }
.book-cover img {
  border-radius: 4px 10px 10px 4px;
  box-shadow: -6px 10px 22px -10px rgba(74, 59, 44, .55), inset 0 0 0 1px rgba(0,0,0,.04);
  transform: translateY(14px);
}
.book-body { padding: 34px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.book-body p { color: var(--ink-soft); font-size: .97rem; }
.badge {
  align-self: flex-start; font-size: .8rem !important; font-weight: 700; color: var(--sage-deep) !important;
  background: #e8efe5; padding: 3px 12px; border-radius: 999px; margin-bottom: .8em;
}
.formats { font-weight: 700; color: var(--ink) !important; margin-top: auto; }
.buy { display: flex; gap: 8px; flex-wrap: wrap; }

.perks {
  list-style: none; padding: 0; margin: 48px auto 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px;
}
.perks li { display: flex; align-items: center; gap: 12px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }

/* ---------- Free pages ---------- */
.free-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.free-card {
  background: var(--card); border-radius: var(--radius); padding: 16px 16px 20px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; transition: transform .3s;
}
.free-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.free-card img { border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.free-title { font-weight: 700; font-size: 1.1rem; }
.free-meta { color: var(--ink-soft); font-size: .9rem; }
.free-meta::after { content: "  ↓"; color: var(--blue-deep); font-weight: 700; }

/* ---------- Colour corner ---------- */
.studio {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px;
  max-width: 980px; margin: 0 auto;
}
.canvas-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.page-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line);
  background: transparent; color: var(--ink-soft);
}
.tab.is-on { background: var(--pond); border-color: var(--pond-deep); color: var(--ink); }
.canvas { aspect-ratio: 1; background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.canvas svg { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.canvas svg [data-fill] { cursor: pointer; transition: fill .25s; }
.canvas svg [data-fill]:hover { filter: brightness(.96); }

.tools {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 14px; align-self: start;
}
@media (min-height: 860px) and (min-width: 901px) { .tools { position: sticky; top: 84px; } }
.tools-title { margin: 0; font-size: 1.05rem; }
.now { display: flex; align-items: center; gap: 12px; }
.now-chip {
  width: 44px; height: 44px; border-radius: 50%; flex: none; background: #a8bfa0;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(74, 59, 44, .5);
  transition: background .2s;
}
.now-name { font-size: .88rem; color: var(--ink-soft); }
.swatches { display: flex; flex-direction: column; gap: 5px; }
.swatch-row { display: grid; grid-template-columns: repeat(8, 26px); gap: 5px; justify-content: space-between; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); background: var(--c);
  transition: transform .15s, box-shadow .15s;
}
.swatch:hover { transform: scale(1.15); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.15); }
.tool-label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.custom { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.custom input {
  width: 36px; height: 36px; padding: 0; border: 2px solid var(--line); border-radius: 50%;
  background: conic-gradient(#dcb2ad, #efd99a, #a8bfa0, #9db8cb, #bdb1cf, #dcb2ad); cursor: pointer; overflow: hidden;
}
.custom input::-webkit-color-swatch-wrapper { padding: 0; }
.custom input::-webkit-color-swatch { border: none; border-radius: 50%; opacity: 0; }
.custom input::-moz-color-swatch { border: none; border-radius: 50%; opacity: 0; }
.tool-row { display: flex; gap: 8px; }
.tool-row .btn { flex: 1; }
.tool-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }

.tab-secret { border-color: #e3cf9f; color: #8f6b28; background: #fbf3dc; }
.tab-secret.is-on { background: #f6e3a1; border-color: #ddb46b; color: var(--ink); }
.secret-note {
  position: relative; display: flex; gap: 16px; align-items: center;
  max-width: 980px; margin: 0 auto 22px; padding: 16px 44px 16px 18px;
  background: linear-gradient(135deg, #fbf3dc, #eef4ea); border: 1px solid #e8dcc4;
  border-radius: var(--radius); box-shadow: var(--shadow); animation: noteIn .8s ease-out;
}
.secret-note[hidden] { display: none; }
.secret-note img { width: 64px; height: 64px; border-radius: 50%; flex: none; animation: bob 6s ease-in-out infinite; }
.secret-note p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.secret-title { font-family: "Caveat", cursive; font-size: 1.7rem !important; color: var(--sage-deep) !important; line-height: 1.1; margin-bottom: 4px !important; }
.secret-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 1.4rem; color: var(--ink-soft); cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Breathe ---------- */
.breathe-inner { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 900px; }
.pond {
  position: relative; width: 300px; height: 300px; margin: 0 auto;
  border-radius: 50%; background: radial-gradient(circle, #e9f0ee 0%, var(--pond-deep) 100%);
  display: grid; place-items: center;
}
.ripple {
  position: absolute; inset: 50%; border-radius: 50%;
  border: 2px solid rgba(111, 147, 168, .45);
  transform: translate(-50%, -50%); width: 120px; height: 120px;
  animation: ripple 8s ease-in-out infinite;
}
.r2 { animation-delay: -2.66s; } .r3 { animation-delay: -5.33s; }
@keyframes ripple {
  0% { width: 110px; height: 110px; opacity: 0; }
  20% { opacity: .9; }
  100% { width: 300px; height: 300px; opacity: 0; }
}
.pond-duck { width: 120px; height: 120px; border-radius: 50%; position: relative; z-index: 2; transition: transform 4s ease-in-out; }
.breathing .pond-duck { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.15); } }
.breath-word { font-family: "Caveat", cursive; font-size: 2rem; color: var(--blue-deep); min-height: 1.4em; }

/* ---------- Coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 2rem; }
.soon-card {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center;
  background: rgba(255, 253, 248, .55);
}
.soon-card p { color: var(--ink-soft); margin: 0; }
.soon-ico { font-size: 2rem; color: var(--clay); display: block; margin-bottom: .3rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 860px; }
.about-duck { border-radius: 50%; box-shadow: var(--shadow); animation: bob 8s ease-in-out infinite; }
.about p { color: var(--ink-soft); }
.about strong { color: var(--ink); }
.contact { font-weight: 700; color: var(--ink) !important; }

/* ---------- Footer ---------- */
.site-footer { background: #43382c; color: #e9e1d2; padding: 44px 0 36px; text-align: center; }
.site-footer a { color: var(--sand); }
.site-footer .b-duck { color: var(--sand); }
.site-footer .b-cool { color: var(--blue); }
.site-footer .b-dot { color: #b8ab98; }
.footer-inner p { margin: .3em 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .book-grid, .free-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
  .soon-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-left: auto; margin-right: auto; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .swatch-row { grid-template-columns: repeat(8, 30px); justify-content: start; gap: 6px; }
  .swatch { width: 30px; height: 30px; }
}
@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .nav { justify-content: center; }
  .nav a { padding: 4px 9px; font-size: .88rem; }
  html { scroll-padding-top: 120px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .breathe-inner, .about-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .about-duck { max-width: 140px; margin: 0 auto; }
  .pond { width: 260px; height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .drift { display: none; }
}
