@charset "UTF-8";
/* ==========================================================================
   The Ste. Genevieve Academy — site.css
   Hand-written, no build step, no framework. Edit directly.

   Structure:
     1. Tokens
     2. Reset & base
     3. Layout
     4. Header & navigation
     5. Hero
     6. Visit Card
     7. Prose & history
     8. Plates (figures)
     9. Quotation slab
    10. Hook rail
    11. Forms
    12. Map
    13. Call-to-action band
    14. Footer
    15. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
	/* Limestone paper and ink */
	--paper:        #faf8f4;
	--paper-warm:   #f3efe7;
	--paper-deep:   #e9e3d8;
	--ink:          #22201c;
	--ink-soft:     #575046;
	--ink-faint:    #6c655a;
	--rule:         #d6cfc2;
	--rule-soft:    #e5dfd4;

	/* The door. Reserved for the booking control and nothing else. */
	--door:         #8a2b1c;
	--door-dark:    #6d2115;

	/* Night stone, for the call-to-action band */
	--night:        #2b2721;
	--night-soft:   #3a352d;

	--serif:  ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
	--sans:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--measure: 68ch;
	--gutter:  clamp(1.25rem, 5vw, 3rem);
	--bay:     clamp(3rem, 8vw, 6rem);   /* vertical rhythm between sections */

	--shadow-plate: 0 1px 2px rgba(34, 32, 28, .06), 0 8px 24px -12px rgba(34, 32, 28, .18);
}

/* 2. Reset & base ---------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* The sticky masthead wraps as the viewport narrows. Measured heights:
	   <=640px 195px | 660-896px 139px | >=900px 71px. Reserve accordingly, or
	   an in-page anchor lands with its heading hidden behind the header. */
	scroll-padding-top: 13rem;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.5rem); }

p { margin: 0 0 1.15em; }

a { color: var(--door); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--door-dark); }

:focus-visible {
	outline: 3px solid var(--door);
	outline-offset: 3px;
	border-radius: 2px;
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: var(--bay) 0;
}

::selection { background: rgba(138, 43, 28, .16); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 3. Layout ---------------------------------------------------------------- */

.wrap {
	width: min(74rem, 100% - (var(--gutter) * 2));
	margin-inline: auto;
}

.wrap--narrow { width: min(46rem, 100% - (var(--gutter) * 2)); }

.bay { padding-block: var(--bay); }

.bay--tint { background: var(--paper-warm); }

.bay + .bay { border-top: 1px solid var(--rule-soft); }

/* A hairline rule carrying a label — the structural motif of the site. */
.rule-label {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 2rem;
	font-family: var(--sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.rule-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rule);
}

/* 4. Header & navigation --------------------------------------------------- */

.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 248, 244, .94);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--rule-soft);
}

.masthead__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.5rem;
	padding-block: .8rem;
}

.masthead__brand {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--ink);
	text-decoration: none;
	margin-right: auto;
}
.masthead__brand span {
	display: block;
	font-family: var(--sans);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-top: .2rem;
}

/* No hamburger, no JavaScript. Three links wrap gracefully. */
.masthead__nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	order: 3;
	width: 100%;
	padding-top: .7rem;
	border-top: 1px solid var(--rule-soft);
}

.masthead__nav a {
	color: var(--ink-soft);
	text-decoration: none;
	font-size: .9rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .35rem 0;
}
.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] { color: var(--ink); }
.masthead__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--door); }

.masthead__actions {
	display: flex;
	align-items: center;
	gap: .75rem;
	order: 2;
}

@media (min-width: 46em) {
	.masthead__nav {
		order: 2;
		width: auto;
		padding-top: 0;
		border-top: 0;
	}
	.masthead__actions { order: 3; }
}

/* Anchor reservation, matched to the measured masthead height at each width. */
@media (min-width: 42em) { html { scroll-padding-top: 9.5rem; } }
@media (min-width: 57em) { html { scroll-padding-top: 5.5rem; } }

/* 5. Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	background: var(--night);
	color: #f6f2ea;
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .62;
	filter: saturate(.85);
}

.hero::after {   /* legibility scrim */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,18,15,.58) 0%, rgba(20,18,15,.34) 45%, rgba(20,18,15,.74) 100%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(3.5rem, 10vw, 7rem);
}

.hero h1 {
	color: #fffdf8;
	max-width: 20ch;
	margin-bottom: .35em;
	text-shadow: 0 1px 24px rgba(0,0,0,.35);
}

.hero__dates {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	font-size: .95rem;
	color: #e6ddcd;
}
.hero__dates li { display: flex; align-items: baseline; gap: .55rem; }
.hero__dates b {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 600;
	color: #fffdf8;
	letter-spacing: .01em;
}

/* 6. Visit Card ------------------------------------------------------------
   Rendered from includes/visit-card.php so home and contact cannot drift.  */

.visit-card {
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--rule);
	border-radius: 3px;
	box-shadow: var(--shadow-plate);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	max-width: 34rem;
}

.hero .visit-card { margin-top: 2rem; }

.visit-card__head {
	font-family: var(--sans);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 1.1rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--rule);
}

.visit-card__rows { margin: 0 0 1.4rem; }

.visit-card__row {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: .35rem 1rem;
	padding: .55rem 0;
	border-bottom: 1px solid var(--rule-soft);
	align-items: baseline;
}
.visit-card__row:last-child { border-bottom: 0; }

.visit-card__row dt {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.visit-card__row dd {
	margin: 0;
	font-size: 1rem;
	color: var(--ink);
}
.visit-card__row dd small {
	display: block;
	font-size: .82rem;
	color: var(--ink-soft);
	margin-top: .15rem;
}

/* A fact we do not have yet renders visibly unfinished rather than silently blank. */
.visit-card__row dd .tbc {
	color: var(--ink-faint);
	font-style: italic;
}

.visit-card__free {
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--door);
	line-height: 1;
}

.visit-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem;
}

@media (max-width: 26em) {
	.visit-card__row { grid-template-columns: 1fr; }
	.visit-card__row dt { margin-bottom: -.1rem; }
}

/* Buttons ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .8rem 1.5rem;
	background: var(--door);
	color: #fff;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid var(--door);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--door-dark); border-color: var(--door-dark); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--rule);
	font-weight: 500;
}
.btn--ghost:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--ink-faint); }

.btn--small { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }

.btn--onnight { background: var(--door); border-color: var(--door); }

/* A phone number is a first-class control for this audience. */
.telcall {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 44px;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}
.telcall:hover { color: var(--door); }
.telcall::before {
	content: "";
	width: 1rem; height: 1rem;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--phone-icon) center / contain no-repeat;
	mask: var(--phone-icon) center / contain no-repeat;
}
:root {
	--phone-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z"/></svg>');
}
.hero .telcall, .cta .telcall { color: #f2ece1; }
.hero .telcall:hover, .cta .telcall:hover { color: #fff; }

/* The Visit Card sits on paper even inside the hero, so it keeps ink. */
.visit-card .telcall { color: var(--ink); }
.visit-card .telcall:hover { color: var(--door); }

/* 7. Prose & history ------------------------------------------------------- */

.prose { max-width: var(--measure); }

.prose p {
	font-family: var(--serif);
	font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem);
	line-height: 1.72;
	color: var(--ink);
}

.prose > p:first-of-type::first-line { letter-spacing: .01em; }

.standfirst {
	font-family: var(--sans);
	font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
	line-height: 1.5;
	color: var(--ink-soft);
	max-width: 42ch;
	margin-bottom: 2rem;
}

/* Era headings inserted between Frank's paragraphs. His words are untouched. */
.era {
	margin-top: 3.25rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
	position: relative;
}
.era__year {
	display: block;
	font-family: var(--serif);
	font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	font-weight: 600;
	line-height: .9;
	color: var(--paper-deep);
	letter-spacing: -.02em;
	margin-bottom: -.25em;
	user-select: none;
}
.era__title {
	position: relative;
	font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem);
	margin: 0 0 1.25rem;
}

/* Contents list at the head of the history page */
.contents {
	background: var(--paper-warm);
	border: 1px solid var(--rule-soft);
	border-radius: 3px;
	padding: 1.5rem 1.75rem;
	margin: 0 0 3rem;
	max-width: var(--measure);
}
.contents h2 {
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: .9rem;
}
.contents ol {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 2rem;
	font-size: .95rem;
}
.contents li { break-inside: avoid; margin-bottom: .4rem; }
.contents a { color: var(--ink-soft); text-decoration: none; }
.contents a:hover { color: var(--door); text-decoration: underline; }
@media (max-width: 34em) { .contents ol { columns: 1; } }

/* The seven block quotations, promoted from bare <p> to real <blockquote>. */
blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.5rem;
	border-left: 3px solid var(--door);
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1.02rem + .4vw, 1.28rem);
	font-style: italic;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: var(--measure);
}
blockquote p:last-child { margin-bottom: 0; }
/* .prose p is more specific than blockquote, so restate the quotation's type. */
.prose blockquote p {
	font-size: clamp(1.1rem, 1.02rem + .4vw, 1.28rem);
	font-style: italic;
	line-height: 1.6;
	color: var(--ink-soft);
}
blockquote cite {
	display: block;
	margin-top: .6rem;
	font-family: var(--sans);
	font-size: .82rem;
	font-style: normal;
	color: var(--ink-faint);
}

/* Footnote markers */
.fn {
	font-size: .7em;
	vertical-align: super;
	line-height: 0;
	font-family: var(--sans);
	font-weight: 600;
}

/* 8. Plates (figures) ------------------------------------------------------ */

.plates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.plate { margin: 0; }

.plate__frame {
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	padding: .6rem;
	box-shadow: var(--shadow-plate);
}
.plate__frame img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--paper-deep);
}
.plate--tall .plate__frame img { aspect-ratio: 3 / 4; object-fit: contain; }
.plate--doc  .plate__frame img { aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }

.plate figcaption {
	margin-top: .9rem;
	font-size: .92rem;
	line-height: 1.45;
	color: var(--ink-soft);
}
.plate figcaption b {
	display: block;
	font-family: var(--serif);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: .2rem;
}

/* A full-bleed pair: then and now */
.diptych {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 44em) { .diptych { grid-template-columns: 1fr 1fr; } }

/* 9. Quotation slab -------------------------------------------------------- */

.slab {
	background: var(--paper-warm);
	border-block: 1px solid var(--rule);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.slab blockquote {
	border: 0;
	padding: 0;
	margin: 0 auto;
	max-width: 44rem;
	font-size: clamp(1.3rem, 1.1rem + 1.1vw, 1.9rem);
	font-style: normal;
	line-height: 1.4;
	color: var(--ink);
	text-align: center;
	text-wrap: balance;
}
.slab blockquote::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	background: var(--door);
	margin: 0 auto 1.75rem;
}
.slab cite { margin-top: 1.25rem; font-size: .9rem; }

/* 10. Hook rail ------------------------------------------------------------
   Curiosity hooks that deep-link into the history page. Always below the
   Visit Card, never above it. */

.hooks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr));
	gap: 1px;
	background: var(--rule-soft);
	border: 1px solid var(--rule-soft);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hooks li { background: var(--paper); }

.hooks a {
	display: block;
	height: 100%;
	padding: 1.5rem 1.4rem;
	color: var(--ink);
	text-decoration: none;
	transition: background-color .15s ease;
}
.hooks a:hover { background: var(--paper-warm); }

.hooks b {
	display: block;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--door);
	line-height: 1;
	margin-bottom: .55rem;
}
.hooks span {
	display: block;
	font-size: .95rem;
	line-height: 1.45;
	color: var(--ink-soft);
}
.hooks a::after {
	content: " →";
	color: var(--ink-faint);
}

/* 11. Forms ---------------------------------------------------------------- */

.form { max-width: 34rem; }

.field { margin-bottom: 1.35rem; }

.field label {
	display: block;
	font-family: var(--sans);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--ink);
	margin-bottom: .4rem;
}
.field label .opt {
	font-weight: 400;
	color: var(--ink-faint);
	letter-spacing: 0;
}

.field input,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: .75rem .9rem;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: 2px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--door);
	box-shadow: 0 0 0 3px rgba(138, 43, 28, .16);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field__hint {
	display: block;
	margin-top: .35rem;
	font-size: .84rem;
	color: var(--ink-soft);
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.notice {
	padding: 1.25rem 1.5rem;
	border-radius: 3px;
	border: 1px solid var(--rule);
	background: var(--paper-warm);
	max-width: 34rem;
}
.notice--good { border-left: 3px solid #2f6b46; }
.notice--bad  { border-left: 3px solid var(--door); }
.notice h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.notice p:last-child { margin-bottom: 0; }

/* Contact channels, given equal weight */
.channels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
	gap: 1.5rem;
	margin: 0 0 var(--bay);
	padding: 0;
	list-style: none;
}
.channels > li {
	border: 1px solid var(--rule-soft);
	border-radius: 3px;
	padding: 1.4rem 1.5rem;
	background: var(--paper);
}
.channels dt {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: .5rem;
}
.channels dd { margin: 0; font-size: 1.05rem; }
.channels dd a { font-weight: 600; text-decoration: none; }
.channels dd a:hover { text-decoration: underline; }
.channels small { display: block; margin-top: .4rem; font-size: .86rem; color: var(--ink-soft); }

/* 12. Map ------------------------------------------------------------------ */

.map {
	border: 1px solid var(--rule);
	padding: .6rem;
	background: var(--paper-warm);
	box-shadow: var(--shadow-plate);
}
.map iframe {
	display: block;
	width: 100%;
	height: clamp(18rem, 45vw, 26rem);
	border: 0;
	background: var(--paper-deep);
}

/* 13. Call-to-action band -------------------------------------------------- */

.cta {
	background: var(--night);
	color: #f4efe6;
	padding-block: clamp(3rem, 8vw, 5rem);
}
.cta h2 {
	color: #fffdf8;
	max-width: 22ch;
	font-size: clamp(1.6rem, 1.3rem + 1.8vw, 2.5rem);
}
.cta p {
	max-width: 52ch;
	color: #ddd4c5;
	font-size: 1.08rem;
}
.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

/* The band at the foot of the history page, for the reader who finished. */
.cta--reader { background: var(--night-soft); }

/* 14. Footer --------------------------------------------------------------- */

.site-footer {
	background: var(--paper-warm);
	border-top: 1px solid var(--rule);
	padding-block: 2.5rem;
	font-size: .9rem;
	color: var(--ink-soft);
}
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	align-items: baseline;
	justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--door); }
.site-footer__place {
	font-family: var(--serif);
	font-size: 1rem;
	color: var(--ink);
}

/* 15. Utilities ------------------------------------------------------------ */

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--door);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }

.stack > * + * { margin-top: 1.25rem; }
