/* Cloud Hands Music — custom theme over Bulma.
   Warm parchment + oxblood-red Zen/craft aesthetic honoring the original site. */

:root {
  --ink: #2a2420;
  --ink-soft: #5b524a;
  --paper: #f6f0e6;
  --paper-2: #efe6d6;
  --paper-card: #fbf7ef;
  --oxblood: #8c1c13;
  --oxblood-dark: #6b1209;
  --oxblood-soft: #b5453a;
  --bamboo: #7a6a3a;
  --line: #ddd0ba;
  --shadow: 0 10px 30px rgba(42, 36, 32, 0.10);
  --shadow-sm: 0 4px 14px rgba(42, 36, 32, 0.08);
  --maxw: 1120px;
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% -10%, rgba(140,28,19,0.05), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(122,106,58,0.06), transparent 40%);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.75;
}

/* Typography */
h1, h2, h3, h4, .brand-name, .site-title {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.content h1, h1.title { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: 0.6rem; }
.content h2 { font-size: 1.7rem; color: var(--oxblood-dark); margin-top: 2.4rem; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
.content h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.content p, .content li { color: var(--ink); }
.content a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.content a:hover { color: var(--oxblood-dark); }
.lead { font-size: 1.22rem; color: var(--ink-soft); font-style: italic; font-family: "Spectral", Georgia, serif; }
.byline, .credit, .attrib { color: var(--ink-soft); font-style: italic; }

img { max-width: 100%; height: auto; display: block; }

/* Layout helpers */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Top bar / nav */
.topbar {
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 2px solid var(--oxblood);
  position: sticky; top: 0; z-index: 30;
}
.topbar .navbar { background: transparent; min-height: 4.25rem; }
.brand-wrap { display: flex; align-items: center; gap: 0.7rem; }
.kanji-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--oxblood); color: #f6f0e6;
  font-family: "Spectral", serif; font-size: 1.35rem; font-weight: 700;
  border-radius: 4px;
}
.brand-name { font-size: 1.35rem; line-height: 1; }
.brand-sub { display: block; font-family: "Karla", sans-serif; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.navbar-item { color: var(--ink); font-weight: 500; }
.navbar-item:hover, .navbar-item:focus { background: transparent; color: var(--oxblood); }
.navbar-item.is-active { color: var(--oxblood); box-shadow: inset 0 -2px 0 var(--oxblood); }
.navbar-burger { color: var(--ink); height: 4.25rem; }

/* Hero */
.hero-banner {
  position: relative;
  color: #f6f0e6;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.hero-banner .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(108%);
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(40,20,16,0.82) 0%, rgba(40,20,16,0.45) 55%, rgba(40,20,16,0.18) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(3rem, 9vw, 7rem) 0; }
.hero-inner h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.hero-inner .lead { color: #f4e9d8; max-width: 52ch; }
.hero-eyebrow { font-family: "Karla", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; color: #e9c9a0; margin-bottom: 0.6rem; }

/* Page header (non-hero pages) */
.page-head { padding: 2.4rem 0 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.crumbs { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--oxblood); }

/* Main content card */
main.page { padding: 2.5rem 0 3.5rem; }
.content-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 3rem);
}

/* Buttons */
.btn-zen {
  display: inline-block; background: var(--oxblood); color: #f6f0e6 !important;
  padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: 600; text-decoration: none !important;
  transition: transform 0.12s ease, background 0.12s ease; border: none; cursor: pointer;
  font-family: "Karla", sans-serif;
}
.btn-zen:hover { background: var(--oxblood-dark); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--oxblood); color: var(--oxblood) !important;
  padding: 0.65rem 1.4rem; border-radius: 4px; font-weight: 600; text-decoration: none !important; background: transparent;
}
.btn-ghost:hover { background: rgba(140,28,19,0.06); }
.cta-row { margin-top: 1.6rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Figures / images in content */
figure.zen-fig { margin: 1.8rem 0; }
figure.zen-fig img { border-radius: 6px; box-shadow: var(--shadow-sm); width: 100%; }
figure.zen-fig figcaption { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 0.5rem; text-align: center; }
.fig-float-right { float: right; max-width: 42%; margin: 0.4rem 0 1.2rem 1.6rem; }
@media (max-width: 720px) { .fig-float-right { float: none; max-width: 100%; margin: 1.4rem 0; } }

/* Home feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.feature-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem; box-shadow: var(--shadow-sm); transition: transform 0.12s ease; }
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 { margin-top: 0; color: var(--oxblood-dark); }
.feature-card a { text-decoration: none; }

/* Tables (flute keys) */
.content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; background: var(--paper-card); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); }
.content th { background: var(--oxblood); color: #f6f0e6; text-align: left; padding: 0.7rem 1rem; font-family: "Karla", sans-serif; letter-spacing: 0.03em; }
.content td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); }
.content tr:nth-child(even) td { background: rgba(239,230,214,0.5); }
.content tr:last-child td { border-bottom: none; }

/* Blockquotes */
.content blockquote { border-left: 4px solid var(--oxblood); background: rgba(239,230,214,0.55); padding: 0.9rem 1.3rem; margin: 1.4rem 0; border-radius: 0 6px 6px 0; }
.content blockquote p { font-family: "Spectral", Georgia, serif; font-style: italic; font-size: 1.08rem; }
.content blockquote .attrib { font-style: normal; font-family: "Karla", sans-serif; font-size: 0.9rem; color: var(--oxblood-dark); display: block; margin-top: 0.4rem; }

/* Enquiry form */
.enquiry-form { display: grid; gap: 1rem; max-width: 560px; margin: 1.5rem 0; }
.enquiry-form label { display: grid; gap: 0.35rem; font-weight: 600; font-family: "Karla", sans-serif; font-size: 0.95rem; }
.enquiry-form input, .enquiry-form textarea {
  font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink);
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: 2px solid var(--oxblood-soft); border-color: var(--oxblood); }

/* Footer */
.site-footer { background: #241a16; color: #e7dcca; margin-top: 3rem; padding: 2.6rem 0 1.6rem; }
.site-footer a { color: #e9c9a0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.8rem; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; gap: 1.2rem; } }
.footer-cols h4 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; letter-spacing: 0.04em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0.28rem 0; }
.footer-bottom { border-top: 1px solid rgba(233,201,160,0.2); margin-top: 1.8rem; padding-top: 1.1rem; font-size: 0.85rem; color: #b8a78f; text-align: center; }

/* 404 */
.notfound { text-align: center; padding: 4rem 0; }
.notfound .big { font-family: "Spectral", serif; font-size: clamp(4rem, 14vw, 8rem); color: var(--oxblood); line-height: 1; }

/* Misc */
.divider-rule { height: 2px; width: 70px; background: var(--oxblood); border: none; margin: 1.2rem 0; }
.muted { color: var(--ink-soft); }
