@font-face {
  font-family: "Shotengai Demo";
  src: url("Shotengai Demo.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #f5eee6;
  --surface: #fff9f2;
  --surface-strong: #f2e5d7;
  --text: #2f1d16;
  --muted: #7a6257;
  --primary: #b65a3a;
  --primary-strong: #94462c;
  --line: rgba(63, 38, 28, 0.15);
  --glow-a: rgba(182, 90, 58, 0.25);
  --glow-b: rgba(215, 158, 120, 0.22);
  --shadow: 0 20px 60px rgba(70, 35, 22, 0.15);
}

body[data-palette="nordic"] {
  --bg: #edf3f4;
  --surface: #f8fbfb;
  --surface-strong: #dde8ea;
  --text: #15252d;
  --muted: #4f6871;
  --primary: #2b6f80;
  --primary-strong: #1f5663;
  --line: rgba(21, 37, 45, 0.16);
  --glow-a: rgba(43, 111, 128, 0.22);
  --glow-b: rgba(153, 194, 201, 0.23);
  --shadow: 0 20px 60px rgba(18, 34, 41, 0.16);
}

body[data-palette="forest"] {
  --bg: #eef2e8;
  --surface: #f9fbf6;
  --surface-strong: #dce6d5;
  --text: #1f2a1d;
  --muted: #51654b;
  --primary: #6b7f3f;
  --primary-strong: #526331;
  --line: rgba(31, 42, 29, 0.16);
  --glow-a: rgba(107, 127, 63, 0.25);
  --glow-b: rgba(174, 191, 132, 0.23);
  --shadow: 0 20px 60px rgba(33, 45, 23, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 12%, var(--glow-a), transparent 40%),
    radial-gradient(circle at 88% 18%, var(--glow-b), transparent 34%), var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  position: relative;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  width: min(70vw, 780px);
  height: min(70vw, 780px);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.bg-glow-a {
  top: -280px;
  left: -180px;
  background: var(--glow-a);
}

.bg-glow-b {
  top: -260px;
  right: -180px;
  background: var(--glow-b);
}

main,
.site-footer {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-inline: 0;
  padding: 1.4rem clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: none;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  z-index: 10;
}

.logo {
  grid-column: 1;
  text-decoration: none;
  color: var(--text);
  font-family: "Shotengai Demo", "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 3.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  grid-column: 2;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-item {
  position: relative;
}

.nav-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-item-has-children > a::after {
  display: none;
}

/* Toggle button placed next to parent link to increase tap target */
.nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0.45rem;
  margin-left: 0.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}

.nav-toggle:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  outline-offset: 2px;
}

.nav-toggle::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform 0.22s ease;
}

.nav-item-has-children.open .nav-toggle::after {
  transform: rotate(225deg) translateY(-0.02rem);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  min-width: 12rem;
  padding: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, white);
  box-shadow: 0 24px 50px rgba(48, 28, 21, 0.14);
  display: grid;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 1.4rem;
  width: 0.9rem;
  height: 0.9rem;
  background: inherit;
  border-top: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  transform: rotate(45deg);
}

.nav-item-has-children:hover .nav-dropdown,
.nav-item-has-children:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item-has-children:hover > .nav-toggle::after,
.nav-item-has-children:focus-within > .nav-toggle::after {
  transform: rotate(225deg) translateY(-0.02rem);
}

/* Open state for touch / mobile where :hover doesn't apply */
.nav-item-has-children.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item-has-children.open .nav-toggle::after {
  transform: rotate(225deg) translateY(-0.02rem);
}

.nav-dropdown-link {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: transparent;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-dropdown-link.active,
.nav-dropdown-link:hover {
  background: color-mix(in srgb, var(--surface-strong) 72%, white);
  color: var(--text);
}

main {
  padding: 2rem 0 3.5rem;
}

.hero {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.hero-immersive {
  margin-top: -2rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(520px, 84vh, 820px);
  padding: clamp(2.5rem, 8vw, 6rem) 1.25rem;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  text-align: center;
  border-radius: 0;
  background-image:
    linear-gradient(rgba(149, 182, 154, 0.68), rgba(149, 182, 154, 0.68)),
    radial-gradient(circle at 70% 85%, rgba(115, 139, 120, 0.22), transparent 40%),
    url("pottery-image-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-immersive .hero-content {
  width: min(860px, 100%);
  backdrop-filter: blur(2px);
}

.hero-content > *,
.page-hero > * {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-reveal 760ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-content > :nth-child(1),
.page-hero > :nth-child(1) {
  animation-delay: 90ms;
}

.hero-content > :nth-child(2),
.page-hero > :nth-child(2) {
  animation-delay: 220ms;
}

.hero-content > :nth-child(3),
.page-hero > :nth-child(3) {
  animation-delay: 350ms;
}

.hero-content > :nth-child(4),
.page-hero > :nth-child(4) {
  animation-delay: 480ms;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-immersive .eyebrow {
  margin-bottom: 0.9rem;
  letter-spacing: 0.30em;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 52%, #5d7a68);
}

.hero-immersive .hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8.4vw, 5.6rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: color-mix(in srgb, #463b35 88%, #5c4b41);
}

.hero-immersive .hero-content h1 span {
  display: block;
  font-style: italic;
  font-weight: 500;
}

.hero-immersive .hero-content p {
  margin: 1.25rem auto 0;
  max-width: 42ch;
  color: color-mix(in srgb, var(--text) 52%, #597766);
  font-size: clamp(1.02rem, 2.2vw, 1.14rem);
  font-weight: 500;
}

.hero-immersive .hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-immersive .btn-primary {
  background: #5d4738;
}

.hero-immersive .btn-primary:hover {
  background: #4a372c;
}

.hero-immersive .btn-ghost {
  background: color-mix(in srgb, #c6d9c6 62%, transparent);
  border-color: rgba(70, 59, 53, 0.25);
}

.hero-content h1,
.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  margin: 0;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.75rem;
  margin-bottom: 0.55rem;
}

.hero-content p,
.page-hero p {
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.about-actions {
  justify-content: center;
}

.btn {
  border: 1px solid transparent;
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.hero-image-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.page-hero {
  margin-bottom: 1.2rem;
}

.section-heading {
  max-width: 52rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.section-heading p:last-child {
  color: var(--muted);
}

.course-preview-section {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.4rem;
}

.course-list-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, white), var(--surface));
  box-shadow: var(--shadow);
}

.course-list-item h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, white);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-meta {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.course-list-main p:last-child,
.course-list-side p:last-child {
  color: var(--muted);
}

.course-list {
  display: grid;
  gap: 1rem;
}

.course-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.8fr);
  gap: 1.2rem;
  padding: 1.35rem;
  align-items: start;
}

.course-list-main p:last-child {
  margin-bottom: 0;
}

.course-list-side {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.course-list-side p {
  margin: 0;
}

.course-schedule {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.course-schedule li {
  margin: 0.15rem 0;
}

.course-notes {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.course-extra {
  margin-top: 0.6rem;
}

.course-toggle {
  margin-top: 0.7rem;
}

.course-toggle summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 78%, white);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.85rem;
}

.course-toggle summary::-webkit-details-marker {
  display: none;
}

.course-toggle summary::marker {
  content: "";
}

.course-toggle-label-close {
  display: none;
}

.course-toggle[open] .course-toggle-label {
  display: none;
}

.course-toggle[open] .course-toggle-label-close {
  display: inline;
}

.feature-grid,
.content-grid,
.pricing-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.feature-grid article,
.card {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3,
.feature-grid h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.price {
  margin: 0.2rem 0 0.6rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.membership-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.membership-card {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.membership-kicker {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-card h3 {
  margin: 0;
  font-size: 2.2rem;
}

.membership-card .price {
  margin: 0;
  font-size: 2rem;
}

.membership-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.notice-card {
  margin-top: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.notice-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.notice-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.booking-cta {
  margin: 1.6rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.step-arrow {
  display: flex;
  justify-content: center;
  margin: 0.4rem 0;
  color: color-mix(in srgb, var(--primary) 70%, var(--muted));
}

.step-arrow svg {
  width: 3rem;
  height: 3.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facility-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.facility-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facility-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.facility-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.facility-card-body h3 {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.facility-card-body p {
  color: var(--muted);
  margin: 0;
}

.form-card {
  max-width: 820px;
}

.reservation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.reservation-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 500;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.full-width {
  grid-column: 1 / -1;
}

.status {
  margin: 0;
  color: var(--primary-strong);
  min-height: 1.4em;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.site-footer h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
}

.site-footer p {
  margin: 0.28rem 0;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, white);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex: none;
}

.social-link:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  background: color-mix(in srgb, var(--surface-strong) 68%, white);
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav {
    grid-column: 1;
    justify-self: center;
  }

  .nav-dropdown {
    top: calc(100% + 0.45rem);
    min-width: min(15rem, calc(100vw - 3rem));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 300px;
  }

  .hero-immersive {
    min-height: 72vh;
    padding: 2.8rem 1rem;
  }

  .hero-immersive .hero-content h1 {
    line-height: 0.98;
  }

  .feature-grid,
  .content-grid,
  .pricing-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .course-list-item {
    grid-template-columns: 1fr;
  }

  .course-list-side {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .reservation-form {
    grid-template-columns: 1fr;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .page-hero > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn,
  .site-nav a,
  .nav-dropdown {
    transition: none;
  }
}
