:root {
  --bg: #faf7f1;
  --paper: #ffffff;
  --ink: #1c2230;
  --ink-2: #3b4356;
  --muted: #6a7184;
  --line: #e9e3d7;
  --grid: #eceef3;
  --accent: #2c5f53;
  --accent-hover: #234d43;
  --accent-soft: #e6f0eb;
  --warm: #c2622c;
  --highlight: #fbe3a0;
  --danger: #b3261e;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(28 34 48 / 0.05), 0 12px 32px rgb(28 34 48 / 0.07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
code { font: 500 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.9em;
}
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(250 247 241 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 18px rgb(44 95 83 / 0.25); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-2); box-shadow: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgb(179 38 30 / 0.35); }
.btn-danger:hover { background: rgb(179 38 30 / 0.06); border-color: var(--danger); box-shadow: none; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 88px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  background: linear-gradient(transparent 64%, var(--highlight) 64%, var(--highlight) 92%, transparent 92%);
  padding: 0 0.06em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.fine { font-size: 0.9rem; color: var(--muted); }

.hero-art { position: relative; padding: 12px 8px 36px 28px; }
.notebook {
  position: relative;
  padding: 40px 36px 44px 64px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.notebook::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background: rgb(194 98 44 / 0.3);
}
.nb-eq { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0 0 14px; }
.nb-answer span { background: linear-gradient(transparent 58%, var(--highlight) 58%); padding: 0 4px; }
.nb-note {
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--warm);
  margin: -2px 0 16px 18px;
  transform: rotate(-2deg);
}
.nb-check {
  position: absolute;
  right: 30px;
  bottom: 22px;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.8rem;
  color: var(--accent);
  transform: rotate(-8deg);
}
.hero-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.hero-badge strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.hero-badge span { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-art { max-width: 480px; }
}
@media (max-width: 480px) {
  .notebook { padding: 32px 20px 44px 52px; }
  .notebook::before { left: 32px; }
  .nb-note { font-size: 1.2rem; margin-left: 4px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { margin-bottom: 0; }

.about { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-body > p:not(.eyebrow, .creds-title) { font-size: 1.08rem; color: var(--ink-2); max-width: 38em; }
.creds-title {
  margin: 28px 0 8px;
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--warm);
}
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.creds li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  color: var(--ink-2);
}
.creds li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 260px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
}

.flow { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.flow li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px dashed #d9d0bf;
}
.flow li:last-child { border-bottom: 1px dashed #d9d0bf; }
.flow-label { font-family: var(--hand); font-size: 2.1rem; line-height: 1; color: var(--warm); }
.flow p { margin: 0; font-size: 1.08rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .flow li { grid-template-columns: 1fr; gap: 8px; }
}

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.price {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-amount { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; margin: 8px 0 4px; }
.price-unit { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.price p:last-child { margin-bottom: 0; color: var(--ink-2); }
@media (max-width: 640px) {
  .prices { grid-template-columns: 1fr; }
}

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: -4px 0 20px; max-width: 40em; }

.say-hi { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 72px; align-items: center; }
.say-hi .lede { margin-bottom: 28px; }
.polaroid {
  margin: 0;
  padding: 14px 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.polaroid img { display: block; width: 100%; height: auto; border-radius: 2px; }
.polaroid figcaption {
  margin-top: 12px;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.15;
  text-align: center;
  color: var(--ink-2);
}
@media (max-width: 820px) {
  .say-hi { grid-template-columns: 1fr; gap: 40px; }
  .polaroid { max-width: 400px; transform: rotate(-1deg); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--ink-2); }

/* ---------- Booking pages ---------- */
.page { padding: 48px 0 88px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--ink); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}
@media (max-width: 560px) {
  .card { padding: 22px 18px; }
}
.step-title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 6px; }
.step-title span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
}
.tz-note { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.day {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.day:hover { border-color: var(--accent); }
.day-dow, .day-mon { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.day-num { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.day[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.day[aria-selected="true"] .day-dow, .day[aria-selected="true"] .day-mon { color: rgb(255 255 255 / 0.8); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 16px; }
.time {
  padding: 12px 8px;
  border: 1px solid rgb(44 95 83 / 0.35);
  border-radius: 12px;
  background: var(--paper);
  color: var(--accent);
  font: 600 0.98rem var(--sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.time:hover { background: var(--accent-soft); border-color: var(--accent); }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.details-form { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 8px 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--accent-hover);
}
.chosen .link-btn { font-weight: 500; font-size: 0.92rem; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
fieldset.field { border: 0; margin: 0 0 18px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
input[type="text"], input[type="email"], input[type="time"], input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(44 95 83 / 0.15); }
textarea { min-height: 110px; resize: vertical; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}
.radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.radios input { accent-color: var(--accent); margin: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.status:empty { display: none; }
.status.error { color: var(--danger); font-weight: 500; }

.summary { display: grid; margin: 0 0 20px; }
.summary-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--muted); font-weight: 500; }
.summary-row dd { margin: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Admin ---------- */
.admin-tag {
  margin-right: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin { display: grid; gap: 24px; padding: 32px 0 80px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 4px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
}
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.share p { margin: 0; }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-row code { padding: 9px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); word-break: break-all; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.88rem var(--sans);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(28 34 48 / 0.12); }

.booking-list { display: grid; gap: 10px; }
.booking-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.booking-row.cancelled { opacity: 0.55; }
.booking-day { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.booking-time { color: var(--ink-2); font-size: 0.95rem; }
.booking-who .goals { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); white-space: pre-wrap; font-size: 0.95rem; }
.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(179 38 30 / 0.08);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
}
@media (max-width: 680px) {
  .booking-row { grid-template-columns: 1fr; gap: 8px; }
}
.empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }

.rules { display: grid; margin: 16px 0 20px; }
.rule-day { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule-day:last-child { border-bottom: 0; }
.rule-day > span { font-weight: 600; }
.windows { display: flex; flex-wrap: wrap; gap: 6px; }
.window {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.9rem;
  font-weight: 500;
}
.x {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.x:hover { background: rgb(28 34 48 / 0.1); }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.inline-form .field { margin: 0; flex: 1 1 110px; }
.inline-form .btn { flex: 0 0 auto; }
.timeoff-list { display: grid; gap: 8px; margin: 16px 0 20px; }
.timeoff-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.grid-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; margin-top: 16px; }
.grid-form .field { margin: 0; }
@media (max-width: 860px) {
  .grid-form { grid-template-columns: 1fr; }
}
