:root {
  --bg: #ffffff;
  --paper: #f7f6f2;
  --paper-strong: #efede7;
  --ink: #303438;
  --muted: #73777b;
  --line: #dedbd3;
  --gold: #b99b58;
  --red: #b55f53;
  --green: #637568;
  --blue: #607481;
  --shadow: 0 18px 50px rgba(48, 52, 56, .10);
  --shadow-soft: 0 8px 26px rgba(48, 52, 56, .08);
  --radius: 8px;
  --nav-h: 76px;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(48, 52, 56, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 88% 8%, rgba(185, 155, 88, .13), transparent 32rem),
    radial-gradient(circle at 6% 42%, rgba(96, 116, 129, .10), transparent 28rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(222, 219, 211, .9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--red);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .08em;
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-scroll {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-scroll a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.nav-scroll a:hover,
.nav-scroll a.active {
  background: var(--paper-strong);
  color: var(--ink);
}

.section-panel {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.hero {
  min-height: calc(100svh - var(--nav-h));
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hero-art {
  order: 2;
}

.dojo-svg {
  width: min(100%, 690px);
  margin: 0 auto;
  filter: drop-shadow(0 24px 50px rgba(48, 52, 56, .10));
}

.hero-content {
  order: 1;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: .03em;
}

.slogan {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 5vw, 2.4rem);
  line-height: 1.15;
  color: #565b5f;
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

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

.btn.ghost {
  background: rgba(255, 255, 255, .58);
}

.content-section,
.contact {
  padding: 68px 18px;
  border-top: 1px solid rgba(222, 219, 211, .75);
}

.content-section.alt {
  background: rgba(247, 246, 242, .72);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 28px;
}

.section-head h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
}

.section-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.slider-shell {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.slider,
.gallery-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 82%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 22px;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}

.slider.compact {
  grid-auto-columns: minmax(230px, 78%);
}

.card,
.gallery-item,
.contact-card {
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .98)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  min-height: 300px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(185, 155, 88, .32);
  border-radius: 50%;
}

.card-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.card h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 8vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

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

.art-card {
  min-height: 386px;
}

.art-card.featured {
  border-color: rgba(181, 95, 83, .46);
  background:
    linear-gradient(135deg, rgba(181, 95, 83, .08), transparent 46%),
    #fff;
}

.jp {
  font-family: var(--serif);
  color: var(--red) !important;
  letter-spacing: .25em;
  margin-bottom: 18px !important;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5d635f;
  font-size: 12px;
  background: rgba(247, 246, 242, .8);
}

.slider-btn {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-btn.prev {
  left: -18px;
}

.slider-btn.next {
  right: -18px;
}

.join-layout,
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.signup-form label {
  display: grid;
  gap: 7px;
  color: #565b5f;
  font-size: 13px;
  font-weight: 700;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
}

.signup-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
}

.image-card {
  min-height: 360px;
}

.mini-art {
  position: absolute;
  inset: 18px 18px auto;
  height: 120px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(99, 117, 104, .25), transparent 58%),
    linear-gradient(0deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .65)),
    var(--paper-strong);
}

.mini-art::before,
.gallery-art::before {
  content: "";
  position: absolute;
  inset: 28% 18%;
  border-top: 10px solid var(--green);
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  opacity: .65;
}

.camp-b {
  background:
    linear-gradient(140deg, rgba(96, 116, 129, .28), transparent 56%),
    linear-gradient(0deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .72)),
    var(--paper-strong);
}

.camp-c {
  background:
    linear-gradient(140deg, rgba(181, 95, 83, .20), transparent 56%),
    linear-gradient(0deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .72)),
    var(--paper-strong);
}

.image-card h3 {
  margin-top: 138px;
}

.news-card time {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-slider {
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-item {
  min-height: 330px;
  margin: 0;
  overflow: hidden;
}

.gallery-art {
  position: relative;
  display: block;
  height: 245px;
  background:
    radial-gradient(circle at 72% 28%, rgba(185, 155, 88, .34), transparent 70px),
    linear-gradient(145deg, rgba(96, 116, 129, .20), transparent 55%),
    var(--paper-strong);
}

.gallery-art::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 46px;
  height: 2px;
  background: rgba(48, 52, 56, .34);
  box-shadow: 0 18px 0 rgba(48, 52, 56, .14);
}

.art-2 {
  background:
    radial-gradient(circle at 34% 32%, rgba(181, 95, 83, .26), transparent 72px),
    linear-gradient(145deg, rgba(99, 117, 104, .22), transparent 55%),
    var(--paper-strong);
}

.art-3 {
  background:
    radial-gradient(circle at 58% 30%, rgba(99, 117, 104, .26), transparent 72px),
    linear-gradient(145deg, rgba(185, 155, 88, .18), transparent 55%),
    var(--paper-strong);
}

.art-4 {
  background:
    radial-gradient(circle at 68% 25%, rgba(96, 116, 129, .28), transparent 72px),
    linear-gradient(145deg, rgba(181, 95, 83, .14), transparent 55%),
    var(--paper-strong);
}

.gallery-item figcaption {
  padding: 18px;
  color: #565b5f;
}

.contact {
  background: #fff;
}

.contact-card {
  min-height: 150px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 7px;
  font-style: normal;
}

.contact-card strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.contact-card span,
.contact-card a {
  color: var(--muted);
}

.footer {
  min-height: 82px;
  padding: 24px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  background: var(--paper);
}

.footer span {
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: .08em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  :root {
    --nav-h: 108px;
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px 14px 10px;
  }

  .nav-scroll {
    justify-content: flex-start;
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .nav-scroll a {
    background: rgba(247, 246, 242, .72);
    border: 1px solid rgba(222, 219, 211, .78);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .brand-name {
    font-size: 18px;
  }

  .content-section,
  .contact {
    padding-block: 56px;
  }

  .hero {
    min-height: auto;
  }
}

@media (min-width: 761px) {
  .hero {
    grid-template-columns: .92fr 1.08fr;
    padding-block: 46px 70px;
  }

  .hero-art {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .slider,
  .gallery-slider {
    grid-auto-columns: minmax(330px, 34%);
    gap: 18px;
  }

  .slider.compact {
    grid-auto-columns: minmax(280px, 32%);
  }

  .slider-btn {
    display: grid;
  }

  .join-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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