/* Forma — warm studio identity. System type, local assets only. */

:root {
  --paper: #faf5ec;
  --card: #fffdf7;
  --ink: #241d16;
  --muted: #6f6255;
  --line: #e4d6bd;
  --accent: #b4432a;
  --accent-ink: #8f3220;
  --accent-wash: #f6e3d3;
  --sage: #3f5a45;
  --sage-wash: #dfe7da;
  --gold: #c98a2b;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(36 29 22 / .06), 0 12px 32px -12px rgb(36 29 22 / .22);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-tap-highlight-color: rgb(180 67 42 / .18);
  background-image:
    radial-gradient(1100px 380px at 85% -80px, #f3e2c8 0%, transparent 60%),
    radial-gradient(900px 420px at -10% 30%, #f0e7d2 0%, transparent 55%);
  background-attachment: fixed;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0 0 .5rem;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 650; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus-visible { top: 0; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 245 236 / .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: .7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.site-nav { display: flex; gap: 1.1rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent-ink); border-color: var(--accent); }
.header-note {
  margin: 0;
  font-size: .85rem;
  font-weight: 650;
  color: var(--accent-ink);
  background: var(--accent-wash);
  border: 1px solid #e9c9ae;
  padding: .35rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- buttons / focus ---------- */
a, button, input, select { touch-action: manipulation; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: .7rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-toggle {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  padding: .6rem 1rem;
}
.btn-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 .6rem;
}
.lede { font-size: 1.1rem; color: #3d332a; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 1.4rem; }
.hero-stats {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: .1rem; }
.hero-stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2.1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-figure figcaption, .photo-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* ---------- workshops ---------- */
.workshops { padding: clamp(1.5rem, 3vw, 2.5rem) 0; scroll-margin-top: 4.5rem; }
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}
.section-sub { color: var(--muted); margin: 0; max-width: 30rem; justify-self: end; }

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: .9rem;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px -6px rgb(36 29 22 / .25);
}
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .65rem .85rem;
  width: 100%;
}
.field input::placeholder { color: #a2937f; }
.field input:hover, .field select:hover { border-color: #c9b48f; }
.field select {
  background-color: #fff;
  appearance: auto;
}
.results-line { color: var(--muted); font-size: .92rem; margin: 1rem 0 0; min-height: 1.4em; }

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgb(36 29 22 / .18);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; margin: 0; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.chip {
  position: absolute;
  left: .8rem;
  top: .8rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgb(250 245 236 / .95);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: .25rem .65rem;
  border-radius: 999px;
}
.chip-saved {
  position: absolute;
  right: .8rem;
  top: .8rem;
  font-size: .75rem;
  font-weight: 800;
  background: var(--ink);
  color: var(--paper);
  padding: .25rem .65rem;
  border-radius: 999px;
}
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.3rem; overflow-wrap: break-word; }
.card-desc {
  margin: 0;
  color: #4a4036;
  font-size: .94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}
.card-meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card-meta dd { margin: 0; font-weight: 600; }
.card-meta .price { color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.card-foot { display: flex; gap: .6rem; align-items: center; margin-top: auto; padding-top: .5rem; }
.btn-open {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-open:hover { background: var(--ink); color: var(--paper); }

/* ---------- empty ---------- */
.empty { margin-top: 1rem; }
.empty-card {
  text-align: center;
  background: var(--card);
  border: 1.5px dashed #c9b48f;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  max-width: 34rem;
  margin-inline: auto;
}
.empty-emoji { font-size: 2rem; margin: 0 0 .4rem; color: var(--accent); }
.photo-note { margin-top: 1.2rem; }

/* ---------- visit / about ---------- */
.visit { padding: clamp(2rem, 4vw, 3.2rem) 0; }
.visit-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 1.5rem;
  align-items: start;
}
.visit-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.visit-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .8rem 1rem;
  overflow-wrap: break-word;
}
.visit-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.visit-card h3 { color: #f3d9a4; }
.visit-card .muted { color: #cbbfae; }

.about { padding: 0 0 clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 4.5rem; }
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.about-figure { margin: 0; }
.about-figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 3.4;
  object-fit: cover;
  width: 100%;
}
.muted { color: var(--muted); }
.visit { scroll-margin-top: 4.5rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  justify-content: space-between;
}
.footer-inner p { margin: 0; }

/* ---------- detail dialog ---------- */
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(30 22 14 / .55);
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail {
  width: min(640px, 100%);
  max-height: min(92dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5);
  scroll-margin-top: 0;
}
.detail-media { margin: 0; position: relative; }
.detail-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px 22px 0 0; }
.detail-body { padding: 1.5rem clamp(1.2rem, 4vw, 2rem) 1.8rem; }
.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: .6rem;
}
.pill {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .25rem .7rem;
  border: 1px solid var(--line);
  background: var(--sage-wash);
  color: var(--sage);
}
.pill-price { background: var(--accent-wash); border-color: #e9c9ae; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.detail-body h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.detail-lede { font-size: 1.05rem; color: #3d332a; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 1.1rem 0;
  padding: 0;
  list-style: none;
}
.facts li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .6rem .8rem;
  background: #fff;
  min-width: 0;
  overflow-wrap: break-word;
}
.facts span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts strong { font-variant-numeric: tabular-nums; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.btn-save { background: var(--accent); color: #fff; flex: 1; min-width: 200px; }
.btn-save:hover { background: var(--accent-ink); }
.btn-save[aria-pressed="true"] { background: var(--sage); }
.btn-save[aria-pressed="true"]:hover { background: #2f4634; }
.btn-close { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-close:hover { background: var(--ink); color: var(--paper); }
.detail-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure img { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; }
  .section-sub { justify-self: start; }
  .visit-grid, .about-grid { grid-template-columns: 1fr; }
  .about-figure img { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .toolbar { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .detail-backdrop { padding: .75rem; align-items: end; }
  .detail { border-radius: 18px; max-height: 94dvh; }
  .hero-stats { flex-wrap: wrap; gap: 1rem 1.6rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
