:root {
  color-scheme: light;
  --page: #f1e5d7;
  --surface: #fff8ef;
  --ink: #623327;
  --muted: #71594f;
  --accent: #914b36;
  --event-muted: #f6e2d0;
  --line: #dac4ae;
  --heading: Georgia, "Times New Roman", serif;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; padding: 24px 0 48px; }
main { width: min(1060px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.section-label { font-family: "Courier New", monospace; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; line-height: 1.6; }

.site-header { padding: 28px 44px 40px; background: var(--surface); border-radius: 24px 24px 4px 4px; }
.header-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.status { color: var(--accent); background: #eed7c1; border-radius: 20px; padding: 9px 12px; font-family: "Courier New", monospace; font-weight: 700; font-size: 10px; letter-spacing: .8px; text-align: center; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; align-items: center; margin-top: 30px; }
.hero-copy { min-width: 0; }
h1 { font-family: var(--heading); font-size: clamp(32px, 4.8vw, 52px); font-weight: 400; line-height: 1.12; letter-spacing: -1.5px; }
.hero-copy p { max-width: 390px; margin-top: 20px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.logo-panel { display: grid; place-items: center; padding: 26px; aspect-ratio: 1; background: #ecd0b2; border-radius: 50% 50% 8px 8px; }
.workshop-logo { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

.events { margin-top: 12px; padding: 32px 40px; background: var(--accent); color: var(--surface); border: 1px solid var(--accent); border-radius: 4px 4px 20px 20px; }
.events-copy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.events-copy .section-label { margin-bottom: 10px; color: var(--event-muted); }
.events-copy h2 { font-family: var(--heading); font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: -.5px; }
.events-copy > p { max-width: 330px; font-size: 14px; line-height: 1.8; color: var(--event-muted); }
.market-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; list-style: none; padding: 0; margin: 26px 0 0; }
.market { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.market-date { display: block; text-align: center; padding: 10px 6px; border-radius: 30px 30px 6px 6px; background: var(--page); color: var(--ink); font-size: 11px; line-height: 1.5; font-weight: 700; text-transform: uppercase; }
.market-date > span { display: block; font-family: var(--heading); font-size: 34px; font-weight: 400; line-height: 1.1; }
.market-date > small { display: block; font-size: 10px; font-weight: 400; }
.market-details { min-width: 0; overflow-wrap: anywhere; }
.market-title { font-family: var(--heading); font-size: 23px; line-height: 1.25; font-weight: 400; }
.market-details > p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.market-details > .market-day { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.market-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 14px; }
.map-link, .save-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; text-decoration: none; }
.map-link:hover, .save-link:hover { background: var(--page); }
.market-note { margin-top: 16px; font-size: 11px; line-height: 1.7; color: var(--event-muted); }
.market-message { display: flex; align-items: center; gap: 24px; margin-top: 26px; padding: 28px; border: 1px dashed var(--line); background: var(--surface); border-radius: 10px; color: var(--ink); }
.empty-flower { flex-shrink: 0; font-size: 42px; }
.market-message h3 { font-family: var(--heading); font-size: 24px; font-weight: 400; line-height: 1.3; }
.market-message p { max-width: 650px; margin-top: 10px; font-size: 14px; line-height: 1.8; }

.construction { margin-top: 16px; padding: 32px 40px; background: var(--surface); border-radius: 16px; }
.construction > .section-label { color: var(--accent); }
.construction-content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 14px; }
.construction h2 { font-family: var(--heading); font-size: 32px; font-weight: 400; line-height: 1.15; letter-spacing: -.5px; }
.construction-content p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; padding: 12px 8px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; padding-block: 10px; overflow-wrap: anywhere; text-decoration: none; }
.contact-link:hover { color: var(--accent); }

@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
}

@media (max-width: 700px) {
  body { padding: 16px 0 24px; }
  main { width: calc(100% - 32px); }
  .site-header { padding: 22px; }
  .header-top .section-label { font-size: 9px; letter-spacing: .5px; }
  .status { font-size: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
  .logo-panel { grid-row: 1; width: min(220px, 90%); justify-self: center; }
  h1 { font-size: clamp(30px, 7vw, 44px); letter-spacing: -1px; }
  .hero-copy p { margin-top: 16px; }
  .events { padding: 26px 20px; }
  .events-copy, .construction-content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .events-copy h2 { font-size: 28px; }
  .events-copy > p { max-width: none; }
  .market-list { grid-template-columns: minmax(0, 1fr); margin-top: 24px; gap: 14px; }
  .market { grid-template-columns: 54px minmax(0, 1fr); padding: 20px 16px; gap: 14px; }
  .market-title { font-size: 22px; }
  .construction { padding: 26px 24px; }
  .construction h2 { font-size: 28px; }
  .market-message { align-items: start; padding: 20px; gap: 14px; }
  .empty-flower { font-size: 28px; }
  .market-message h3 { font-size: 22px; }
}

@media (max-width: 380px) {
  main { width: calc(100% - 24px); }
  .events { padding-inline: 16px; }
  .market { padding: 16px 12px; gap: 12px; grid-template-columns: 44px minmax(0, 1fr); }
  .market-title { font-size: 21px; }
  .market-message { display: block; }
  .empty-flower { display: block; margin-bottom: 10px; }
}

@keyframes settle-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stamp-settle {
  from { opacity: 0; transform: translateY(8px) rotate(-1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .hero-copy, .events, .construction, .site-footer { animation: settle-in 650ms cubic-bezier(.22, 1, .36, 1) backwards; }
  .logo-panel { animation: stamp-settle 800ms cubic-bezier(.22, 1, .36, 1) 60ms backwards; }
  .events { animation-delay: 100ms; }
  .construction { animation-delay: 180ms; }
  .site-footer { animation-delay: 240ms; }
  .market { transition: transform 250ms ease, box-shadow 250ms ease; }
  .map-link, .save-link { transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
  .map-link > span, .save-link > span { transition: transform 220ms ease; }
  .contact-link { transition: color 180ms ease; }
  .map-link:focus-visible, .save-link:focus-visible { background: var(--page); border-color: var(--accent); }
}

@media screen and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .market:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #62332714; }
  .map-link:hover, .save-link:hover { transform: translateY(-1px); border-color: var(--accent); }
  .map-link:hover > span { transform: translate(1px, -1px); }
  .save-link:hover > span { transform: rotate(90deg); }
  .map-link:active, .save-link:active { transform: translateY(0); }
}

@media print {
  body { padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  main { width: 100%; }
  .market-actions { display: none; }
  .site-header, .market, .construction { break-inside: avoid; }
}
