/* Forma: a workshop programme laid out like sheets on a studio bench. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e8e6db;
  --sheet: #f3f1e7;
  --sheet-2: #dedbcd;
  --ink: #17160f;
  --ink-soft: #575447;
  --line: rgba(23, 22, 15, 0.22);
  --line-strong: rgba(23, 22, 15, 0.52);
  --accent: #e94a17;
  --accent-deep: #a92b07;
  --on-accent: #17160f;
  --pocket: #d7d2bd;
  --tape: rgba(207, 198, 166, 0.82);
  --shadow: rgba(23, 22, 15, 0.2);
  --pad: clamp(18px, 3.4vw, 52px);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --top: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181711;
    --sheet: #232117;
    --sheet-2: #2c291d;
    --ink: #f0ecdd;
    --ink-soft: #b7b1a0;
    --line: rgba(240, 236, 221, 0.2);
    --line-strong: rgba(240, 236, 221, 0.5);
    --accent: #f05b27;
    --accent-deep: #ff8a5f;
    --on-accent: #17160f;
    --pocket: #2b281b;
    --tape: rgba(171, 162, 128, 0.32);
    --shadow: rgba(8, 7, 4, 0.58);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .grain {
    mix-blend-mode: screen;
    opacity: 0.06;
  }
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad) 14px;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.wordmark::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.masthead-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: center;
  padding: clamp(26px, 4.4vh, 48px) var(--pad) clamp(30px, 5vh, 56px);
}

.hero-copy h1 {
  font-size: clamp(2.85rem, 5.1vw, 5.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.mark {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.06em;
}

.hero-sub {
  max-width: 43ch;
  margin-top: clamp(18px, 2.6vh, 28px);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button:hover {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translate(-2px, -2px);
}

.button:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.button.primary {
  margin-top: clamp(20px, 3vh, 30px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--accent);
}

.button.primary:hover {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary {
  background: var(--sheet);
}

.arrow {
  font-family: var(--display);
  font-size: 18px;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

.hero-collage {
  position: relative;
  min-height: clamp(280px, 30vw, 390px);
}

.photo {
  position: absolute;
  padding: 9px 9px 26px;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  box-shadow: 5px 7px 0 var(--shadow);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo::before,
.photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 62px;
  height: 20px;
  background: var(--tape);
  border-left: 1px dashed rgba(23, 22, 15, 0.18);
  border-right: 1px dashed rgba(23, 22, 15, 0.18);
}

.photo::before {
  top: -9px;
  left: 22%;
  transform: rotate(-4deg);
}

.photo::after {
  top: -8px;
  right: 16%;
  transform: rotate(5deg);
}

.photo-main {
  top: 7%;
  left: 3%;
  width: 70%;
  aspect-ratio: 4 / 3;
  transform: rotate(-2.2deg);
}

.photo-main img {
  aspect-ratio: 4 / 3;
}

.photo-small {
  width: 42%;
  padding: 6px 6px 18px;
}

.photo-small img {
  aspect-ratio: 5 / 4;
}

.photo-pottery {
  right: 0;
  bottom: 4%;
  transform: rotate(4.5deg);
  z-index: 1;
}

.photo-flowers {
  left: 0;
  bottom: -3%;
  width: 35%;
  transform: rotate(-5deg);
  z-index: 3;
}

.round-stamp {
  position: absolute;
  z-index: 4;
  top: -2%;
  right: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 10vw, 148px);
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--accent);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .round-stamp {
    background: color-mix(in srgb, var(--paper) 70%, transparent);
    box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--accent);
  }
}

.round-stamp .mono {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.round-stamp strong {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

/* ---------- Cut line ---------- */

.cutline {
  position: relative;
  height: 1px;
  margin: 0 var(--pad);
  border-top: 1.5px dashed var(--line-strong);
}

.cutline span {
  position: absolute;
  left: clamp(14px, 4vw, 70px);
  top: 0;
  padding: 0 10px;
  background: var(--paper);
  transform: translateY(-55%);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

/* ---------- Programme ---------- */

.programme {
  padding: clamp(30px, 4.5vh, 48px) var(--pad) clamp(56px, 8vh, 100px);
}

.programme-head {
  max-width: 760px;
  margin-bottom: clamp(24px, 3.5vh, 36px);
}

.programme-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.programme-head p {
  max-width: 54ch;
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.toolbar {
  position: sticky;
  top: var(--top);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(150px, 210px) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  box-shadow: 5px 5px 0 var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.input-wrap {
  position: relative;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.field input {
  padding-right: 58px;
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.field input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.clear-search {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  border: 0;
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-soft);
}

.clear-search:hover {
  color: var(--accent-deep);
}

.saved-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.saved-toggle:hover {
  background: var(--sheet-2);
}

.saved-toggle:active {
  transform: translateY(1px);
}

.saved-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0;
}

.saved-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.saved-toggle[aria-pressed="true"] .saved-toggle-count {
  background: var(--accent);
  color: var(--on-accent);
}

.saved-toggle[aria-pressed="true"]:focus-visible {
  outline-color: var(--accent);
}

.result-count {
  margin: 12px 2px 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
  margin-top: clamp(24px, 3.5vh, 38px);
}

.main-col {
  min-width: 0;
}

.weeks {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vh, 58px);
}

.weekend {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.weeks.list--animate .weekend {
  animation: rise 0.5s var(--ease) both;
}

.weekend-label {
  position: sticky;
  top: 156px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--ink);
}

.weekend-label .mono {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.weekend-range {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.weekend-month {
  font-size: 9px;
  letter-spacing: 0.2em !important;
}

.week-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.weekend:nth-child(2) .week-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.week-grid--solo {
  grid-template-columns: minmax(0, 1fr) !important;
}

.week-grid--solo .item {
  max-width: 620px;
}

/* ---------- Workshop sheets ---------- */

.item {
  position: relative;
  scroll-margin-top: 140px;
  padding: 13px 13px 0;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  box-shadow: 5px 6px 0 var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  cursor: pointer;
}

.weeks.list--animate .item {
  animation: card-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.week-grid > .item:nth-child(odd) {
  --tilt: -0.55deg;
}

.week-grid > .item:nth-child(even) {
  --tilt: 0.6deg;
}

.item:hover,
.item:focus-within {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 9px 13px 0 var(--shadow);
}

.item-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 26px);
  margin: 13px -13px 0;
  padding: 11px 13px;
  border: 0;
  border-top: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.item-open span {
  display: inline-block;
  font-family: var(--display);
  font-size: 16px;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}

.item-open:hover {
  background: var(--ink);
  color: var(--paper);
}

.item-open:hover span {
  transform: translateX(4px);
}

.item-open:active {
  background: var(--accent);
  color: var(--on-accent);
}

.item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 1px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.item-top span:last-child {
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.photo-wrap {
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.photo-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.item:hover .photo-wrap img {
  transform: scale(1.035);
}

.item-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-top: 12px;
}

.cat-stamp {
  display: inline-block;
  padding: 3px 7px 2px;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.stamp-saved {
  display: inline-block;
  margin-left: auto;
  padding: 3px 7px 2px;
  border: 1.5px solid var(--accent-deep);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.item h3 {
  margin-top: 8px;
  font-size: clamp(1.32rem, 1.75vw, 1.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.item-summary {
  margin-top: 9px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.item-facts {
  display: grid;
  grid-template-columns: 0.72fr 0.62fr 1.3fr;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.fact-label {
  display: block;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.fact-value {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.item-facts > div:first-child .fact-value {
  font-size: 1.08rem;
  font-weight: 800;
}

/* ---------- Pocket ---------- */
.pocket {
  position: sticky;
  top: 156px;
}

.pocket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 9px;
  border-bottom: 2px solid var(--ink);
}

.pocket-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pocket-head .mono {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.pocket-body {
  position: relative;
  min-height: 210px;
  padding: 16px 14px 18px;
  border: 1.5px solid var(--ink);
  border-top: 0;
  background:
    linear-gradient(to bottom, rgba(23, 22, 15, 0.1), transparent 18px),
    var(--pocket);
  box-shadow: inset 0 9px 14px -10px rgba(23, 22, 15, 0.55);
}

.pocket-body::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 1px;
  border-top: 1.5px dashed var(--line-strong);
  pointer-events: none;
}

.pocket-empty {
  position: relative;
  margin: 12px 4px 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.slip {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 11px;
  padding: 10px 11px 11px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--sheet);
  box-shadow: 3px 3px 0 var(--shadow);
  text-align: left;
  transform: rotate(-0.8deg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: slip-in 0.35s var(--ease) both;
}

.slip:nth-child(even) {
  transform: rotate(0.8deg);
}

.slip:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 5px 6px 0 var(--shadow);
}

.slip:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 var(--shadow);
}

.slip-date {
  display: block;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.slip-title {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.slip-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ---------- Loading and empty ---------- */

.loading {
  padding: 36px 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.empty-state {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  border: 2px dashed var(--line-strong);
  background: var(--sheet);
  box-shadow: 5px 6px 0 var(--shadow);
}

.empty-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-deep);
  font-size: 34px;
  font-weight: 700;
  transform: rotate(-8deg);
}

.empty-state h3 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.empty-state p {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--ink-soft);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.empty-actions .button {
  margin-top: 0;
}

/* ---------- Footer ---------- */

.footer {
  padding: 26px var(--pad) 32px;
  border-top: 2px solid var(--ink);
  overflow: hidden;
}

.footer-mark {
  margin-bottom: 8px;
  font-size: clamp(4.4rem, 16vw, 13rem);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  white-space: nowrap;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-pitch {
  max-width: 26ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.footer-info a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.footer-note {
  max-width: 55ch;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Detail dialog ---------- */

.sheet-dialog {
  width: min(1020px, calc(100vw - 40px));
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.sheet-dialog::backdrop {
  background: rgba(18, 17, 12, 0.74);
  backdrop-filter: blur(3px);
}

.sheet {
  position: relative;
  max-height: 92dvh;
  overflow: auto;
  padding: clamp(22px, 3.2vw, 44px) clamp(20px, 3.2vw, 46px) clamp(24px, 3.2vw, 42px)
    clamp(34px, 4.4vw, 66px);
  border: 2px solid var(--ink);
  background: var(--sheet);
  box-shadow: 12px 14px 0 rgba(23, 22, 15, 0.32);
}

.sheet::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: 26px;
  width: 18px;
  background-image: radial-gradient(circle at 9px 9px, var(--paper) 5.5px, transparent 6px);
  background-size: 18px 58px;
  background-repeat: repeat-y;
  opacity: 0.95;
  pointer-events: none;
}

.sheet-dialog[open] .sheet {
  animation: unfold 0.45s var(--ease) both;
}

.sheet-dialog[open]::backdrop {
  animation: fade-in 0.3s ease both;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
}

.sheet-top > .mono {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.close-sheet {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.close-sheet span {
  font-family: var(--display);
  font-size: 14px;
  margin-left: 3px;
}

.close-sheet:hover {
  background: var(--ink);
  color: var(--paper);
}

.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(22px, 3.4vw, 44px);
  padding-top: clamp(20px, 3vw, 34px);
}

.sheet-photo {
  position: relative;
  align-self: start;
  padding: 8px 8px 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 5px 6px 0 var(--shadow);
  transform: rotate(-1.2deg);
}

.sheet-photo::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 30%;
  width: 68px;
  height: 20px;
  background: var(--tape);
  transform: rotate(-3deg);
  border-left: 1px dashed rgba(23, 22, 15, 0.18);
  border-right: 1px dashed rgba(23, 22, 15, 0.18);
}

.sheet-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border: 1px solid var(--line);
}

.sheet-content {
  min-width: 0;
}

.sheet-content .cat-stamp {
  font-size: 9px;
  padding: 4px 9px 3px;
}

.sheet-content h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.detail-body {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px solid var(--ink);
}

.facts dt {
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.save-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-top: 24px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.save-toggle:hover {
  background: var(--sheet-2);
}

.save-toggle:active {
  transform: translateY(1px);
}

.save-ticket {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.save-ticket .mono {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.save-action {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.save-stamp {
  display: none;
  padding: 4px 8px;
  border: 2px solid var(--on-accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  color: var(--on-accent);
  animation: stamp-in 0.35s var(--ease) both;
}

.save-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.save-toggle[aria-pressed="true"] .save-ticket .mono,
.save-toggle[aria-pressed="true"] .save-action {
  color: var(--on-accent);
}

.save-toggle[aria-pressed="true"] .save-stamp {
  display: inline-block;
}

.save-toggle[aria-pressed="true"]:focus-visible {
  outline-color: var(--ink);
}

.detail-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes slip-in {
  from {
    opacity: 0;
    translate: -10px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    scale: 1.7;
    rotate: -16deg;
  }
  to {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975) rotate(-0.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-copy > * {
  animation: rise 0.65s var(--ease) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-collage {
  animation: rise 0.75s var(--ease) 0.12s both;
}

.bump {
  animation: stamp-in 0.35s var(--ease) both;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .bench {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .weekend {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .weekend-range {
    font-size: 1.8rem;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 28px;
  }

  .hero-collage {
    min-height: 330px;
  }

  .bench {
    grid-template-columns: minmax(0, 1fr);
  }

  .pocket {
    position: static;
    margin-top: 6px;
  }

  .pocket-body {
    min-height: 0;
  }

  .pocket-body:has(.slip) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    align-items: start;
  }

  .pocket-body .slip {
    margin-bottom: 0;
  }

  .pocket-empty {
    margin-bottom: 12px;
  }

  .weekend-label {
    top: 144px;
  }
}

@media (max-width: 820px) {
  .masthead-meta span:first-child {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 28px;
  }

  .hero-collage {
    min-height: clamp(250px, 58vw, 380px);
  }

  .round-stamp {
    top: -6%;
    right: 4%;
  }

  .toolbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .field-search {
    grid-column: 1 / -1;
  }

  .saved-toggle {
    grid-column: 2;
    justify-self: stretch;
  }

  .field-filter {
    grid-column: 1;
    grid-row: 2;
  }

  .weekend {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .weekend-label {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 9px;
    padding-left: 10px;
  }

  .weekend-label .mono:first-child {
    min-width: 72px;
  }

  .weekend-range {
    font-size: 1.5rem;
  }

  .weekend-month {
    font-size: 8px;
  }

  .week-grid,
  .weekend:nth-child(2) .week-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .week-grid--solo .item {
    max-width: none;
  }

  .sheet-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }

  .sheet {
    max-height: 100dvh;
    min-height: 100dvh;
    padding: 20px 18px 30px;
    border: 0;
    box-shadow: none;
  }

  .sheet::before {
    display: none;
  }

  .sheet-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sheet-photo {
    transform: rotate(-0.8deg);
  }

  .sheet-photo img {
    aspect-ratio: 16 / 10;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-pitch {
    max-width: 34ch;
  }
}

@media (max-width: 520px) {
  .masthead {
    padding-top: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .hero-collage {
    min-height: 245px;
  }

  .photo-main {
    width: 68%;
    top: 4%;
  }

  .photo-pottery {
    width: 38%;
    bottom: 1%;
  }

  .photo-flowers {
    width: 30%;
    bottom: 0;
  }

  .round-stamp {
    width: 96px;
  }

  .round-stamp .mono {
    font-size: 6px;
  }

  .toolbar {
    gap: 11px;
    padding: 12px;
  }

  .saved-toggle {
    font-size: 9px;
    padding: 0 10px;
  }

  .item {
    padding: 11px 11px 0;
  }

  .item-open {
    width: calc(100% + 22px);
    margin-left: -11px;
    margin-right: -11px;
  }

  .item h3 {
    font-size: 1.5rem;
  }

  .item-facts {
    grid-template-columns: 0.75fr 0.58fr 1.4fr;
  }

  .footer-mark {
    font-size: 24vw;
  }

  .save-toggle {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .save-stamp {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .item,
  .weekend,
  .hero-copy > *,
  .hero-collage,
  .sheet-dialog[open] .sheet,
  .slip {
    opacity: 1;
    translate: none;
  }
}
