/* Cria Collective editorial theme. Existing components keep their layout contracts. */
:root {
  --cream: #f7f4eb;
  --paper: #fffdf8;
  --ink: #192921;
  --green: #17372b;
  --clay: #a9432b;
  --yellow: #dfeb9e;
  --muted: #4d5b51;
  --line: #d9ddcf;
  --width: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body { line-height: 1.65; }
h1, h2 { letter-spacing: -.065em; }
html { scroll-padding-top: 94px; }
.site-header {
  position: sticky;
  top: 0;
  background: rgb(247 244 235 / 94%);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.nav-shell { min-height: 80px; }
.wordmark .logo-viewport { width: 132px; height: 75px; }
.wordmark .logo-viewport img { width: 259px; height: 259px; left: -64px; top: -83px; }
.nav-links > a { font-size: .88rem; }
.menu-toggle { border-radius: 100px; min-height: 44px; }
.button { box-shadow: none; gap: 16px; }
.button:hover { background: #244d3d; }
.button.light { background: var(--yellow); color: var(--green); border-color: var(--yellow); }
.button.light:hover { background: #edf4c5; border-color: #edf4c5; }
.button.secondary:hover { background: #e8edde; }
.button:disabled:hover { transform: none; box-shadow: none; }
.text-link { white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
.text-link::after { display: inline-block; transition: transform .35s var(--ease); }
.text-link:hover::after { transform: translate(2px, -2px); }

.cria-hero { padding: 24px 0 0; }
.cria-hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  min-height: clamp(520px, 47vw, 650px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--green);
  color: var(--paper);
}
.cria-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 78px);
  min-width: 0;
  background:
    radial-gradient(ellipse at 100% 100%, #244a37 0, transparent 65%),
    var(--green);
}
.cria-kicker {
  color: var(--clay);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  margin: 0 0 20px;
}
.cria-hero-copy .cria-kicker { color: #dce8a5; }
.cria-hero h1 {
  font-size: clamp(4rem, 7.1vw, 7.55rem);
  line-height: .95;
  font-weight: 400;
  text-wrap: initial;
  letter-spacing: -.075em;
}
.cria-hero h1 em { color: var(--yellow); font-weight: inherit; }
.cria-hero h1 + p {
  max-width: 33ch;
  margin-top: 27px;
  color: #edf0e5;
  line-height: 1.65;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}
.cria-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cria-hero .button.secondary { color: var(--paper); border-color: #a3b7a4; }
.cria-hero .button.secondary:hover { background: #315644; }
.cria-hero-photo { position: relative; min-width: 0; margin: 0; background: #dce0c6; overflow: hidden; }
.cria-hero-photo picture, .cria-hero-photo picture img { display: block; width: 100%; height: 100%; }
.cria-hero-photo picture { position: absolute; inset: 0; }
.cria-hero-photo picture img { object-fit: cover; object-position: 50% 46%; }
.cria-photo-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--yellow);
}
.cria-hero-photo figcaption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  border-radius: 6px;
  background: #17291edc;
  color: #fffdf8;
  padding: 3px 8px;
  font-size: .65rem;
}

.cria-market-section .section-head { align-items: flex-end; }
[data-markets="all"] .cards, [data-markets="featured"] .cards, #reservation-empty .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.market-card .market-card-art, [data-markets="featured"] .market-card .market-card-art {
  background: #eeeee4;
  border-bottom: 1px solid var(--line);
}
.market-card .market-card-art img { transition: transform .65s var(--ease); }
.market-card:hover .market-card-art img { transform: scale(1.035); }
.market-card h3 { font-family: var(--serif); font-size: clamp(1.95rem, 3.25vw, 3.2rem); letter-spacing: -.055em; }
.market-card .card-body { min-width: 0; }
.market-card .meta { color: var(--clay); font-weight: 700; }
.market-status { border-radius: 8px; padding: 9px 12px; background: #eaf0df; width: fit-content; }
.market-card .market-status { margin-bottom: 8px; }
.market-card .text-link { align-self: flex-start; }

.cria-community { background: #e9eddf; }
.cria-community-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.cria-community-photo { position: relative; margin: 0; }
.cria-community-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; background: #d7decc; }
.cria-community-photo figcaption { text-align: right; font-size: .66rem; color: var(--muted); margin-top: 7px; }
.cria-community-copy h2 { font-size: clamp(2.45rem, 4.2vw, 4.6rem); }
.cria-community-copy h2 + p { margin-top: 23px; }
.cria-community-copy h2 ~ p { max-width: 47ch; color: var(--muted); }
.cria-community-copy .text-link { display: inline-block; margin-top: 18px; }
.cria-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 29px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}
.cria-path li { padding: clamp(22px, 3.4vw, 43px); }
.cria-path li + li { border-left: 1px solid var(--line); }
.cria-path span { display: block; margin-bottom: 27px; font-size: .8rem; color: var(--clay); letter-spacing: .1em; font-weight: 700; }
.cria-path h3 { font-size: 1.25rem; font-weight: 650; }
.cria-path p { margin-top: 10px; color: var(--muted); font-size: .94rem; }
.cria-vendor-path { background: #f2eee0; }
.cria-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.cria-contact-grid .panel { padding: clamp(20px, 3vw, 35px); }

.page-intro h1 { font-weight: 400; line-height: 1; }
.cria-grow-title-end { white-space: nowrap; }
.cria-grow-title-end img { display: inline-block; width: .62em; vertical-align: -.05em; }
.panel, .application-step, .empty-state { border-color: var(--line); box-shadow: 0 5px 24px #17291e06; }
.application-progress { top: 92px; }
#booking-summary { top: 92px; }
.application-step { scroll-margin-top: 150px; }
.site-footer {
  background: #e8ecdf;
  border-top: 1px solid var(--line);
  padding-top: 52px;
}
.site-footer .wordmark .logo-viewport { width: 145px; height: 84px; }
.site-footer .wordmark .logo-viewport img { width: 283px; height: 283px; left: -70px; top: -91px; }
.footer-links a { width: fit-content; }
.promotion-banner { padding: 10px 0; background: #e5edaf; }
.promotion-banner p { max-width: 80ch; }
.promotion-banner strong { font-size: .92rem; }
.promotion-banner > .wrap { gap: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .cria-hero-copy > * { animation: cria-enter .65s var(--ease) both; }
  .cria-hero-copy h1 { animation-delay: 40ms; }
  .cria-hero-copy h1 + p { animation-delay: 90ms; }
  .cria-hero-copy .cria-actions { animation-delay: 140ms; }
  .cria-hero-photo picture img { animation: cria-photo-in .85s var(--ease) both; }
  .application-dialog[open] { animation: cria-dialog-in .25s var(--ease) both; }
  @keyframes cria-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes cria-photo-in {
    from { opacity: .65; transform: scale(1.045); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes cria-dialog-in {
    from { opacity: .6; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: none; }
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .cria-hero h1 { font-size: clamp(3.3rem, 7.6vw, 5rem); }
  .cria-hero-copy { padding: 34px; }
  .cria-hero .button { padding-inline: 18px; }
  .cria-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .site-header { position: relative; }
  .nav-shell { min-height: 67px; padding-block: 4px; }
  .wordmark .logo-viewport { width: 108px; height: 62px; }
  .wordmark .logo-viewport img { width: 213px; height: 213px; left: -53px; top: -68px; }
  .js .site-header .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 20px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 18px #17372b14;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .2s ease, transform .25s var(--ease), visibility .2s;
  }
  .js .site-header .nav-links.is-open { visibility: visible; opacity: 1; transform: none; }
  .promotion-banner { padding: 10px 0; }
  .promotion-banner > .wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
  .promotion-banner .button { min-height: 42px; padding-inline: 10px; gap: 6px; font-size: .74rem; white-space: nowrap; }
  .promotion-banner .button::after { display: none; }
  .promotion-banner p { font-size: .76rem; line-height: 1.45; }
  .cria-hero { padding-top: 15px; }
  .cria-hero-grid { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  .cria-hero-copy { padding: 32px 24px; }
  .cria-hero h1 { font-size: clamp(3.25rem, 12.4vw, 5.65rem); }
  .cria-hero h1 + p { margin-top: 19px; }
  .cria-kicker { margin-bottom: 15px; }
  .cria-actions { gap: 10px; margin-top: 22px; }
  .cria-actions .button { padding-inline: 17px; min-height: 46px; font-size: .81rem; gap: 10px; }
  .cria-hero-photo { aspect-ratio: 1.38; }
  .cria-hero-photo picture img { object-position: 50% 42%; }
  .cria-photo-mark { width: 43px; height: 43px; top: 12px; right: 12px; }
  .cria-photo-mark img { width: 24px; height: 24px; }
  .cria-market-section .section-head { align-items: flex-start; }
  [data-markets="all"] .cards, [data-markets="featured"] .cards, #reservation-empty .cards,
  .cria-community-grid, .cria-contact-grid, .cria-path { grid-template-columns: minmax(0,1fr); }
  .cria-path li + li { border-left: 0; border-top: 1px solid var(--line); }
  .cria-path span { margin-bottom: 14px; }
  .application-progress { top: 8px; }
  .application-step { scroll-margin-top: 112px; }
  #booking-summary { top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .text-link:hover::after, .market-card:hover .market-card-art img { transform: none; }
}

.article-cover.january-market-banner { aspect-ratio: 16 / 9; object-fit: contain; }

.detail-list dt.market-cost-label { color: #397449; }

.notice[data-market-availability="january-market-2027"] {
  border-left: 0;
  padding-inline-start: 0;
}

.article-cover.christmas-market-flyer { aspect-ratio: 1545 / 2000; height: auto; object-fit: contain; }

.service-display-tile { margin-block-start: 1rem; }
#display-form input:not([type="checkbox"]) { display: block; width: 100%; }


.cria-instagram-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(18px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cria-instagram-posts .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.cria-instagram-posts img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.cria-instagram-posts span {
  padding: .9rem 1.1rem;
  font-weight: 700;
}
.cria-instagram-posts a:hover span,
.cria-instagram-posts a:focus-visible span { text-decoration: underline; }
