/* ============================================================
   Forma — a printed studio programme sheet, rendered warm.
   Canvas: oat paper. Ink: warm near-black. Accent: poppy terracotta.
   Signature: arch-framed photographs, Nº index labels, hairline rules.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.3-flash--design-distinctive-websites--2026-09-19T08-42-06-274Z/assets/fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.3-flash--design-distinctive-websites--2026-09-19T08-42-06-274Z/assets/fonts/WorkSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f4eee3;
  --paper-deep: #ece3d2;
  --panel: #fbf6ea;
  --ink: #221c12;
  --ink-soft: #6d6250;
  --line: rgba(34, 28, 18, 0.18);
  --line-strong: rgba(34, 28, 18, 0.4);
  --accent: #b94712;          /* poppy terracotta */
  --accent-ink: #8f370c;
  --on-accent: #fdf7ea;
  --blue: #2f586b;            /* glazed ceramics */
  --teal: #1f6e63;            /* brush handles */
  --rye: #7a4a21;             /* dark loaf crust */

  --cat-ceramics: var(--blue);
  --cat-painting: var(--teal);
  --cat-floristry: var(--accent);
  --cat-baking: var(--rye);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

#programme, #studio { scroll-margin-top: 76px; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- focus & skip ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -48px; z-index: 60;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-size: 0.85rem; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- signature arch ---------- */
.arch {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--paper-deep);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.arch-glyph { width: 16px; height: 21px; color: var(--accent); flex: none; }
.arch-glyph-lg { width: 22px; height: 29px; }

/* ---------- shared type roles ---------- */
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 560;
  font-size: clamp(3.1rem, 6.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display .wonk {
  color: var(--accent);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); color: var(--on-accent); }
.btn-solid:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(34, 28, 18, 0.05); }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 238, 227, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-family: var(--serif); font-weight: 620; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark .arch-glyph { align-self: center; }
.head-nav { display: flex; align-items: center; gap: 26px; }
.head-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.15s var(--ease);
}
.head-nav a:hover { border-color: var(--ink); }
.head-shortlist {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.head-shortlist:hover { border-color: var(--ink); }
.head-shortlist[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.sl-count { font-family: var(--serif); font-style: normal; color: var(--accent); font-weight: 600; }
.head-shortlist[aria-pressed="true"] .sl-count { color: var(--paper); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 80px);
}
.lede {
  max-width: 46ch;
  font-size: 1.14rem;
  color: var(--ink-soft);
  margin-top: 24px;
}
.hero-cta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
  margin-top: 36px;
}
.hero-note { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.hero-art { justify-self: end; width: min(100%, 440px); margin: 0; }
.arch-hero { aspect-ratio: 4 / 5.1; }
.arch-hero img { transition: transform 0.6s var(--ease); }
.hero-art:hover .arch-hero img { transform: scale(1.03); }
.art-label {
  display: flex; gap: 8px; align-items: baseline;
  margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em;
}
.art-no { font-family: var(--serif); color: var(--accent); font-weight: 600; }

/* ---------- discipline strip ---------- */
.disciplines {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
.disciplines li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tick { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.tick-ceramics { background: var(--cat-ceramics); }
.tick-painting { background: var(--cat-painting); }
.tick-floristry { background: var(--cat-floristry); }
.tick-baking { background: var(--cat-baking); }

/* ============================================================
   PROGRAMME
   ============================================================ */
.programme { padding-block: clamp(52px, 7vw, 92px); }
.sec-head { max-width: 620px; margin-bottom: 40px; }
.sec-head .arch-glyph-lg { margin-bottom: 18px; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance;
}
.sec-sub { color: var(--ink-soft); margin-top: 14px; max-width: 52ch; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px 28px;
  border-block: 1px solid var(--line);
  padding-block: 18px;
  margin-bottom: 8px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft);
}
.field input,
.field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  padding: 6px 2px 8px; min-width: 0; border-radius: 0;
}
.field input { width: min(300px, 58vw); }
.field input::placeholder { color: rgba(109, 98, 80, 0.65); }
.field input:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 26px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23221c12' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.saved-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 18px; margin-bottom: 2px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.saved-toggle:hover { border-color: var(--ink); }
.saved-toggle .heart { width: 16px; height: 15px; }
.saved-toggle[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.saved-toggle[aria-pressed="true"] .heart path { fill: currentColor; }
.result-count {
  margin-left: auto; font-size: 0.85rem; color: var(--ink-soft);
  align-self: center;
}

/* ---------- programme rows ---------- */
.rows { list-style: none; }
.row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 235px;
  gap: 16px 34px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.rows > li:first-child .row { border-top: none; }
.row:hover, .row:focus-within { background: rgba(185, 71, 18, 0.05); }
.row-thumb .arch { aspect-ratio: 1 / 1.18; }
.row-thumb .arch img { transition: transform 0.5s var(--ease); }
.row:hover .row-thumb .arch img { transform: scale(1.045); }

.row-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 10px;
}
.row-no { font-family: var(--serif); color: var(--accent); font-weight: 600; letter-spacing: 0; font-size: 0.85rem; }
.row-cat { display: inline-flex; align-items: center; gap: 8px; }
.row-cat .tick { width: 8px; height: 8px; }

.row-title {
  font-family: var(--serif); font-weight: 580;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.12; letter-spacing: -0.005em;
}
.row-open {
  font: inherit; color: inherit; background: none; border: none;
  padding: 0; cursor: pointer; text-align: left; letter-spacing: inherit;
  text-decoration: underline transparent 1.5px; text-underline-offset: 4px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}
.row:hover .row-open, .row-open:hover { text-decoration-color: var(--accent); }
.row-desc { color: var(--ink-soft); margin-top: 10px; max-width: 52ch; }
.row-instructor { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.row-instructor strong { font-weight: 600; color: var(--ink); }

.row-spec {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 6px; min-width: 0;
}
.spec { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.spec-l {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); padding-top: 3px;
}
.spec-v { text-align: right; white-space: nowrap; }
.row-price {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-weight: 600; font-size: 1.55rem;
  display: flex; justify-content: space-between; align-items: baseline;
}
.row-price small { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.saved-tag {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px;
  padding: 4px 11px;
}
.saved-tag .heart { width: 12px; height: 11px; }
.saved-tag .heart path { fill: currentColor; stroke: none; }

/* ---------- empty state ---------- */
.empty {
  text-align: center; padding: 72px 24px 84px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty .arch-glyph-lg { color: var(--ink-soft); margin-bottom: 10px; }
.empty-title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 560; }
.empty-sub { color: var(--ink-soft); max-width: 44ch; margin-bottom: 18px; }

/* ============================================================
   STUDIO NOTE
   ============================================================ */
.studio { background: var(--paper-deep); border-block: 1px solid var(--line); }
.studio-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  padding-block: clamp(56px, 7vw, 96px);
  align-items: center;
}
.arch-studio { aspect-ratio: 4 / 3.4; max-width: 470px; }
.studio-copy h2 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.01em; max-width: 22ch;
}
.steps { list-style: none; margin-top: 36px; display: grid; gap: 0; }
.steps li {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px;
  padding-block: 20px; border-top: 1px solid var(--line);
}
.step-no {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--accent); padding-top: 2px;
}
.steps h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; max-width: 48ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { background: var(--ink); color: var(--paper); }
.foot-in { padding-block: 64px 40px; }
.foot-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 2rem;
}
.foot-mark .arch-glyph { color: var(--accent); width: 20px; height: 27px; }
.foot-line {
  font-family: var(--serif); font-size: 1.25rem; color: rgba(253, 247, 234, 0.85);
  max-width: 34ch; margin-top: 18px; line-height: 1.4;
}
.foot-small {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244, 238, 227, 0.2);
  font-size: 0.8rem; color: rgba(253, 247, 234, 0.55); line-height: 1.7;
}

/* ============================================================
   DETAIL DRAWER
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(24, 18, 9, 0.52);
  opacity: 0; transition: opacity 0.28s var(--ease);
}
.scrim.open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 55;
  width: min(520px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(102%);
  transition: transform 0.32s var(--ease);
}
.drawer.open { transform: translateX(0); }

.drawer-in { padding: 22px clamp(22px, 4vw, 36px) 44px; }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.drawer-top .row-meta { margin-bottom: 0; }
.drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.drawer-close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.drawer-close svg { width: 15px; height: 15px; }

.drawer .arch { aspect-ratio: 16 / 10.5; margin-bottom: 26px; }
.drawer-title {
  font-family: var(--serif); font-weight: 580;
  font-size: clamp(2rem, 4.5vw, 2.7rem); line-height: 1.06; letter-spacing: -0.01em;
}
.drawer-body { color: var(--ink-soft); margin-top: 16px; font-size: 1.05rem; max-width: 48ch; }

.drawer-price {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
}
.drawer-price strong {
  font-family: var(--serif); font-weight: 600; font-size: 2.3rem; line-height: 1;
}
.drawer-price span { color: var(--ink-soft); font-size: 0.88rem; }

.spec-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.spec-list div { min-width: 0; }
.spec-list dt {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px;
}
.spec-list dd { font-size: 0.97rem; font-weight: 500; }

.save-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; margin-top: 30px; padding: 15px 24px;
  font: inherit; font-size: 1rem; font-weight: 600;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.save-btn .heart { width: 19px; height: 17px; flex: none; }
.save-btn[aria-pressed="false"] {
  background: var(--accent); color: var(--on-accent);
}
.save-btn[aria-pressed="false"] .heart path { fill: none; stroke: currentColor; }
.save-btn[aria-pressed="false"]:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.save-btn[aria-pressed="true"] {
  background: transparent; color: var(--accent-ink);
}
.save-btn[aria-pressed="true"] .heart path { fill: currentColor; stroke: currentColor; }
.save-btn[aria-pressed="true"]:hover { background: rgba(185, 71, 18, 0.08); }

.drawer-note { margin-top: 16px; font-size: 0.8rem; color: var(--ink-soft); text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .row { grid-template-columns: 124px minmax(0, 1fr) 200px; gap: 14px 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr; align-items: start;
    padding-block: 40px 48px;
  }
  .hero-art { justify-self: stretch; width: 100%; max-width: 420px; margin-top: 8px; }
  .arch-hero { aspect-ratio: 4 / 3.6; }
  .head-nav { gap: 16px; }
  .head-nav a { display: none; }
  .head-nav .head-shortlist { display: inline-flex; }
  .result-count { margin-left: 0; flex-basis: 100%; }

  .row {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-block: 24px;
  }
  .row-thumb .arch { aspect-ratio: 1 / 1.2; }
  .row-spec {
    grid-column: 1 / -1;
    flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 0;
    padding-top: 2px; border-top: 1px dashed var(--line);
    margin-top: 4px; padding-top: 14px;
  }
  .spec { gap: 6px; }
  .spec-v { text-align: left; }
  .row-price { border-top: none; padding-top: 0; margin-top: 0; margin-left: auto; font-size: 1.3rem; }
  .saved-tag { align-self: center; margin-left: 12px; }
  .spec { display: inline-flex; }
  .spec + .spec::before { content: "·"; margin-right: 12px; color: var(--ink-soft); }
  .spec-l { display: none; }

  .studio-in { grid-template-columns: 1fr; }
  .arch-studio { max-width: 420px; }
  .spec-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; }
  .row-price { font-size: 1.15rem; }
  .saved-toggle span { font-size: 0.88rem; }
  .field input { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .drawer { transform: none; }
  .drawer[hidden] { display: none; }
}
