/* ==========================================================================
   kiln & clay — wabi-sabi earth: terracotta, sand, muted olive on unbleached
   Type: Zilla Slab light (grounded slab headings) + Karla (quiet lowercase body)
   Personality: restrained, tactile, square-ish utilitarian cards, visible
   texture, generous breathing room. left-aligned, no centering theatrics.
   ========================================================================== */

:root {
  --unbleached: #efe9dc;
  --paper: #f5f1e6;
  --clay: #b0653f;
  --clay-deep: #8c4a2b;
  --sand: #c8a266;
  --olive: #7a7a52;
  --olive-deep: #565638;
  --char: #3a342b;
  --line: #d6ccb8;
  --font-head: "Zilla Slab", "Rockwell", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* visible texture: layered CSS "noise" via repeating gradients */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--char);
  background-color: var(--unbleached);
  background-image:
    repeating-linear-gradient(45deg, rgba(58, 52, 43, 0.022) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(176, 101, 63, 0.02) 0 1px, transparent 1px 6px);
}

a { color: var(--clay-deep); text-underline-offset: 3px; }

a:hover { color: var(--olive-deep); }

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--char);
  color: var(--unbleached);
  padding: 0.7rem 1.3rem;
  z-index: 100;
}

.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header: spare utilitarian bar ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--char);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.35rem;
}

.nav-toggle {
  display: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: none;
  border: 1px solid var(--char);
  color: var(--char);
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--char);
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav a:hover { border-bottom-color: var(--clay); color: var(--clay-deep); }

/* the toggle, close button, and scrim exist only on small screens with JS —
   the small-screen media query reveals them under .js. on desktop (any JS
   state) and on small screens without JS they never render. */
.nav-close,
.nav-scrim { display: none; }

body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */

.hero {
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}

h1 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.5rem;
  color: var(--char);
}

.hero-lede {
  max-width: var(--measure);
  margin: 0 0 2.25rem;
}

.hero-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--olive-deep);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.hero-facts dd { margin: 0; font-weight: 500; }

.hero-vessels { justify-self: end; }

.hero-vessels svg { max-width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero-vessels svg {
    animation: settle 900ms ease-out both;
  }
  @keyframes settle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- bands (sections) ---------- */

.band {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.band-clay {
  max-width: none;
  background:
    repeating-linear-gradient(45deg, rgba(58, 52, 43, 0.04) 0 2px, transparent 2px 5px),
    linear-gradient(170deg, var(--clay) 0%, var(--clay-deep) 100%);
  color: #f4e8dc;
  border-top: 0;
}

.band-clay > * { max-width: 61rem; margin-left: auto; margin-right: auto; }

.band-clay h2, .band-clay h3 { color: #fbf3e8; }

.band-clay a { color: #f7d9b8; }

.band-olive {
  max-width: none;
  background:
    repeating-linear-gradient(-45deg, rgba(58, 52, 43, 0.05) 0 2px, transparent 2px 6px),
    linear-gradient(165deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: #ecead9;
  border-top: 0;
}

.band-olive > * { max-width: 61rem; margin-left: auto; margin-right: auto; }

.band-olive h2 { color: #f4f2e3; }

h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  color: var(--char);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* imperfect square heading mark */
.h-mark {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  background: var(--clay);
  border-radius: 28% 45% 35% 50%;
  flex-shrink: 0;
}

.h-mark-light { background: var(--sand); }

h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 1.5rem 0 0.4rem;
}

.band-lede {
  max-width: var(--measure);
  margin: 0 0 2.5rem;
  color: inherit;
}

/* ---------- shop cards: square-ish, utilitarian, textured ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background:
    repeating-linear-gradient(45deg, rgba(58, 52, 43, 0.03) 0 1px, transparent 1px 4px),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.9rem 1.7rem 1.6rem;
  box-shadow: 0 1px 0 rgba(58, 52, 43, 0.12);
}

.card-glyph { display: block; margin-bottom: 1.1rem; }

.card h3 { margin: 0 0 0.1rem; }

.card-price {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--clay-deep);
  margin: 0 0 0.7rem;
}

.card p:last-child { margin-bottom: 0; font-size: 0.97rem; }

.ship-note {
  margin: 2.5rem 0 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--sand);
  background: var(--paper);
  max-width: var(--measure);
}

/* ---------- classes ---------- */

.class-rows { display: grid; gap: 1.25rem; }

.class-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: rgba(245, 241, 230, 0.12);
  border: 1px solid rgba(245, 241, 230, 0.3);
  border-radius: 4px;
  padding: 1.75rem 2rem;
}

.class-info h3 { margin-top: 0; }

.class-info p { max-width: 56ch; }

.class-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0;
}

.class-price {
  font-family: var(--font-head);
  font-weight: 300;
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.class-price span {
  display: block;
  font-size: 2.6rem;
  color: #fbf3e8;
}

.class-note { margin: 2rem 0 0; }

/* ---------- seconds ---------- */

.seconds-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--paper);
  border: 1px dashed var(--clay);
  border-radius: 4px;
  padding: 2.25rem 2.25rem 2rem;
}

.seconds-box h2 { margin-bottom: 0.6rem; }

.seconds-box p { max-width: var(--measure); margin-bottom: 0; }

/* ---------- studio ---------- */

.studio-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.studio-cols p { margin: 0; }

/* ---------- faq ---------- */

.faq-list { max-width: 46rem; }

.faq { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.15rem;
  padding: 1rem 0.25rem;
  color: var(--char);
}

.faq summary:hover { color: var(--clay-deep); }

.faq[open] summary { color: var(--clay-deep); }

.faq p {
  margin: 0;
  padding: 0 0.25rem 1.25rem;
  max-width: var(--measure);
}

/* ---------- visit ---------- */

.visit-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.visit-cols h3:first-child { margin-top: 0; }

address {
  font-style: normal;
  line-height: 1.9;
  font-weight: 500;
}

.hours-table { border-collapse: collapse; }

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.5rem 1.5rem 0.5rem 0;
  border-bottom: 1px solid rgba(245, 241, 230, 0.3);
  font-weight: 400;
}

.hours-table th { font-weight: 700; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--char);
  color: #cfc7b6;
  padding: 2.75rem 1.5rem;
}

.site-footer p {
  max-width: 64rem;
  margin: 0.35rem auto;
  font-size: 0.95rem;
}

.site-footer a { color: #e3b890; }

.site-footer strong { color: #efe9dc; }

.footer-fine { margin-top: 1.25rem !important; font-size: 0.83rem; opacity: 0.7; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-vessels { justify-self: start; }
  .hero-vessels svg { width: 220px; }

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

  .class-row { grid-template-columns: 1fr; gap: 1rem; }
  .class-price { text-align: left; }
  .class-price span { display: inline; margin-right: 0.4rem; }

  .studio-cols,
  .visit-cols { grid-template-columns: 1fr; gap: 1.5rem; }

  .seconds-box { grid-template-columns: 1fr; gap: 1rem; }

  /* Navigation is never hidden — on small screens it compresses to a
     single thin row that scrolls sideways, with a fade hinting at more. */
  nav[aria-label="Primary"] {
    position: relative;
  }

  nav[aria-label="Primary"]::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.2rem;
    background: linear-gradient(to right, transparent, var(--paper, #efe5d4));
    pointer-events: none;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2.2rem 0 0;
    margin-top: 0.4rem;
  }

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

  .nav a {
    font-size: 0.92rem;
    padding: 0.45rem 0;
    white-space: nowrap;
  }
}



/* Social links (fictional .example profiles) */
.social-links { display: flex; gap: 1.2rem; list-style: none; justify-content: center; padding: 0 1.5rem; margin: 1.5rem auto 0; }
.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { width: 1.3rem; height: 1.3rem; }

