:root {
  --sea: #1f6fbf;
  --deep: #0f3f75;
  --kelp: #43c98c;
  --teal: #1e9c86;
  --foam: #f2f7fc;
  --ink: #0d2340;
  --paper: #ffffff;
  --muted: #4d6380;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.6rem;
  --step-4: clamp(4rem, 13vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--foam);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--kelp); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 99; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: flex-end;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(31, 111, 191, .94);
  backdrop-filter: blur(8px);
  color: var(--paper);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.site-nav a { white-space: nowrap; text-decoration: none; font-weight: 700; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { border-bottom-color: var(--kelp); }
.cart-btn {
  font: inherit; font-weight: 700; color: var(--deep); background: var(--paper);
  border: 0; border-radius: 999px; padding: .45rem 1rem; cursor: pointer;
  display: inline-flex; gap: .4rem; align-items: center;
}
.cart-count { background: var(--kelp); color: var(--ink); border-radius: 999px; min-width: 1.5rem; padding: 0 .4rem; font-size: .85rem; text-align: center; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: .85rem 1.6rem;
  background: var(--kelp); color: var(--ink);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* Hero (home) */
.hero {
  position: relative; overflow: hidden; color: var(--paper);
  background: var(--sea) url("img/seaweed.jpg") center bottom / cover no-repeat;
  min-height: min(88vh, 760px);
  display: grid; align-items: center;
  padding: 4rem clamp(1.25rem, 6vw, 5rem) 9rem;
}
.hero-inner { position: relative; z-index: 2; max-width: 46rem; }
.hero .kicker { font-family: var(--display); font-weight: 600; font-size: var(--step-2); color: #cfe6ff; margin: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 700; margin: 0 0 .1em; letter-spacing: -.01em; line-height: .95; }
.hero .tagline { font-family: var(--display); font-size: var(--step-1); color: #cfe6ff; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute; bottom: -80px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 2px rgba(255, 214, 140, .45), inset -6px -8px 14px rgba(170, 120, 255, .25);
  animation: rise linear infinite;
}
.bubble::after { content: ""; position: absolute; top: 18%; left: 22%; width: 28%; height: 14%; border-top: 2px solid rgba(255,255,255,.9); border-radius: 50%; transform: rotate(-30deg); }
@keyframes rise { to { transform: translate3d(var(--drift, 20px), -120vh, 0); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; display: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 5rem); }
.section h2 { font-size: var(--step-3); color: var(--deep); }
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; background: var(--paper); }
@media (min-width: 860px) { .about { grid-template-columns: 1.1fr 1fr; } }
.about figure { margin: 0; }
.about figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

.now { background: var(--foam); }
.now-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; max-width: 60rem; }
@media (min-width: 760px) { .now-list { grid-template-columns: repeat(3, 1fr); } }
.now-list li { border-top: 4px solid var(--kelp); padding-top: 1rem; }
.now-list h3 { font-size: var(--step-1); color: var(--deep); }
.now-list p { margin: 0; color: var(--muted); }

.charity { background: var(--deep); color: var(--paper); display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .charity { grid-template-columns: auto 1fr; align-items: center; column-gap: 4rem; } }
.charity .big { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 16vw, 10rem); line-height: .9; color: var(--kelp); margin: 0; }
.charity h2 { color: var(--paper); }
.charity a { color: #bfe9d3; }

.cta-band { text-align: center; background: var(--paper); }
.cta-band p { margin: 0 auto 1.5rem; }

.site-footer { background: var(--ink); color: #b9c8db; padding: 2rem clamp(1.25rem, 6vw, 5rem); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* Shop: studio */
.studio-intro { padding: 2.5rem clamp(1.25rem, 6vw, 5rem) 0; }
.studio-intro h1 { font-size: var(--step-3); color: var(--deep); margin-bottom: .25em; }
.studio-intro p { color: var(--muted); }

.studio {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  padding: 1.5rem clamp(1.25rem, 6vw, 5rem) 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .studio { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.frame {
  background: var(--sea);
  border-radius: 28px;
  padding: clamp(1rem, 4vw, 2.5rem);
  position: relative;
}
.frame-paper { background: var(--paper); border-radius: 6px; padding: 4%; box-shadow: 0 18px 40px rgba(6, 30, 60, .35); }
.frame canvas, .frame img.preset-img { width: 100%; height: auto; display: block; }
.frame .size-note { color: #cfe6ff; font-size: .9rem; margin: .8rem 0 0; text-align: center; }

.controls { display: grid; gap: 1.6rem; }
.controls h2 { font-size: var(--step-2); color: var(--deep); margin: 0; }
.price { font-family: var(--display); font-size: var(--step-2); color: var(--sea); margin: 0; }

.field-label { font-weight: 700; margin-bottom: .5rem; display: block; }

/* The dial */
.dial-wrap { display: grid; justify-items: center; gap: .8rem; }
.dial {
  --size: min(260px, 70vw);
  width: var(--size); height: var(--size);
  border-radius: 50%; position: relative; touch-action: none; cursor: grab;
  background: conic-gradient(from 0deg,
    hsl(0 75% 45%), hsl(30 75% 45%), hsl(60 75% 42%), hsl(90 70% 40%), hsl(120 70% 38%),
    hsl(150 70% 38%), hsl(180 75% 38%), hsl(210 75% 45%), hsl(240 70% 50%), hsl(270 70% 48%),
    hsl(300 70% 45%), hsl(330 75% 45%), hsl(360 75% 45%));
  box-shadow: 0 10px 30px rgba(15, 63, 117, .25);
}
.dial:active { cursor: grabbing; }
.dial::before {
  /* tick bezel */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, rgba(255,255,255,.85) 0 2deg, transparent 2deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 10px), #000 calc(50% - 9px) 50%);
          mask: radial-gradient(circle, transparent 0 calc(50% - 10px), #000 calc(50% - 9px) 50%);
}
.dial-face {
  position: absolute; inset: 22%; border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 6px var(--foam);
  pointer-events: none;
}
.dial-swatch { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto .35rem; border: 3px solid var(--paper); box-shadow: 0 0 0 2px rgba(13,35,64,.15); }
.dial-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); line-height: 1.2; padding: 0 .5rem; }
.dial-knob {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(255,255,255,.35);
  border: 3px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255, 214, 140, .6);
  transform: rotate(var(--angle, 210deg)) translateY(calc(var(--size) * -0.39));
  pointer-events: none;
}
.dial.is-off .dial-knob { opacity: .45; }
.dial-hint { font-size: .9rem; color: var(--muted); margin: 0; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 2px solid #d3e1f0;
}
.chip[aria-pressed="true"] { border-color: var(--sea); background: #e6f1fc; }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; }

.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; }
.size-opt label {
  display: block; cursor: pointer; padding: .8rem 1rem; border-radius: 14px;
  background: var(--paper); border: 2px solid #d3e1f0;
}
.size-opt label strong { font-family: var(--display); font-size: 1.25rem; display: block; }
.size-opt label span { color: var(--muted); font-size: .9rem; }
.size-opt input:checked + label { border-color: var(--sea); background: #e6f1fc; }
.size-opt input:focus-visible + label { outline: 3px solid var(--kelp); outline-offset: 3px; }

.qty { display: inline-flex; align-items: center; border: 2px solid #d3e1f0; border-radius: 999px; background: var(--paper); }
.qty button { font: inherit; font-weight: 700; width: 2.4rem; height: 2.4rem; border: 0; background: none; cursor: pointer; color: var(--deep); border-radius: 50%; }
.qty output { min-width: 2rem; text-align: center; font-weight: 700; }
.add-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.added-msg { color: var(--teal); font-weight: 700; margin: 0; min-height: 1.6em; }

/* Print picker */
.picker { padding: 1rem clamp(1.25rem, 6vw, 5rem) 4rem; }
.picker h2 { font-size: var(--step-2); color: var(--deep); }
.picker-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.picker-grid button {
  width: 100%; cursor: pointer; font: inherit; text-align: left;
  background: var(--paper); border: 3px solid transparent; border-radius: 18px; padding: .6rem;
}
.picker-grid button[aria-pressed="true"] { border-color: var(--sea); }
.picker-grid img { aspect-ratio: 3 / 2; object-fit: contain; width: 100%; }
.picker-grid span { display: block; font-family: var(--display); font-weight: 600; padding: .4rem .3rem 0; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13, 35, 64, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 41;
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.open { transform: none; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid #e3ecf5; }
.drawer header h2 { margin: 0; font-size: var(--step-1); }
.drawer .close { font: inherit; font-size: 1.6rem; line-height: 1; border: 0; background: none; cursor: pointer; padding: .2rem .5rem; }
.cart-items { list-style: none; margin: 0; padding: 1rem 1.4rem; overflow-y: auto; flex: 1; display: grid; gap: 1rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; }
.cart-item img { width: 64px; height: 48px; object-fit: contain; background: var(--foam); border-radius: 8px; }
.cart-item .meta { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.cart-item .meta .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cart-item .name { font-weight: 700; }
.cart-item .remove { font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-empty { color: var(--muted); }
.drawer footer { padding: 1.2rem 1.4rem 1.6rem; border-top: 1px solid #e3ecf5; display: grid; gap: .8rem; }
.subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.drawer .small { font-size: .85rem; color: var(--muted); margin: 0; }
.checkout-error { color: #b3261e; font-weight: 700; margin: 0; }

/* Thanks */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 1.5rem; }
.thanks p { margin-left: auto; margin-right: auto; }

/* Contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact h1 { font-size: var(--step-3); color: var(--deep); }
.contact-intro p { color: var(--muted); }
.contact-form { display: grid; gap: .4rem; background: var(--paper); padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: 24px; max-width: 38rem; }
.contact-form label { font-weight: 700; margin-top: .6rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .7rem .9rem; border: 2px solid #d3e1f0; border-radius: 12px; background: var(--foam);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--sea); outline: none; }
.contact-form .btn { margin-top: 1rem; justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; }
.sent-msg { background: #e3f7ec; color: #11613f; font-weight: 700; padding: .8rem 1rem; border-radius: 12px; margin: 0; }

/* Delivery line in basket */
.delivery-line { display: flex; justify-content: space-between; font-size: .95rem; }
.free-nudge { font-size: .9rem; color: var(--teal); font-weight: 700; margin: 0; }

/* Small screens: one row, links on the left, basket on the right */
@media (max-width: 640px) {
  .site-nav { width: 100%; gap: .75rem; font-size: .9rem; }
  .cart-btn { margin-left: auto; padding: .35rem .8rem; }
}
@media (max-width: 380px) {
  .site-header { padding: .6rem .75rem; }
  .site-nav { gap: .55rem; font-size: .85rem; }
  .cart-btn { padding: .3rem .6rem; }
}

/* LinkedIn link */
.linkedin { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--sea); text-decoration: none; border-bottom: 2px solid var(--kelp); padding-bottom: .1rem; }
.linkedin:hover { color: var(--deep); }
@media (max-width: 345px) { .cart-label { display: none; } }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.btn-small { padding: .6rem 1.2rem; font-size: .95rem; }
