:root {
  --paper: #fffaf5;
  --paper-deep: #f6eadc;
  --ink: #4b352f;
  --muted: #776a65;
  --green: #00a844;
  --green-dark: #007d35;
  --sand: #e4d3be;
  --blue: #3c70c8;
  --yellow: #f4c64e;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 20rem; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 211, 190, 0.75);
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(100% - 2rem, 76rem);
  min-height: 4.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.brand__stripes { position: relative; display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; gap: 0.15rem; border: 2px solid var(--ink); border-radius: 50%; transform: rotate(-8deg); }
.brand__stripes i { display: block; width: 0.18rem; height: 1.25rem; border-radius: 2rem; background: var(--ink); }
.brand__stripes i:nth-child(2) { height: 1.55rem; }
.brand__stripes::after { content: ""; position: absolute; right: -0.2rem; top: -0.2rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--green); }

.site-menu summary { cursor: pointer; font-weight: 700; }
.site-menu nav { display: none; }
.site-menu[open] nav { position: absolute; inset: 4.5rem 0 auto; display: grid; gap: 0.3rem; padding: 1rem; border-bottom: 1px solid var(--sand); background: var(--paper); box-shadow: 0 1rem 2rem rgba(75, 53, 47, 0.08); }
.site-menu nav a { padding: 0.75rem 1rem; border-radius: 99rem; font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.site-menu nav a:hover { color: var(--green-dark); background: #fff; }
.site-menu nav a:focus-visible, .brand:focus-visible, .button:focus-visible { outline: 3px solid rgba(60, 112, 200, 0.48); outline-offset: 4px; }
.site-menu .nav-cta { color: white; background: var(--green); }

.baseline-hero { overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0; background: radial-gradient(circle at 78% 20%, rgba(244, 198, 78, 0.18), transparent 23rem), linear-gradient(130deg, var(--paper) 45%, var(--paper-deep)); }
.baseline-hero__grid { display: grid; gap: 4rem; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--green-dark); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0.35rem rgba(0, 168, 68, 0.12); }
.baseline-hero h1 { max-width: 12ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 8vw, 6.4rem); font-weight: 700; letter-spacing: -0.065em; line-height: 0.94; }
.baseline-hero h1 em { color: var(--green); font-weight: inherit; }
.hero-copy { max-width: 36rem; margin: 1.75rem 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: 0.75rem 1.3rem; border: 1px solid var(--sand); border-radius: 99rem; font-weight: 750; text-decoration: none; }
.button--primary { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 0.7rem 1.6rem rgba(0, 168, 68, 0.16); }
.button--quiet { background: rgba(255, 255, 255, 0.65); }

.art-board { position: relative; aspect-ratio: 4 / 4.6; width: min(100%, 27rem); margin-inline: auto; overflow: hidden; display: grid; place-items: end center; padding: 2.5rem; border: 0.75rem solid #fff; background: #dcebf4; box-shadow: 0 2rem 5rem rgba(75, 53, 47, 0.16); transform: rotate(2deg); }
.art-board p { position: relative; z-index: 2; margin: 0; color: rgba(75, 53, 47, 0.7); font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; text-align: center; }
.art-board__sun { position: absolute; top: 3.5rem; right: 3.5rem; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.2rem rgba(244, 198, 78, 0.18); }
.art-board__line { position: absolute; left: -10%; width: 120%; height: 40%; border-radius: 50% 50% 0 0; }
.art-board__line--one { bottom: 19%; background: #6bc489; transform: rotate(-5deg); }
.art-board__line--two { bottom: -12%; background: #397bc4; transform: rotate(4deg); }
.art-board__tape { position: absolute; z-index: 3; top: -0.5rem; width: 4rem; height: 1.2rem; background: rgba(255, 239, 191, 0.82); }
.art-board__tape--left { left: 1rem; transform: rotate(-22deg); }
.art-board__tape--right { right: 1rem; transform: rotate(18deg); }

.baseline-status { padding: clamp(4rem, 8vw, 7rem) 0; background: #fff; }
.baseline-status h2 { max-width: 18ch; margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.045em; line-height: 1.05; }
.status-grid { display: grid; gap: 1px; margin-top: 3rem; border: 1px solid var(--sand); background: var(--sand); }
.status-grid article { padding: 2rem; background: #fff; }
.status-grid article > span { color: var(--green); font-family: Georgia, serif; font-size: 1.8rem; font-style: italic; }
.status-grid h3 { margin: 1.4rem 0 0.5rem; font-size: 1.1rem; }
.status-grid p, .status-note { color: var(--muted); line-height: 1.65; }
.status-note { margin: 2rem 0 0; padding-left: 1rem; border-left: 3px solid var(--green); }
.site-footer { padding: 1.5rem 0; border-top: 1px solid var(--sand); color: var(--muted); font-size: 0.85rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.error-panel { width: min(100% - 2rem, 42rem); margin: 6rem auto; }

.gallery-hero {
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 198, 78, 0.28) 0 0.55rem, transparent 0.6rem),
    radial-gradient(circle at 88% 18%, rgba(60, 112, 200, 0.18) 0 4.5rem, transparent 4.6rem),
    linear-gradient(135deg, #fff 0 58%, var(--paper-deep) 58% 100%);
}
.gallery-hero__inner { text-align: center; }
.gallery-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.065em; line-height: 0.92; }
.gallery-hero h1 em { color: var(--green); font-weight: inherit; }
.gallery-hero__inner > p:last-child { max-width: 42rem; margin: 1.5rem auto 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

.gallery-categories { position: sticky; top: 4.5rem; z-index: 8; border-block: 1px solid rgba(228, 211, 190, 0.75); background: rgba(255, 250, 245, 0.95); backdrop-filter: blur(14px); }
.gallery-categories__inner { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: thin; }
.gallery-categories a { position: relative; flex: none; padding: 1.15rem 0 1rem; color: var(--muted); font-size: 0.84rem; font-weight: 750; text-decoration: none; }
.gallery-categories a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; }
.gallery-categories a.is-active { color: var(--ink); }
.gallery-categories a.is-active::after { background: var(--green); }
.gallery-categories small { margin-left: 0.25rem; color: #9a8c86; font-size: 0.65rem; }
.gallery-categories a:focus-visible { outline: 3px solid rgba(60, 112, 200, 0.45); outline-offset: -3px; }

.gallery-collection { padding: clamp(3rem, 7vw, 6rem) 0; }
.gallery-tools { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.gallery-tools p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.gallery-tools form { display: flex; align-items: center; gap: 0.65rem; }
.gallery-tools label { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.gallery-tools select { min-height: 2.6rem; padding: 0.45rem 2.3rem 0.45rem 0.75rem; border: 1px solid var(--sand); border-radius: 0.7rem; background: #fff; color: var(--ink); font: inherit; font-size: 0.8rem; }

.gallery-grid { display: grid; gap: 1.4rem; }
.artwork-card { overflow: hidden; border: 1px solid rgba(228, 211, 190, 0.78); border-radius: 1.1rem; background: #fff; box-shadow: 0 0.8rem 2.5rem rgba(75, 53, 47, 0.055); transition: transform 180ms ease, box-shadow 180ms ease; }
.artwork-card:hover { transform: translateY(-0.25rem); box-shadow: 0 1.3rem 3rem rgba(75, 53, 47, 0.11); }
.artwork-card__image { position: relative; display: block; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--paper-deep); }
.artwork-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 350ms ease; }
.artwork-card:hover .artwork-card__image img { transform: scale(1.025); }
.artwork-card__image > span { position: absolute; right: 0.8rem; bottom: 0.8rem; padding: 0.35rem 0.5rem; border-radius: 0.35rem; background: rgba(255, 250, 245, 0.9); color: var(--ink); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.artwork-card__body { padding: 1.3rem; }
.artwork-card__body > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.artwork-card__body > div:first-child > p { margin: 0; color: var(--green-dark); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.artwork-card h2 { margin: 0.35rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.12; }
.artwork-card h2 a { text-decoration: none; }
.artwork-card__artist { display: block; margin-top: 0.7rem; color: #8b7c75; font-size: 0.76rem; }
.artwork-card__summary { display: -webkit-box; margin: 0.8rem 0 0; overflow: hidden; color: var(--muted); font-size: 0.85rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.artwork-card__link { display: inline-flex; gap: 0.4rem; margin-top: 1rem; color: var(--green-dark); font-size: 0.79rem; font-weight: 800; text-decoration: none; }
.artwork-card a:focus-visible { outline: 3px solid rgba(60, 112, 200, 0.48); outline-offset: 3px; }

.gallery-empty { padding: 5rem 1rem; border: 1px dashed var(--sand); border-radius: 1rem; background: rgba(255,255,255,0.55); text-align: center; }
.gallery-empty > span { color: var(--yellow); font-family: Georgia, serif; font-size: 4rem; }
.gallery-empty h2 { margin: 0.5rem 0; font-family: Georgia, serif; font-size: 1.8rem; }
.gallery-empty p { margin: 0 0 1.5rem; color: var(--muted); }
.gallery-pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; color: var(--muted); font-size: 0.8rem; }
.gallery-pagination a { color: var(--green-dark); font-weight: 800; }

.gallery-support { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--ink); color: #fff; text-align: center; }
.gallery-support .eyebrow { color: #79d79c; }
.gallery-support h2 { max-width: 20ch; margin: 0 auto; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.045em; line-height: 1.06; }
.gallery-support p:last-child { margin: 1rem 0 0; color: rgba(255,255,255,0.66); }

.artwork-breadcrumb { display: flex; gap: 0.6rem; padding-top: 2rem; color: var(--muted); font-size: 0.78rem; }
.artwork-breadcrumb a { color: var(--green-dark); font-weight: 750; text-decoration: none; }
.artwork-detail { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: 2.2rem clamp(5rem, 10vw, 9rem); }
.artwork-detail__visual { min-width: 0; }
.artwork-frame { position: relative; margin: 0; padding: clamp(0.7rem, 2vw, 1.2rem); background: #fff; box-shadow: 0 2rem 5rem rgba(75, 53, 47, 0.14); transform: rotate(-0.35deg); }
.artwork-frame::before, .artwork-frame::after { content: ""; position: absolute; top: -0.5rem; width: 3.6rem; height: 1.1rem; background: rgba(255, 231, 171, 0.72); }
.artwork-frame::before { left: 1.2rem; transform: rotate(-13deg); }
.artwork-frame::after { right: 1.2rem; transform: rotate(11deg); }
.artwork-frame img { width: 100%; max-height: 75vh; display: block; object-fit: contain; background: var(--paper-deep); }
.artwork-label { padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--sand); border-radius: 1rem; background: #fff; box-shadow: 0 1rem 3rem rgba(75, 53, 47, 0.06); }
.artwork-label__number { display: inline-block; margin-bottom: 2rem; padding: 0.35rem 0.5rem; border: 1px solid var(--sand); color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.artwork-label__state { float: right; padding: 0.35rem 0.5rem; border-radius: 99rem; background: rgba(0, 168, 68, 0.09); color: var(--green-dark); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.artwork-label h1 { margin: 0.4rem 0 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.055em; line-height: 0.98; }
.artwork-label__summary { margin: 1.2rem 0 0; color: var(--muted); line-height: 1.7; }
.artwork-label dl { margin: 2rem 0 0; border-top: 1px solid var(--sand); }
.artwork-label dl div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--sand); }
.artwork-label dt { color: var(--muted); font-size: 0.75rem; }
.artwork-label dd { margin: 0; font-size: 0.84rem; font-weight: 750; text-align: right; }
.artwork-story { margin-top: 2rem; }
.artwork-story h2 { margin: 0 0 0.7rem; font-family: Georgia, serif; font-size: 1.4rem; }
.artwork-story p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.8; white-space: pre-line; }
.artwork-awards { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--sand); }
.artwork-awards h2 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; }
.artwork-awards ul { display: grid; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.artwork-awards a { color: var(--blue); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.artwork-contact { display: inline-block; margin-top: 2rem; color: var(--green-dark); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.artwork-back { display: inline-block; margin-top: 2rem; color: var(--green-dark); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.artwork-contact + .artwork-back { margin-left: 1.2rem; }
.artwork-sequence { margin-top: clamp(3rem, 7vw, 6rem); }
.artwork-sequence__heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); }
.artwork-sequence__grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.artwork-sequence figure { margin: 0; padding: 0.6rem; background: #fff; box-shadow: 0 0.8rem 2rem rgba(75, 53, 47, 0.08); }
.artwork-sequence img { width: 100%; display: block; }
.artwork-sequence figcaption { padding: 0.75rem 0.25rem 0.2rem; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.related-artworks { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--sand); background: rgba(255, 255, 255, 0.58); }
.related-artworks__heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.related-artworks__heading h2 { margin: 0.25rem 0 0; font-family: Georgia, serif; font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -0.045em; line-height: 1.05; }
.related-artworks__heading > a { flex: none; color: var(--green-dark); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.related-artworks__grid { display: grid; gap: 1.4rem; }
.artwork-card--related .artwork-card__image { aspect-ratio: 4 / 3; }

.contact-hero { overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.2rem, 7vw, 5rem); background: radial-gradient(circle at 75% 19%, rgba(0, 168, 68, 0.16) 0 4rem, transparent 4.1rem), radial-gradient(circle at 82% 11%, rgba(244, 198, 78, 0.38) 0 0.65rem, transparent 0.7rem), linear-gradient(135deg, #fff 0 59%, var(--paper-deep) 59% 100%); }
.contact-hero h1 { max-width: 15ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.065em; line-height: 0.93; }
.contact-hero h1 em { color: var(--green); font-weight: inherit; }
.contact-hero p:last-child { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.contact-context { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(4rem, 9vw, 7rem); }
.contact-context__copy h2 { max-width: 17ch; margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.05; }
.contact-context__copy > p:not(.eyebrow) { max-width: 40rem; margin: 1.4rem 0 0; color: var(--muted); line-height: 1.75; }
.contact-context__copy .button { margin-top: 1.8rem; }
.contact-artwork-context { display: grid; overflow: hidden; border: 1px solid var(--sand); background: #fff; box-shadow: 0 1.4rem 3.8rem rgba(75, 53, 47, 0.09); }
.contact-artwork-context__image { display: block; min-height: 16rem; background: var(--paper-deep); }
.contact-artwork-context__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.contact-artwork-context > div { padding: 1.5rem; }
.contact-artwork-context span { color: var(--green-dark); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-artwork-context h3 { margin: 0.6rem 0 0; font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.contact-artwork-context p { margin: 0.7rem 0 1.5rem; color: var(--muted); font-size: 0.82rem; }
.contact-artwork-context a:not(.contact-artwork-context__image) { color: var(--green-dark); font-size: 0.8rem; font-weight: 800; text-decoration: none; }

.contest-hero { overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.2rem, 7vw, 5rem); background: radial-gradient(circle at 79% 16%, rgba(60, 112, 200, 0.22) 0 5.5rem, transparent 5.6rem), radial-gradient(circle at 88% 11%, rgba(244, 198, 78, 0.42) 0 0.7rem, transparent 0.75rem), linear-gradient(135deg, #fff 0 59%, #e6eff8 59% 100%); }
.contest-hero h1 { max-width: 16ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.065em; line-height: 0.93; }
.contest-hero h1 em { color: var(--blue); font-weight: inherit; }
.contest-hero p:last-child { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.contest-collection { padding-block: clamp(4rem, 9vw, 7rem); }
.contest-collection__heading h2 { max-width: 18ch; margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.05; }
.contest-grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
.contest-card { overflow: hidden; border: 1px solid var(--sand); background: #fff; box-shadow: 0 1rem 2.8rem rgba(75, 53, 47, 0.07); transition: transform 180ms ease, box-shadow 180ms ease; }
.contest-card:hover { transform: translateY(-0.25rem); box-shadow: 0 1.5rem 3.2rem rgba(75, 53, 47, 0.12); }
.contest-card__poster { position: relative; display: grid; min-height: 15rem; place-items: center; overflow: hidden; background: linear-gradient(145deg, #dbe8f7, #f6eadc); color: var(--blue); text-decoration: none; }
.contest-card__poster > span { font-family: Georgia, serif; font-size: 5rem; transform: rotate(-8deg); }
.contest-card__poster img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.contest-card__poster b, .contest-detail__status { position: absolute; right: 1rem; bottom: 1rem; padding: 0.4rem 0.6rem; background: rgba(255, 250, 245, 0.94); color: var(--ink); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contest-card__body { padding: 1.4rem; }
.contest-card__body > p:first-child { margin: 0; color: var(--blue); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.contest-card h2 { margin: 0.5rem 0 0; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.04; }
.contest-card h2 a { text-decoration: none; }
.contest-card__summary { margin: 0.9rem 0 0; color: var(--muted); line-height: 1.65; }
.contest-card__link { display: inline-block; margin-top: 1.2rem; color: var(--blue); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.contest-empty { margin-top: 2.4rem; padding: 5rem 1rem; border: 1px dashed var(--sand); background: rgba(255, 255, 255, 0.55); text-align: center; }
.contest-empty > span { color: var(--blue); font-family: Georgia, serif; font-size: 3.5rem; }
.contest-empty h2 { margin: 0.5rem 0; font-family: Georgia, serif; font-size: 1.8rem; }
.contest-empty p { margin: 0 0 1.5rem; color: var(--muted); }
.contest-detail { padding-block: 2.2rem clamp(5rem, 10vw, 8rem); }
.contest-detail > header { position: relative; max-width: 48rem; }
.contest-detail__status { position: static; display: inline-block; margin-bottom: 2rem; background: var(--blue); color: #fff; }
.contest-detail h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.065em; line-height: 0.93; }
.contest-detail__summary { max-width: 42rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.contest-detail__body { max-width: 48rem; margin-top: clamp(3rem, 7vw, 6rem); }
.contest-detail__poster { margin: 0 0 3rem; padding: 0.7rem; background: #fff; box-shadow: 0 1.5rem 3.5rem rgba(75, 53, 47, 0.12); }
.contest-detail__poster img { width: 100%; display: block; }
.contest-detail__body section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--sand); }
.contest-detail__body h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; }
.contest-detail__body section p { margin: 1rem 0 0; color: var(--muted); line-height: 1.8; white-space: pre-line; }

@media (min-width: 48rem) {
  .site-menu summary { display: none; }
  .site-menu nav, .site-menu[open] nav { position: static; display: flex; align-items: center; gap: 0.35rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .baseline-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.72fr); }
  .status-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artwork-detail { grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr); }
  .artwork-label { position: sticky; top: 6.5rem; }
  .artwork-sequence__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-artworks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-context { grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.7fr); }
  .contest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68rem) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 40rem) {
  .gallery-tools { align-items: flex-start; flex-direction: column; }
  .gallery-tools form { width: 100%; justify-content: space-between; }
  .gallery-tools select { flex: 1; }
  .gallery-pagination { align-items: stretch; flex-direction: column; text-align: center; }
  .artwork-label dl div { grid-template-columns: 1fr; gap: 0.2rem; }
  .artwork-label dd { text-align: left; }
  .related-artworks__heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .artwork-card, .artwork-card__image img { transition: none; }
}
.public-footer-description {
  white-space: pre-line;
}

/* Keep the primary home card inside the first viewport on desktop screens. */
@media (min-width: 48rem) {
  .home-hero {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
  }

  .home-hero__inner {
    width: 100%;
  }
}


/* Keep the public desktop composition proportional to a 1440px design width.
   Respect short viewports and cap large displays at 2x; smaller screens stay unchanged. */
@media (min-width: 90rem) {
  html { font-size: clamp(100%, min(1.111111vw, 2.222222vh), 200%); }

  /* Authored font sizes follow the same scale on public pages only. */
  body .rt-size-12 { font-size: 0.75rem !important; }
  body .rt-size-14 { font-size: 0.875rem !important; }
  body .rt-size-16 { font-size: 1rem !important; }
  body .rt-size-18 { font-size: 1.125rem !important; }
  body .rt-size-20 { font-size: 1.25rem !important; }
  body .rt-size-24 { font-size: 1.5rem !important; }
  body .rt-size-28 { font-size: 1.75rem !important; }
  body .rt-size-32 { font-size: 2rem !important; }
  body .rt-size-40 { font-size: 2.5rem !important; }
  body .rt-size-48 { font-size: 3rem !important; }
}

/* Enlarge the public header controls by 20% within the desktop layout scale. */
[data-site-header] > div { height: 4.8rem; }
[data-site-header] > div > a { font-size: 1.35rem; }
[data-site-header] .site-logo-dark { height: 2.7rem; }
[data-site-header] nav[aria-label="Primary navigation"] { font-size: 1.05rem; gap: clamp(0.5rem, 2vw, 2rem); }
[data-site-header] .public-nav-cta { padding: 0.6rem 1.5rem; }
[data-site-header] .mobile-menu-toggle { transform: scale(1.2); }
[data-site-header] .mobile-nav-panel { top: 4.8rem; }
[data-site-header] .mobile-nav-link,
[data-site-header] .mobile-nav-cta { font-size: 1.2rem; padding: 0.96rem 1.2rem; }

/* Halve the shared brown call-to-action / footer spacing. */
#main-content > section.bg-earth:last-child { padding-bottom: 2rem; }
#main-content:has(> section.bg-earth:last-child) + .public-footer { padding-top: 2rem; }

/* About and contest section spacing: retain 65% of the previous vertical padding. */
.page-section-compact.py-16 { padding-block: 2.6rem; }
.page-section-compact.py-20 { padding-block: 3.25rem; }
.page-section-compact.pb-16 { padding-bottom: 2.6rem; }

/* Keep only a small breathing space below the photo galleries. */
.page-section-compact[data-contest-images],
.page-section-compact:has(> [data-about-impact-images]) { padding-bottom: 1rem; }


/* News detail uses one reading width for text and images. */
.news-detail h1,
.news-detail .news-article-body { overflow-wrap: anywhere; }
.news-detail .news-article-body p { font-size: 1.125rem; line-height: 1.85; }
.news-detail__cover { height: auto; object-fit: contain; }
