/*
 * Warm film-lab direction
 * Cream paper, muted pigments, editorial type and a subtle moving grain.
 */
:root {
  --ink: #29241f;
  --ink-soft: #4b423a;
  --paper: #f8f3e7;
  --paper-deep: #eee4d3;
  --white: #fffdf7;
  --red: #c45d4e;
  --red-dark: #97463c;
  --green: #4f7962;
  --amber: #a87537;
  --danger: #a64d54;
  --muted: #71675e;
  --line: #d6c9b7;
  --line-dark: #8c7d70;
  --lilac: #9a82b2;
  --peach: #efd4c2;
  --sage: #d8e0cf;
  --heading: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  --body: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  --display: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
}

html { background: var(--paper); }

body {
  position: relative;
  color: var(--ink);
  background: var(--paper);
}

body::after {
  position: fixed;
  z-index: 9999;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  content: "";
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
  background-repeat: repeat;
  transform: translate3d(0, 0, 0);
  animation: film-grain .7s steps(2, end) infinite;
  mix-blend-mode: multiply;
}

@keyframes film-grain {
  0% { transform: translate3d(-2%, -3%, 0); }
  25% { transform: translate3d(3%, 1%, 0); }
  50% { transform: translate3d(-1%, 4%, 0); }
  75% { transform: translate3d(4%, -2%, 0); }
  100% { transform: translate3d(-3%, 2%, 0); }
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
h3 { font-size: 1.55rem; }

.utility-bar { background: var(--red); }
.utility-bar > div { font-weight: 700; }

.site-header {
  color: var(--ink);
  background: rgba(248, 243, 231, .94);
  border-color: rgba(113, 103, 94, .25);
  box-shadow: 0 5px 22px rgba(72, 54, 41, .05);
}

.brand { color: var(--ink); }
.brand span,
.footer-brand strong {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.055em;
  text-transform: none;
}

.brand span {
  position: relative;
  font-size: 2rem;
  line-height: .9;
}

.brand span::after {
  display: inline-block;
  margin-left: .3em;
  color: var(--lilac);
  content: "✦";
  font-family: Georgia, serif;
  font-size: .42em;
  font-style: normal;
  transform: translateY(-.85em) rotate(9deg);
}

.brand small { color: var(--red); }
.site-nav a,
.site-nav .text-button { color: var(--ink); }
.site-nav a:hover,
.site-nav a:focus-visible,
.text-button:hover { color: var(--red-dark); }
.site-nav .admin-link { color: var(--lilac); }
.nav-cta {
  border-radius: 2px;
  color: var(--white) !important;
  background: var(--red);
}
.nav-toggle {
  border-color: var(--line-dark);
  color: var(--ink);
}
.language-form select {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button {
  border-radius: 3px;
  font-weight: 800;
  box-shadow: none;
}
.button:hover { transform: translateY(-2px) rotate(-.35deg); }
.button-primary {
  border-color: var(--red);
  background: var(--red);
}
.button-primary:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}
.button-dark {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}
.button-light,
.button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.button-light:hover,
.button-secondary:hover {
  color: var(--paper);
  background: var(--ink);
}

.eyebrow,
.section-number {
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: .12em;
}
.eyebrow { color: var(--red-dark); }
.section-number { color: var(--lilac); }

.home-hero {
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  min-height: 620px;
  color: var(--ink);
  background: var(--peach);
}
.home-hero-photo {
  min-height: 560px;
  margin: 30px 0 30px 30px;
  border-radius: 48% 48% 8px 8px / 9% 9% 8px 8px;
  box-shadow: 0 18px 50px rgba(65, 46, 34, .16);
}
.home-hero-photo::after {
  background: linear-gradient(90deg, transparent 75%, rgba(54, 38, 29, .12));
}
.home-hero-photo img {
  filter: saturate(.68) sepia(.1) contrast(1.01);
}
.image-stamp {
  right: 16px;
  bottom: 16px;
  border-radius: 2px;
  background: var(--red);
}
.home-hero-copy {
  position: relative;
  padding: 58px clamp(35px, 6vw, 84px);
}
.home-hero-copy::before {
  display: block;
  margin-bottom: 10px;
  color: var(--lilac);
  content: "〰";
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: .6;
  transform: rotate(-5deg);
}
.home-hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(3.15rem, 5.5vw, 5rem);
}
.home-hero-copy > p:not(.eyebrow) {
  color: var(--muted);
}
.hero-facts { border-color: rgba(83, 65, 51, .22); }
.hero-facts dt { color: var(--red-dark); }
.hero-facts dd { color: var(--muted); }

.setup-banner {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--white);
}
.manifesto h2::after,
.section-heading h2::after,
.community-section h2::after {
  display: inline-block;
  margin-left: .18em;
  color: var(--lilac);
  content: "∿";
  font-family: var(--display);
  font-size: .7em;
  transform: rotate(-7deg);
}
.manifesto > div > p,
.section-heading > div > p:last-child { color: var(--muted); }

.machine-grid { gap: 24px; }
.machine-card {
  overflow: hidden;
  border-color: var(--line);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(72, 54, 41, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.machine-card:nth-child(2) { transform: translateY(18px) rotate(.45deg); }
.machine-card:nth-child(3) { transform: rotate(-.4deg); }
.machine-card:hover {
  transform: translateY(-5px) rotate(-.3deg);
  box-shadow: 0 20px 45px rgba(72, 54, 41, .14);
}
.machine-image { filter: saturate(.7) sepia(.08) contrast(1.01); }
.machine-image-wrap:hover .machine-image { filter: saturate(.95); }
.machine-card h3 { font-family: var(--display); }
.status-badge { border-radius: 3px 0 0 0; background: var(--green); }
.machine-meta a,
.arrow-link { color: var(--red-dark); }

.spaces-section {
  color: var(--ink);
  background: #ded5e7;
}
.section-heading-inverse h2 { color: var(--ink); }
.space-grid { gap: 26px; }
.space-card {
  min-height: 460px;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(63, 50, 70, .13);
}
.space-card:nth-child(2) { transform: translateY(20px) rotate(.5deg); }
.space-card::after {
  background: linear-gradient(0deg, rgba(42, 35, 31, .86), rgba(42, 35, 31, .02) 72%);
}
.space-card img { filter: saturate(.72) sepia(.08); }
.space-card:hover img { filter: saturate(.95); }
.space-card > div > span { color: #f2b2a4; }
.space-card h3 { font-family: var(--display); }

.workshop-feature { gap: 24px; }
.workshop-copy {
  border-radius: 10px 2px 2px 10px;
  color: var(--ink);
  background: #e9b7a9;
}
.workshop-copy .section-number { color: var(--red-dark); }
.workshop-feature > img {
  border-radius: 2px 10px 10px 2px;
  filter: saturate(.72) sepia(.08);
}
.visit-strip { background: #e5e3c9; }

.studio-hero {
  min-height: 600px;
  color: var(--ink);
  background: #dfd4e7;
}
.studio-hero-copy { position: relative; }
.studio-hero-copy::before {
  margin-bottom: 9px;
  color: var(--red);
  content: "〰";
  font-family: var(--display);
  font-size: 2.6rem;
}
.studio-hero-copy h1 { font-size: clamp(3rem, 5vw, 4.7rem); }
.studio-hero-copy > p:not(.eyebrow) { color: var(--muted); }
.studio-hero > img {
  margin: 30px 30px 30px 0;
  width: calc(100% - 30px);
  height: calc(100% - 60px);
  align-self: center;
  border-radius: 8px 48% 48% 8px / 8px 9% 9% 8px;
  filter: saturate(.72) sepia(.08);
  box-shadow: 0 18px 50px rgba(65, 46, 34, .15);
}
.story-image { position: relative; }
.story-image::after {
  position: absolute;
  right: -16px;
  bottom: 22px;
  color: var(--lilac);
  content: "∿";
  font-family: var(--display);
  font-size: 4rem;
  transform: rotate(-12deg);
}
.story-image img {
  border-radius: 8px;
  filter: saturate(.72) sepia(.08);
}
.story-copy {
  border-radius: 8px;
  background: var(--white);
}
.workshop-section {
  color: var(--ink);
  background: #e9b7a9;
}
.workshop-section .section-number { color: var(--red-dark); }
.workshop-list article { border-color: rgba(80, 56, 45, .3); }
.workshop-list p { color: var(--muted); }

.page-heading,
.admin-heading {
  color: var(--ink);
  background: var(--peach);
}
.page-heading > p:last-child,
.admin-heading > p:last-child { color: var(--muted); }

.machine-overview,
.machine-instructions,
.booking-panel,
.form-card,
.admin-panel,
.booking-row,
.schedule-scroll,
.table-scroll {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(72, 54, 41, .07);
}
.detail-image img { filter: saturate(.72) sepia(.08); }
.machine-instructions { border-top: 0; }
.booking-panel,
.form-card { box-shadow: 0 15px 40px rgba(72, 54, 41, .11); }
.open-date-list a,
.slot span,
input,
select,
textarea {
  border-color: var(--line-dark);
  border-radius: 3px;
}
.open-date-list a:hover,
.open-date-list a:focus-visible,
.open-date-list a.active,
.slot input:checked + span {
  border-color: var(--red);
  background: var(--red);
}
.booking-step h2 > span {
  border-radius: 50%;
  background: var(--lilac);
}
.selection-summary { background: #f2eadc; }

.schedule-table thead th,
.data-table thead th { background: var(--ink-soft); }
.schedule-hour.busy { border-color: var(--ink-soft); background: var(--ink-soft); }
.schedule-hour.open { color: #3f6852; background: var(--sage); }

.admin-nav {
  color: var(--ink);
  background: #ded5e7;
}
.admin-nav strong { color: var(--red-dark); }
.admin-nav a { color: var(--ink); }
.admin-nav a:hover { color: var(--white); background: var(--lilac); }
.stat-grid article {
  border-top-color: var(--lilac);
  border-radius: 7px;
  color: var(--ink);
  background: #e5dccf;
}
.stat-grid span { color: var(--muted); }
.stat-grid a { color: var(--red-dark); }

.site-footer {
  color: var(--ink);
  background: #d9cec0;
}
.footer-brand strong { font-size: 2rem; }
.site-footer p { color: var(--muted); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--red-dark); }
.footer-label { color: var(--red-dark); }
.site-footer > small {
  border-color: rgba(77, 62, 51, .2);
  color: var(--muted);
}

@media (max-width: 960px) {
  .site-nav {
    border-color: var(--line);
    background: var(--paper);
    box-shadow: 0 18px 35px rgba(72, 54, 41, .12);
  }
  .site-nav a,
  .site-nav .text-button { color: var(--ink); }
  .home-hero-photo {
    min-height: 52vw;
    margin: 22px 22px 0;
    border-radius: 42% 42% 8px 8px / 12% 12% 8px 8px;
  }
  .studio-hero > img {
    order: -1;
    margin: 22px 22px 0;
    width: calc(100% - 44px);
    height: auto;
    max-height: 500px;
    border-radius: 42% 42% 8px 8px / 12% 12% 8px 8px;
  }
}

@media (max-width: 700px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.2rem; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-photo {
    min-height: 88vw;
    margin: 16px 16px 0;
  }
  .home-hero-copy { padding: 42px 20px 48px; }
  .home-hero-copy h1 { font-size: 3.05rem; }
  .machine-card:nth-child(2),
  .machine-card:nth-child(3),
  .space-card:nth-child(2) { transform: none; }
  .space-card { min-height: 390px; }
  .workshop-copy,
  .workshop-feature > img { border-radius: 8px; }
  .studio-hero-copy { padding-top: 42px; }
  .story-image::after { right: 4px; bottom: -24px; }
  .booking-panel,
  .form-card { box-shadow: 0 9px 26px rgba(72, 54, 41, .1); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .machine-card,
  .space-card,
  .button { transition: none; }
  .machine-card:hover,
  .button:hover { transform: none; }
}
