:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --card: #fbf8f3;
  --ink: #1f1a17;
  --ink-2: #4a413b;
  --muted: #7a6f66;
  --line: #ddd2c4;
  --rose: #8a3445;
  --rose-2: #a8495b;
  --moss: #4f5b3f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 640px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 23px/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand svg { color: var(--rose); flex: none; }
.brand em { font-style: italic; color: var(--rose); }
.top nav { display: flex; gap: 28px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); border-bottom-color: var(--rose); }
.menu { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 500 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 720px) {
  .menu { display: block; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 20px; }
}

/* Home hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 84px); padding-bottom: clamp(32px, 6vw, 84px); }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero figure { margin: 0; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 24px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero img { aspect-ratio: 4 / 3; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 560px; }
.more { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

/* Collection cards */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.collection { color: var(--ink); text-decoration: none; display: block; }
.collection img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .6s ease; }
.collection .ph { overflow: hidden; margin-bottom: 14px; }
.collection:hover img { transform: scale(1.03); }
.collection h3 { margin-bottom: 4px; }
.collection p { color: var(--ink-2); font-size: 15px; margin: 0; }
.count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .collections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .collections { grid-template-columns: 1fr; } }

/* Page head */
.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 70px); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Masonry gallery */
.masonry { columns: 3 300px; column-gap: clamp(16px, 2.4vw, 28px); }
.piece { break-inside: avoid; margin: 0 0 clamp(22px, 3vw, 36px); }
.piece button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.piece button:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.piece img { width: 100%; }
.piece figcaption { padding-top: 12px; }
.piece h3 { font-size: 24px; margin: 0 0 4px; }
.piece .flowers { font-size: 13px; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.piece .note { font-size: 15px; color: var(--ink-2); margin: 0; }
.studies { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }
.other-cols { display: flex; flex-wrap: wrap; gap: 10px; }
.other-cols a { border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.other-cols a:hover { border-color: var(--rose); color: var(--rose); }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(20, 16, 14, .94); display: none; align-items: center; justify-content: center; z-index: 60; padding: 24px; }
.lb.open { display: flex; }
.lb img { max-height: 84vh; max-width: min(92vw, 1400px); width: auto; object-fit: contain; }
.lb p { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #e9e1d6; font: 400 22px var(--serif); margin: 0; padding: 0 60px; }
.lb button { position: absolute; background: none; border: 0; color: #e9e1d6; font: 300 34px/1 var(--sans); cursor: pointer; padding: 12px; }
.lb .x { top: 10px; right: 14px; }
.lb .prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Competitions index */
.groups { display: grid; gap: clamp(48px, 6vw, 80px); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.event-card { background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.event-card:hover { border-color: var(--rose); }
.event-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.event-card .noimg { aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--paper-2), #e6dacb); display: flex; align-items: center; justify-content: center; color: var(--rose); }
.event-card .body { padding: 18px 20px 20px; }
.event-card h3 { font-size: 24px; margin-bottom: 6px; }
.event-card .where { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.event-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 920px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .event-grid { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }

/* Event page */
.event-hero { margin: 0 0 8px; }
.event-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.credit { font-size: 12px; color: var(--muted); margin-top: 8px; }
.credit a { color: var(--muted); }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.event-layout h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.2em; }
.event-layout h2:first-child { margin-top: 0; }
.event-layout ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.event-layout li { margin-bottom: .45em; }
.facts { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line); padding: 22px 24px; }
.facts dl { margin: 0; }
.facts dt { font: 500 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 3px 0 0; font-size: 15px; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 1.2em; }
.photos figure { margin: 0; }
.photos img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.sources { font-size: 14px; color: var(--ink-2); }
.sources li { word-break: break-word; }
@media (max-width: 900px) { .event-layout { grid-template-columns: 1fr; } .facts { position: static; order: -1; } }
@media (max-width: 520px) { .photos { grid-template-columns: 1fr; } }

/* Prose pages */
.prose { padding-bottom: clamp(56px, 7vw, 96px); }
.prose h2 { margin-top: 1.4em; font-size: clamp(28px, 3vw, 38px); }
.credits td { font-size: 14px; }

/* Calendar strip */
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.month { background: var(--paper); padding: 18px 20px; min-height: 120px; }
.month h3 { font-size: 22px; margin-bottom: 8px; }
.month a { display: block; font-size: 14px; text-decoration: none; margin-bottom: 4px; }
.month .none { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .months { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .months { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer p { margin: 0; max-width: 520px; }
@media (max-width: 360px) { .brand svg { display: none; } .brand { font-size: 18px; } }

/* Credited event photos on the home page */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.shots figure { margin: 0; }
.shots img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.shot-cap { font-size: 15px; color: var(--ink-2); margin: 10px 0 2px; }
.shots .credit { margin-top: 2px; }
@media (max-width: 920px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }
.event-card .art { position: relative; }
.study-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(31, 26, 23, .72); color: #f6f1ea; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; }
