/* design.meoww — public site. Colours, typefaces and corners come from /theme.css (the admin theme picker);
   the values here are only the fallback (the "Mint & cocoa" preset). */
:root {
  --bg: #e7efea; --surface: #fbfcfa; --ink: #3b2920; --muted: #6d5a50; --accent: #c4303d; --accent-ink: #fff;
  --soft: #f6dde0; --line: #c3d3ca; --radius: 12px; --grain: 1;
  --font-display: 'Klee One', 'Zen Maru Gothic', sans-serif; --display-weight: 600;
  --font-body: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + .9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.3rem + 1.9vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.25rem + 3.7vw, 3.95rem);
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --sec: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.95 var(--font-body);
  letter-spacing: .02em; line-break: strict; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
html:not([lang="ja"]) body { letter-spacing: .005em; line-height: 1.75; }
/* paper grain over everything, switchable in the theme */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: calc(var(--grain) * .2); mix-blend-mode: multiply;
  background-image: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .16 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-dark] body::after { mix-blend-mode: screen; opacity: calc(var(--grain) * .12); }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.4; margin: 0; font-feature-settings: "palt" 1; letter-spacing: .04em; }
/* Japanese headings break between phrases, not in the middle of a word (Chrome/Edge; others ignore it) */
:lang(ja) :is(h1, h2, h3, .lede, .hero-text) { word-break: auto-phrase; }
html:not([lang="ja"]) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: .8em 1.6em; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4;
  transition: background-color .15s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { padding: .55em 1.15em; font-size: var(--step--1); }
.text-link {
  color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------------------------------------------------------------- header */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem; position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: 1.75rem; }
.nav { display: flex; gap: 1.4rem; font-size: var(--step--1); font-weight: 700; font-feature-settings: "palt" 1; }
.nav a { text-decoration: none; padding: .3em 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.langs { display: flex; gap: .2rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.langs a { display: block; padding: .3em .7em; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 700; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .menu {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - .25rem);
    flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem;
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .nav { flex-direction: column; gap: .35rem; font-size: var(--step-1); }
  html.no-js .menu { display: flex; position: static; background: none; border: 0; padding: 0; }
}

/* ---------------------------------------------------------------- layout */
main { display: block; }
.sec, .hero, .plain { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec) 0; }
.sec-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head h2, .about-text h2, .contact-intro h2 { font-size: var(--step-3); margin-bottom: .55em; }
.lede { color: var(--muted); max-width: 36rem; }
.note { color: var(--muted); font-size: var(--step--1); margin-top: 1.25rem; max-width: 40rem; }

/* ---------------------------------------------------------------- hero: her own painting, painting itself */
.hero {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "title art" "copy art";
  align-items: end; padding-block: clamp(1.5rem, 5vw, 4rem) 0;
}
/* the headline keeps her line breaks: it shrinks with its column (wider typefaces such as the Mincho stay on one line) */
.hero { container-type: inline-size; }
.hero-title { grid-area: title; font-size: var(--step-4); font-size: min(var(--step-4), 5.3cqi); align-self: end; }
.hero-copy { grid-area: copy; align-self: start; max-width: 30rem; }
.hero-text { color: var(--muted); font-size: var(--step-0); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 1.75rem 0 0; }
.hero-art { grid-area: art; margin: 0; position: relative; }
.sheet { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.hero-still { width: 100%; height: auto; transition: opacity .7s ease; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; background: #fff; }
.hero-art.is-painting .hero-video { opacity: 1; transition: none; }
.hero-art.is-painting .hero-still { opacity: 0; transition: none; }
.hero-arc { display: block; width: 78%; margin: -.6rem auto 0; overflow: visible; }
.hero-arc text { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 62px; fill: var(--ink); letter-spacing: .06em; }
/* the name along the arc is written once the painting is finished */
.hero-art.has-video .hero-arc { clip-path: inset(0 100% 0 0); }
.hero-art.is-done .hero-arc { clip-path: inset(0 0 0 0); transition: clip-path 1.3s cubic-bezier(.45, .05, .25, 1); }
.no-js .hero-art .hero-arc { clip-path: none; }
.hero-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .25rem 1rem; font-size: var(--step--1); color: var(--muted); margin-top: .25rem; }
.hero-replay { background: none; border: 0; padding: .25em 0; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }
.hero-replay[hidden] { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "art" "copy"; }
  .hero-title { font-size: min(var(--step-4), 10cqi); }
  .hero-arc { width: 86%; }
}

/* ---------------------------------------------------------------- works */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.chip {
  border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: .45em 1.05em;
  font-size: var(--step--1); font-weight: 700; cursor: pointer; line-height: 1.4;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.works-grid { columns: 4 230px; column-gap: clamp(1rem, 2vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.work { break-inside: avoid; margin-bottom: clamp(1.3rem, 2.5vw, 2rem); }
/* with JS: a row-first masonry (CSS columns would read top to bottom, so her first works would all sit in column one) */
.works-grid.is-masonry {
  --work-gap: clamp(1.3rem, 2.5vw, 2rem);
  columns: auto; display: grid; align-items: start; grid-auto-rows: 4px; row-gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 3 * clamp(1rem, 2vw, 1.6rem)) / 4)), 1fr));
}
.works-grid.is-masonry .work { margin-bottom: 0; }
.work[hidden] { display: none; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.work-ground { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.work-ground img { width: 100%; height: auto; }
.work-title { display: block; margin-top: .55rem; font-size: var(--step--1); font-weight: 700; line-height: 1.55; }
.work-open:hover .work-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.work-has-video { color: var(--accent); font-size: .75em; margin-left: .2em; }
.works-empty { color: var(--muted); }

/* ---------------------------------------------------------------- services: a patisserie price card */
.menu-card {
  list-style: none; margin: 0; padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background: var(--surface); border-radius: calc(var(--radius) * 1.4);
}
.menu-item { display: grid; grid-template-columns: clamp(76px, 12vw, 120px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); padding-block: clamp(1.25rem, 3vw, 2rem); }
.menu-item + .menu-item { border-top: 1.5px dashed var(--line); }
.menu-item:first-child { padding-top: 0; }
.menu-item:last-child { padding-bottom: 0; }
.menu-pic { width: 100%; height: auto; aspect-ratio: 1; align-self: start; object-fit: contain; border-radius: 50%; background: var(--soft); padding: 9%; }
.menu-line { display: flex; align-items: baseline; gap: .6rem; font-size: var(--step-2); }
.menu-name { flex: 0 1 auto; }
.menu-dots { flex: 1 1 2rem; border-bottom: 3px dotted color-mix(in srgb, var(--muted) 60%, transparent); transform: translateY(-.3em); min-width: 1.5rem; }
.menu-price { flex: none; font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); color: var(--accent); white-space: nowrap; }
.menu-summary { color: var(--muted); margin: .6rem 0 .5rem; max-width: 40rem; }
.menu-details { margin: 0 0 1rem; font-size: var(--step--1); }
.menu-details summary { cursor: pointer; font-weight: 700; width: fit-content; list-style: none; padding: .2em 0; }
.menu-details summary::-webkit-details-marker { display: none; }
.menu-details summary::before { content: "＋"; display: inline-block; width: 1.4em; color: var(--accent); }
.menu-details[open] summary::before { content: "－"; }
.menu-details ul { margin: .4rem 0 0; padding-left: 1.4em; color: var(--muted); }
.menu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; margin: 0; }
@media (max-width: 560px) {
  .menu-item { grid-template-columns: 64px minmax(0, 1fr); }
  .menu-line { flex-wrap: wrap; row-gap: 0; }
  .menu-dots { display: none; }
  .menu-price { width: 100%; }
}

/* ---------------------------------------------------------------- process (a real sequence: numbered) */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem); }
.step { counter-increment: step; position: relative; padding-top: 3.4rem; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--soft); color: var(--accent);
  font: var(--display-weight) 1.35rem/1 var(--font-display);
}
.step::after { content: ""; position: absolute; top: 1.3rem; left: 3.3rem; right: 0; border-top: 1.5px dashed var(--line); }
.step:nth-child(3n)::after, .step:last-child::after { display: none; }
.step-title { font-size: var(--step-1); margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: var(--step--1); line-height: 1.85; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-pic { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--surface); max-width: 420px; }
.about-pic img { width: 100%; height: auto; }
.about-text { max-width: 36rem; }
.facts { margin: 1.75rem 0 0; display: grid; gap: .6rem; font-size: var(--step--1); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; border-top: 1.5px solid var(--line); padding-top: .6rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-pic { max-width: 300px; } .facts div { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: var(--sec); }
.contact-insta { margin: 1.75rem 0 .25rem; font-size: var(--step--1); color: var(--muted); }
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.contact-links a { font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.form { background: var(--surface); border-radius: calc(var(--radius) * 1.4); padding: clamp(1.25rem, 3.5vw, 2.5rem); display: grid; gap: 1.1rem; }
.field { margin: 0; display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: calc(var(--radius) * .7);
  padding: .7em .9em; line-height: 1.6;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.hint { font-size: .8125rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: .25rem 0 0; }
.form-privacy { font-size: .8125rem; color: var(--muted); flex: 1 1 14rem; }
.form-status { margin: 0; font-weight: 700; min-height: 1.5em; }
.form-status.is-error { color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer & plain pages */
.foot { border-top: 1.5px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; font-size: var(--step--1); color: var(--muted); }
.foot-mark { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.foot-copy { margin: 0 auto 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.foot-links a { text-underline-offset: .3em; }
.plain { max-width: 44rem; padding-block: clamp(2rem, 6vw, 4rem) var(--sec); }
.plain h1 { font-size: var(--step-3); margin-bottom: 1em; }

/* ---------------------------------------------------------------- the work viewer */
.viewer { border: 0; padding: 0; max-width: min(1200px, 96vw); width: 100%; max-height: 94vh; border-radius: calc(var(--radius) * 1.4); background: var(--surface); color: var(--ink); }
.viewer::backdrop { background: color-mix(in srgb, var(--ink) 72%, transparent); }
.viewer-in { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; min-height: min(70vh, 640px); position: relative; }
.viewer-art { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); background: var(--bg); }
.viewer-img, .viewer-video { max-height: 82vh; width: auto; max-width: 100%; height: auto; border-radius: var(--radius); }
.viewer-video[hidden], .viewer-img[hidden] { display: none; }
.viewer-side { padding: 3.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .25rem; }
.viewer-cat { font-size: var(--step--1); color: var(--muted); margin: 0; }
.viewer-title { font-size: var(--step-2); margin-bottom: .5rem; }
.viewer-note { color: var(--muted); }
.viewer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.viewer-actions [hidden] { display: none; }
.viewer-nav { margin-top: auto; display: flex; gap: .5rem; }
.viewer-nav button, .viewer-close {
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: .45em 1em; cursor: pointer;
  font-size: var(--step--1); font-weight: 700;
}
.viewer-nav button:hover, .viewer-close:hover { border-color: var(--ink); }
.viewer-close { position: absolute; top: 1rem; right: 1rem; background: var(--surface); }
@media (max-width: 760px) {
  .viewer { max-height: 96vh; }
  .viewer-in { grid-template-columns: 1fr; }
  .viewer-img, .viewer-video { max-height: 58vh; }
  .viewer-side { padding: 1.25rem 1.25rem 1.5rem; }
}

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