:root { color-scheme: light; font-family: system-ui, sans-serif; color: #17332e; background: #f5f4ed; }
body { margin: 0; }
header, main, footer { box-sizing: border-box; max-width: 68rem; margin: auto; padding: 1.5rem clamp(1.25rem, 5vw, 4rem); }
header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ced9cf; }
a { color: #195b49; }
.brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: #17332e; }
.brand span { color: #28725b; }
main { min-height: 70vh; }
.hero { padding: clamp(2rem, 9vw, 7rem) 0; }
.eyebrow { color: #195b49; font-weight: 700; }
h1 { font-family: Georgia, serif; line-height: 1.05; max-width: 13ch; font-size: clamp(2.5rem, 7vw, 5rem); margin: .35em 0; }
p { max-width: 42rem; line-height: 1.6; }
button, .button { display: inline-block; background: #195b49; color: white; border: 1px solid #195b49; border-radius: .4rem; padding: .7rem 1rem; font: inherit; text-decoration: none; cursor: pointer; margin: .25rem .25rem .25rem 0; }
.secondary { background: transparent; color: #195b49; }
label { display: block; margin: .8rem 0; font-weight: 600; }
input { display: block; box-sizing: border-box; width: min(100%, 24rem); margin-top: .35rem; padding: .6rem; border: 1px solid #687b70; border-radius: .3rem; font: inherit; }
article { background: white; border: 1px solid #ced9cf; border-radius: .4rem; margin: 1rem 0; padding: 1rem 1.25rem; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; }
dd { margin: 0; overflow-wrap: anywhere; }
.error { color: #962c25; }
footer { border-top: 1px solid #ced9cf; }

/* The plate is built from live type so the name stays sharp at every size. */
.hero { max-width: 52rem; margin: auto; text-align: center; }
.plate {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: clamp(11rem, 38vw, 24rem);
    box-sizing: border-box;
    padding: clamp(1.25rem, 5vw, 2.75rem) clamp(.9rem, 6vw, 4rem);
    border: 2px solid #536453;
    border-radius: clamp(1rem, 4vw, 2rem);
    background: radial-gradient(ellipse at 28% 16%, #fffef7, #eeedde 76%);
    box-shadow: inset 0 0 0 5px #f8f7ed, inset 0 0 0 7px #53715d,
                0 3px 0 #c2c6b7, 0 18px 35px #17332e20;
    color: #213f34;
}
.plate::before, .plate::after {
    position: absolute;
    top: clamp(.75rem, 3vw, 1.35rem);
    width: clamp(.72rem, 3vw, 1.45rem);
    height: clamp(.3rem, 1.2vw, .65rem);
    border-radius: 999px;
    background: #68766b;
    box-shadow: inset 0 2px 3px #223b30, 0 1px 0 white;
    content: "";
}
.plate::before { left: 23%; }
.plate::after { right: 23%; }
.plate-motto, .plate-state {
    max-width: none;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
}
.plate-motto { font-size: clamp(.65rem, 2.1vw, 1.1rem); letter-spacing: .14em; }
.plate-state { font-size: clamp(.85rem, 3vw, 1.6rem); letter-spacing: .22em; }
.plate .plate-name {
    align-self: center;
    max-width: none;
    margin: .1em 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
    font-size: clamp(2.55rem, 13vw, 9rem);
    font-stretch: condensed;
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: .95;
    text-shadow: 0 -1px 0 #0f251d, 0 2px 0 #a7b9a8, 1px 3px 0 #fffdf2;
    white-space: nowrap;
}
.plate-name span { margin-inline-start: .065em; }
.hero-details { margin-top: 2rem; }
.hero-details p { margin: 0 auto 1rem; }
.hero-details .button span { margin-inline-start: .4rem; }

body {
    --page: #f1f5eb;
    --ink: #213f34;
    --accent: #195b49;
    --line: #bacbbd;
    --plate-light: #f6f8e8;
    --plate-base: #dce8d8;
    --plate-ink: #213f34;
    --plate-rim: #53715d;
    --plate-shadow: #9baf9d;
    color: var(--ink);
    background: var(--page);
}
body[data-plate="classic"] {
    --page: #f5f4ed;
    --plate-light: #fffef7;
    --plate-base: #eeedde;
}
body[data-plate="forest"] {
    --page: #e3ebe3;
    --plate-light: #2e5442;
    --plate-base: #173a2b;
    --plate-ink: #fffdf0;
    --plate-rim: #f0eddb;
    --plate-shadow: #9aa698;
}
body[data-plate="monochrome"], body[data-plate="inverse"] {
    --page: #f1f1ee;
    --ink: #252524;
    --accent: #303030;
    --line: #bdbdb8;
    --plate-light: #fff;
    --plate-base: #e9e8e4;
    --plate-ink: #202020;
    --plate-rim: #444;
    --plate-shadow: #9c9c98;
}
body[data-plate="inverse"] {
    --page: #e7e7e3;
    --plate-light: #414141;
    --plate-base: #171717;
    --plate-ink: #fffcf3;
    --plate-rim: #e9e8e2;
}
header, footer, article { border-color: var(--line); }
.brand { color: var(--ink); }
a, .brand span, .secondary { color: var(--accent); }
button, .button { background: var(--accent); border-color: var(--accent); }
.secondary { background: transparent; }
.plate {
    border-color: var(--plate-rim);
    background: radial-gradient(ellipse at 28% 16%, var(--plate-light), var(--plate-base) 76%);
    color: var(--plate-ink);
    box-shadow: inset 0 0 0 5px var(--plate-base), inset 0 0 0 7px var(--plate-rim),
                0 3px 0 var(--plate-shadow), 0 18px 35px #17332e20;
}
.plate .plate-name { text-shadow: 0 -1px 0 var(--plate-base), 0 2px 0 var(--plate-shadow); }
.palette-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.palette-picker label { margin: 0; }
.palette-picker select {
    max-width: 100%;
    padding: .65rem;
    border: 1px solid var(--accent);
    border-radius: .35rem;
    color: var(--ink);
    background: white;
    font: inherit;
}
