:root {
    color-scheme: light;
    --ink: #30281f;
    --blue: #254963;
    --muted: #615344;
    --paper: #fff8e7;
    --line: #b9a077;
    --green: #25483a;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background: #ebdfc7;
    font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.66; font-size: 1.0625rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.48rem, 4vw, 2.05rem); }
h3 { color: var(--blue); font-size: clamp(1.13rem, 3vw, 1.3rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #946019; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
.button {
    display: inline-flex;
    min-height: 46px;
    max-width: 100%;
    padding: .65rem 1.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: .22rem;
    background: var(--blue);
    color: white;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.button:hover:not(:disabled) { background: #173346; }
footer {
    padding: 1.7rem 1rem 2.2rem;
    text-align: center;
    color: var(--muted);
    font-size: .94rem;
}
footer nav, .paper-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.5rem; align-items: center; }
footer a, .paper-header a { display: inline-flex; align-items: center; min-height: 44px; }
.small { font-size: .94rem; color: var(--muted); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.hub { background: #f4efe4; min-height: 100vh; }
.hub a { color: var(--green); }
.hub-intro {
    text-align: center;
    padding: clamp(2.6rem, 7vw, 5.4rem) 1.15rem clamp(3rem, 7vw, 5rem);
    background: var(--green);
    color: #fff7e5;
}
.hub-intro h1 { margin-bottom: .24em; font-size: clamp(2.65rem, 8vw, 5.5rem); }
.hub-intro p { max-width: 39rem; margin-inline: auto; }
.eyebrow { font: 700 .87rem/1.45 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #f4dca5; }
.tagline { font-size: clamp(1.22rem, 4vw, 1.75rem); font-style: italic; color: #f5dfaf; }
.feature {
    display: grid;
    overflow: hidden;
    width: min(58rem, calc(100% - 2rem));
    margin: -1.45rem auto 0;
    background: #fffaf0;
    border: 1px solid #c9ba9d;
    border-radius: .6rem;
    box-shadow: 0 .55rem 1.4rem #342a171c;
}
.feature-art { padding: clamp(1rem, 5vw, 2.2rem); display: grid; place-items: center; background: #eae1cf; }
.feature-copy { padding: clamp(1.15rem, 4vw, 2.2rem); }
.qr-color { display: flex; align-items: center; gap: .55rem; font: 700 .92rem/1.4 system-ui, sans-serif; color: var(--blue); }
.qr-color span { width: .85rem; height: .85rem; border-radius: .16rem; background: #39638e; flex: none; }
.hub .button { background: var(--green); border-color: var(--green); color: white; }
.hub .button:hover { background: #19362b; }
@media (min-width: 48rem) { .feature { grid-template-columns: 1.1fr 1fr; } }

.residents { background: radial-gradient(ellipse at top, #f8efd8, #e9dbc1 65%, #e3d0ad); min-height: 100vh; }
.paper-header { padding: clamp(1.2rem, 5vw, 2.7rem) 1rem .75rem; text-align: center; }
.masthead { width: min(100%, 43rem); margin-inline: auto; }
.paper-header nav { padding-top: .55rem; font: 600 .91rem/1.5 system-ui, sans-serif; }
.paper-header [data-progress] { color: var(--muted); }
.paper {
    width: min(100% - 1.25rem, 66rem);
    margin: auto;
    padding: clamp(1rem, 4vw, 2.85rem);
    border: 1px solid #c9b18b;
    background: var(--paper);
    box-shadow: 0 .3rem 1.2rem #5f49251c;
}
.collection-intro { max-width: 44rem; margin: 0 auto clamp(1.25rem, 4vw, 2rem); text-align: center; }
.collection-intro > p:first-of-type { font-size: clamp(1.1rem, 2.5vw, 1.26rem); }
.assignment { margin-inline: auto; padding: 1.15rem 1.25rem; max-width: 46rem; border-block: 1px solid var(--line); background: #f4e8cc; }
.assignment h2, .collection-section h2, .certificate-callout h2, .ruled h2 { color: var(--blue); }
.collection-section { margin-top: clamp(1.5rem, 4vw, 2.65rem); text-align: center; }
.progress-label { font: 600 .94rem/1.5 system-ui, sans-serif; margin-bottom: .35rem; }
progress { width: min(100%, 20rem); height: .7rem; display: block; margin: 0 auto 1.55rem; appearance: none; border: 0; border-radius: 1rem; background: #e3d6bc; color: var(--blue); accent-color: var(--blue); }
progress::-webkit-progress-bar { border-radius: 1rem; background: #e3d6bc; }
progress::-webkit-progress-value { border-radius: 1rem; background: #335e7a; }
progress::-moz-progress-bar { border-radius: 1rem; background: #335e7a; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 2vw, 1.2rem); list-style: none; padding: 0; margin: 0 auto; max-width: 56rem; }
.cards li { min-width: 0; }
@media (min-width: 36rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 55rem) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-unknown, .card-found { display: grid; grid-template-rows: auto 3.4rem; height: 100%; align-items: start; font-size: clamp(.89rem, 2vw, 1.1rem); font-weight: bold; line-height: 1.2; }
.card-unknown > img { width: 100%; }
.card-unknown > span, .card-found > span:last-child { display: flex; justify-content: center; align-items: center; align-self: stretch; padding: .25rem; overflow-wrap: anywhere; }
.card-unknown { color: var(--muted); }
.portrait-frame { display: block; aspect-ratio: 3 / 4; padding: 11% 10%; background: url("../images/decorative/card-frame.webp") center / 100% 100% no-repeat; }
.portrait-frame img { width: 100%; height: 100%; object-fit: contain; }
.certificate-callout { text-align: center; margin: 1.5rem auto 0; padding: clamp(1rem, 4vw, 1.8rem); background: #f0e6cd; border: 1px solid var(--line); max-width: 46rem; }
.certificate-callout:first-child { margin-top: 0; }
.privacy { margin: 1.3rem auto 0; max-width: 39rem; text-align: center; color: var(--muted); font-size: .94rem; }
.text-button { padding: .45rem .2rem; min-height: 44px; background: none; border: none; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.notice { margin: 1.1rem auto; padding: .8rem 1rem; max-width: 44rem; border-left: 4px solid var(--blue); background: #e8eef0; color: #254258; }
.warning { border-color: #9c5b21; background: #f8ebcf; color: #593215; }
.interview .paper { max-width: 52rem; }
.interview article { max-width: 41rem; margin-inline: auto; }
.resident-heading { text-align: center; }
.subtitle { font-size: clamp(1.1rem, 3vw, 1.4rem); color: var(--muted); }
.hero-portrait { width: min(82%, 23rem); margin: 1.3rem auto; padding: 0; position: relative; }
.hero-portrait img { position: absolute; inset: 11% 10%; width: 80%; height: 78%; }
.ruled { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.65rem; }
.ruled h2 { margin-bottom: .7em; }
.answer + .answer { margin-top: 1.45rem; }
.reporter-note { margin-block: .85rem; padding-left: .85rem; border-left: 2px solid var(--line); font-style: italic; color: var(--muted); }
.camera figure { margin: 0 auto; max-width: 35rem; }
.photo-frame { padding: clamp(.45rem, 2vw, .85rem); background: #ede1c7; border: 4px double #725a3a; }
.photo-frame img { width: 100%; max-height: 39rem; object-fit: contain; }
figcaption { color: var(--muted); font-style: italic; margin-top: .7rem; }

.screen-heading { text-align: center; font-size: clamp(1.9rem, 6vw, 3rem); }
.certificate-controls { max-width: 33rem; margin: 0 auto 1.4rem; }
.certificate-controls label { display: block; font-weight: bold; }
.certificate-controls input { width: 100%; min-height: 46px; padding: .4rem .65rem; border: 1px solid #83725a; border-radius: .2rem; color: var(--ink); background: #fffdf7; margin: .3rem 0 .55rem; }
.certificate-controls .small { margin-top: .5rem; }
.certificate-art { position: relative; width: 100%; max-width: 9.6in; margin: auto; container-type: inline-size; aspect-ratio: 1427 / 1102; color: #302416; }
.certificate-background { position: absolute; inset: 0; width: 100%; }
.certificate-copy { position: absolute; inset: 11% 11% 27%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.1cqw; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.certificate-copy p { margin: 0 0 .42em; max-width: 100%; }
.certificate-copy p:last-child { margin-bottom: 0; }
.cert-series { font-size: 2.55cqw; font-style: italic; }
.cert-title { font-size: 5.05cqw; font-weight: bold; color: #214057; line-height: 1; }
#certificate-name { font-size: 3.9cqw; font-weight: bold; line-height: 1.04; color: #214057; }
#certificate-name[data-length="medium"] { font-size: 2.55cqw; }
#certificate-name[data-length="long"] { font-size: 1.85cqw; }
.cert-description { width: 94%; }
.cert-honor { font-size: 3.22cqw; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@page { size: letter landscape; margin: .35in; }
@media print {
    body.certificate { background: white; min-height: 0; }
    .certificate .paper { width: auto; margin: 0; padding: 0; border: none; background: transparent; box-shadow: none; }
    .certificate > header, .certificate > footer, .certificate .screen-heading,
    .certificate .certificate-controls, .certificate .notice { display: none !important; }
    .certificate-art { display: none; }
    .certificate-art.print-ready { display: block; width: 9.6in; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

