:root {
  color-scheme: light;
  --paper: #f4ede0;
  --paper-deep: #e9dfcb;
  --ink: #2b2a26;
  --forest: #2f4a3a;
  --moss: #5c7a5a;
  --ochre: #b8862f;
  --clay: #8c4a2f;
  --stone: #d8cfbe;
  --card: #fbf7ee;
  --muted: #5a574f;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--read);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--forest); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: 1.9rem; }
p { margin: 0 0 1em; }
a { color: var(--forest); text-underline-offset: .15em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }

.stamp {
  font: 400 .72rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--forest);
  margin: 0 0 .75em;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.wrap { max-width: 72.5rem; margin: 0 auto; padding: 0 2rem; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--stone); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding-top: .875rem; padding-bottom: .875rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--forest); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 1.7rem/1 var(--display); }
.brand .stamp { margin: .35em 0 0; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { border-bottom-color: var(--ochre); }

/* Home */
.hero {
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--stone) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero > * { max-width: 46rem; }
.lede { font: 1.3rem/1.5 var(--read); }

.button {
  display: inline-block;
  background: var(--forest);
  color: var(--paper);
  padding: .7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
}
.button:hover { background: var(--clay); color: var(--paper); }

.strata { height: 14px; background: linear-gradient(to bottom, var(--stone) 0 4px, transparent 4px 6px, var(--paper-deep) 6px 10px, transparent 10px 12px, var(--ochre) 12px 13px, transparent 13px); }


/* Plain text pages */
.narrow { max-width: 42rem; margin: 0 auto; padding: 3rem 1rem 4rem; }
.narrow p:not(.stamp) { font: 1.15rem/1.65 var(--read); }

/* Footer, from the Events design */
.foot { background: var(--forest); color: var(--paper); font: .95rem/1.6 var(--ui); }
.foot a { color: var(--paper); }
.foot a:hover { color: #f0deb0; }
.foot .strata { height: 14px; background: linear-gradient(to bottom, var(--stone) 0 4px, transparent 4px 6px, var(--paper-deep) 6px 10px, transparent 10px 12px, var(--ochre) 12px 13px, transparent 13px); }
.foot .cols { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; padding: 2.75rem 0 1.75rem; }
.foot .col-brand { flex: 2 1 17.5rem; }
.foot .col-brand img { display: block; }
.foot .col-brand p { margin: .75rem 0 0; max-width: 38ch; }
.foot .col { flex: 1 1 9rem; }
.foot .stamp { color: #e5dcc8; margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 2rem; }
.foot .col-n { flex: 0 0 auto; color: var(--paper); }
.foot .legal { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; border-top: 1px solid rgba(244, 237, 224, .25); padding: 1rem 0 1.75rem; font-size: .8rem; color: #e5dcc8; }
.scale { display: inline-block; width: 6rem; height: 6px; border: 1px solid var(--paper); background: linear-gradient(90deg, var(--paper) 0 50%, transparent 50%); vertical-align: middle; margin-right: .4rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* News lists and cards */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news, .latest { max-width: 72rem; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem); }
.post-list { display: grid; gap: 1.5rem; }
.post-list.three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.post-card { display: grid; align-content: start; background: var(--paper-deep); border: 1px solid var(--stone); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgb(43 42 38 / .12); }
.post-list:not(.three) .post-card { grid-template-columns: minmax(0, 22rem) 1fr; }
.card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.5rem; }
.card-body h2 { font-size: 1.7rem; margin-bottom: .3em; }
.card-body h2 a { text-decoration: none; }
.card-body .more { font-weight: 600; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 0 0 .6rem; padding: 0; font: .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.tag-list a { text-decoration: none; border-bottom: 1px solid var(--ochre); }
.search { display: flex; gap: .5rem; margin: 0 0 2rem; max-width: 28rem; }
.search input { flex: 1; font: inherit; padding: .5rem .7rem; border: 1px solid var(--forest); border-radius: 4px; background: #fff; }
.search .button { border: 0; font: inherit; cursor: pointer; }
.pager { display: flex; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 47.99rem) { .post-list:not(.three) .post-card { grid-template-columns: 1fr; } }

/* Events */
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0 0 1.5rem; }
.filters a { text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.filters a[aria-current] { border-bottom-color: var(--ochre); }
.event-list { display: grid; gap: 1rem; }
.event-card { display: flex; gap: 1.25rem; background: var(--paper-deep); border: 1px solid var(--stone); border-radius: 6px; padding: 1rem 1.25rem; box-shadow: 0 1px 2px rgb(43 42 38 / .12); }
.event-card.cancelled { opacity: .8; }
.event-date { flex: none; width: 4rem; text-align: center; border: 1px solid var(--forest); border-radius: 4px; background: var(--paper); color: var(--forest); font-family: var(--mono); text-transform: uppercase; display: flex; flex-direction: column; justify-content: center; padding: .4rem 0; }
.event-date span { font-size: .72rem; letter-spacing: .14em; }
.event-date strong { font: 400 1.9rem/1 var(--display); }
.event-body h2 { font-size: 1.6rem; margin-bottom: .2em; }
.event-body h2 a { text-decoration: none; }
.event-body p { margin: 0 0 .3em; }
.badge-inline { display: inline-block; vertical-align: middle; background: var(--clay); color: var(--paper); font: .65rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .3rem .45rem; border-radius: 3px; }
.event-detail .when { font: 1.3rem/1.4 var(--display); color: var(--forest); }
.event-detail .where { font: 1.05rem var(--read); }
.event-photo img { width: 100%; height: auto; border: 1px solid var(--stone); }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.month-nav h2 { margin: 0; }
.cal-wrap { overflow-x: auto; }
.cal { width: 100%; min-width: 40rem; border-collapse: collapse; table-layout: fixed; }
.cal th { font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; text-align: left; padding: .4rem; border-bottom: 2px solid var(--forest); }
.cal td { vertical-align: top; height: 6rem; padding: .3rem .4rem; border: 1px solid var(--stone); background: var(--paper); }
.cal td.out { background: var(--paper-deep); }
.cal .day { font: .85rem var(--mono); color: var(--ink); }
.cal ul { list-style: none; margin: .2rem 0 0; padding: 0; font-size: .8rem; line-height: 1.3; }
.cal li { margin-bottom: .2rem; }

/* Photos */
.year { font-size: 2rem; margin: 2rem 0 1rem; border-bottom: 1px solid var(--stone); }
.gallery-card h3 { font-size: 1.5rem; margin-bottom: .2em; }
.gallery-card h3 a { text-decoration: none; }
.photo-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.photo-grid figure { margin: 0; background: var(--paper-deep); border: 1px solid var(--stone); border-radius: 4px; overflow: hidden; }
.photo-grid a { display: block; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { font-size: .85rem; line-height: 1.4; padding: .5rem .7rem; }
.credit { opacity: .8; }
.lightbox { border: 0; padding: 0; background: #1F1E1A; color: #F4EDE0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; font-family: var(--ui); overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: #1F1E1A; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; }
.lb-count { font-size: .875rem; color: #E5DCC8; }
.lb-tools { display: flex; gap: .625rem; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; background: transparent; color: #F4EDE0; border: 1px solid rgb(244 237 224 / .45); border-radius: 4px; font-size: 1.125rem; line-height: 1; text-decoration: none; cursor: pointer; }
.lb-btn:hover { background: rgb(244 237 224 / .12); }
.lightbox :is(.lb-btn, .lb-thumb):focus-visible { outline: 3px solid #F4EDE0; outline-offset: 2px; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 1.25rem; padding: 0 1.5rem; }
.lb-stage figure { flex: 1; min-width: 0; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
.lb-foot { width: 100%; max-width: 56.25rem; margin: 0 auto; padding: 1.25rem 1.5rem 1.75rem; }
.lb-cap { font-size: 1rem; line-height: 1.5; }
.lb-credit { font-size: .8125rem; color: #E5DCC8; margin-top: .25rem; }
.lb-strip { display: flex; gap: .5rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
html:has(.lightbox[open]) { overflow: hidden; }
.lb-thumb { flex: 0 0 auto; width: 4.5rem; height: 3.375rem; padding: 0; border: 0; background: none; opacity: .55; cursor: pointer; }
.lb-thumb.on { opacity: 1; outline: 2px solid #F4EDE0; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 47.99rem) { .event-card { flex-direction: column; } .lb-stage { padding: 0 .5rem; gap: .5rem; } .lb-btn { width: 2.25rem; height: 2.25rem; } }

/* Library */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.resource { background: var(--paper-deep); border: 1px solid var(--stone); border-radius: 6px; padding: 1rem 1.25rem; }
.resource h2 { font-size: 1.5rem; margin-bottom: .2em; }
.resource h2 a { text-decoration: none; }
.resource p { margin: 0 0 .4em; }
.muted { opacity: .8; font-size: .9rem; }

/* Committee */
.committee h2 { margin-top: 2rem; }
.seats { margin: 0; }
.seats div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--stone); }
.seats dt { font: .75rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--forest); }
.seats dd { margin: 0; font: 1.2rem/1.4 var(--read); }
.seats dd.open { font-style: italic; opacity: .75; }
.names { list-style: none; margin: 0; padding: 0; font: 1.2rem/1.4 var(--read); }
.names li { padding: .5rem 0; border-bottom: 1px solid var(--stone); }

/* Public forms */
.form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.form input[type="text"], .form input[type="email"] { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--forest); border-radius: 4px; background: #fff; color: var(--ink); }
.form .button { margin-top: 1.25rem; border: 0; font: inherit; cursor: pointer; }

/* Contact form */
.form textarea, .form select { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--forest); border-radius: 4px; background: #fff; color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Labels (buttons, filters) use the mono font. Sentences use Newsreader. */
.filters a, .button, .linklike { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; }
/* Menu: sans, 44 px tall, current page underlined in forest (Events design). */
.main { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-left: auto; font: .95rem var(--ui); }
.main a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 2px; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.main a:hover { color: var(--forest); border-bottom-color: var(--stone); }
.main a.current { color: var(--forest); font-weight: 600; border-bottom-color: var(--forest); }

/* Bigger screens get bigger type, since everything is sized in rem. */
@media (min-width: 100rem) { html { font-size: 18px; } }
@media (min-width: 120rem) { html { font-size: 20px; } }


/* Cards: every image the same shape, tighter text, the link always at the bottom. */
.post-list.three .post-card { grid-template-rows: auto 1fr; align-content: stretch; }
.card-body { display: flex; flex-direction: column; padding: 1rem 1.25rem 1.1rem; }
.card-body .stamp { margin: 0 0 .35rem; letter-spacing: .08em; }
.card-body h2, .card-body h3 { font-size: 1.5rem; margin: 0 0 .4rem; }
.card-body .summary { margin: 0 0 .75rem; font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .tag-list { margin: 0 0 .4rem; }
.card-body .more-row { margin: auto 0 0; }

/* Event page: the title, date and place sit close together, in the intended fonts. */
.narrow.event-detail h1 { margin-bottom: .35em; }
.narrow.event-detail p.when { font: 1.5rem/1.3 var(--display); margin: 0 0 .5rem; }
.narrow.event-detail p.where { font: 1.1rem/1.45 var(--read); margin: 0 0 1.25rem; }

/* The back link at the top of a detail page sits quietly above the stamp. */
.narrow .back { margin: 0 0 1.25rem; }

/* Icons: drawn inline, same color as the words. */
.icon { width: 1em; height: 1em; vertical-align: -.14em; margin-right: .4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.end { margin: 0 0 0 .4em; }
