/* A field atlas with a clay diorama and exposed strata. */
[data-theme="dino"] .corner-sheet { background: #fbf5e5; color: #354633; }
[data-theme="dino"] .corner-sheet-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 0 0 3cqw;
    background: #ead79c;
    border: 0;
}
[data-theme="dino"] .corner-theme-art {
    grid-area: 1 / 1;
    width: 100%;
    height: 24cqw;
    object-position: 50% 31%;
}
[data-theme="dino"] .corner-sheet-head::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3cqw;
    background: linear-gradient(174deg, #526646 36%, #aa673f 37% 55%, #d6a267 56%);
    clip-path: polygon(0 27%, 23% 58%, 47% 8%, 66% 52%, 82% 26%, 100% 48%, 100% 100%, 0 100%);
}
[data-theme="dino"] .corner-sheet-head p {
    grid-area: 1 / 1;
    z-index: 1;
    justify-self: end;
    max-width: 70%;
    margin: 1.8cqw 2.5cqw;
    padding: .65cqw 1.6cqw;
    color: #334730;
    background: #fff8db;
    border: .25cqw solid #5e6651;
    font: bold 2.6cqw/1.2 Consolas, monospace;
}
[data-theme="dino"] .corner-sheet-head h3 {
    grid-row: 2;
    padding: 1.7cqw 4cqw .9cqw;
    font: 900 6.3cqw/1.04 Georgia, serif;
    letter-spacing: -.045em;
}
[data-theme="dino"] .corner-week { padding: 4cqw; gap: 2.6cqw; }
[data-theme="dino"] .corner-day {
    padding: 1.7cqw 2.2cqw;
    background: #fffdf5;
    border: 1px solid #cabd9f;
    border-top: .8cqw solid #627657;
    border-radius: .7cqw;
}
[data-theme="dino"] .corner-day:nth-child(3n + 2) { border-top-color: #ad714b; }
[data-theme="dino"] .corner-day:nth-child(3n) { border-top-color: #b49242; }
[data-theme="dino"] .corner-day h4,
[data-theme="dino"] .corner-duties dt { font: bold 3.3cqw/1.2 Georgia, serif; border: 0; margin: 0 0 .7cqw; }
[data-theme="dino"] .corner-day ol { font-size: 2.9cqw; line-height: 1.33; }
[data-theme="dino"] .corner-duties > div {
    display: grid;
    grid-template-columns: 32% 1fr;
    align-items: baseline;
    gap: 2cqw;
    padding: 2cqw;
    margin-bottom: 1.5cqw;
    background: #fffdf5;
    border-inline-start: .8cqw solid #ad714b;
}
[data-theme="dino"] .corner-rules li { border-bottom: 2px dotted #a59270; }
[data-theme="dino"] .corner-rules li::marker { font: bold 4.3cqw Georgia, serif; color: #865432; }

/* A bound book with an illustrated title page and a two-column reading spread. */
[data-theme="library"] .corner-sheet {
    color: #593830;
    background: linear-gradient(to right, #612f34 0 2%, #b69a73 2% 2.4%, #fffaf0 2.4%);
}
[data-theme="library"] .corner-sheet-head {
    margin: 0 6cqw 0 8cqw;
    padding: 3cqw 0 2cqw;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20cqw;
    align-items: center;
    gap: 1cqw 3cqw;
    border: 0;
    border-bottom: .7cqw double #775641;
    background: transparent;
}
[data-theme="library"] .corner-sheet-head p {
    grid-column: 1;
    margin: 0;
    align-self: end;
    font: italic 2.8cqw/1.2 Georgia, serif;
    color: #755b4f;
}
[data-theme="library"] .corner-sheet-head h3 { align-self: start; font: 500 7.4cqw/1 Georgia, serif; letter-spacing: -.05em; }
[data-theme="library"] .corner-theme-art {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    height: 23cqw;
    border-radius: 50% 50% 4% 4%;
    border: .45cqw double #7d624e;
}
[data-theme="library"] .corner-week {
    margin: 0 5cqw 0 8cqw;
    padding: 4cqw 0;
    gap: 3cqw 6cqw;
    background: linear-gradient(90deg, transparent calc(50% - .2cqw), #e0d2b7 50%, transparent calc(50% + .2cqw));
}
[data-theme="library"] .corner-day h4,
[data-theme="library"] .corner-duties dt {
    border: 0;
    font: italic bold 3.7cqw/1.2 Georgia, serif;
    color: #703c3e;
}
[data-theme="library"] .corner-day ol { font: 3.1cqw/1.43 Georgia, serif; }
[data-theme="library"] .corner-duties { padding-left: 8cqw; }
[data-theme="library"] .corner-duties > div {
    display: grid;
    align-items: baseline;
    grid-template-columns: 32% minmax(0, 1fr);
    column-gap: 3cqw;
    padding: 2.6cqw 0;
    border-bottom: 1px solid #c7b69e;
}
[data-theme="library"] .corner-duties dd { border: 0; font: 3.6cqw/1.3 Georgia, serif; }
[data-theme="library"] .corner-rules { list-style-type: upper-roman; padding-inline: 18cqw 8cqw; }
[data-theme="library"] .corner-rules li { font: 3.9cqw/1.4 Georgia, serif; border-bottom: 1px dotted #baa68c; }
[data-theme="library"] .corner-rules li::marker { font: italic 3.4cqw Georgia, serif; color: #854449; }

/* A symmetrical Gorodets panel with woven borders. */
[data-theme="folk"] {
    --folk-band: conic-gradient(from 45deg, #fff4ce 25%, #ac3227 0 50%, #f7ca70 0 75%, #21496b 0) 0 0 / 2.4cqw 2.4cqw;
}
[data-theme="folk"] .corner-sheet { color: #742c21; background: #fffbef; }
[data-theme="folk"] .corner-sheet-head {
    display: grid;
    justify-items: center;
    padding: 3cqw 5cqw 2.5cqw;
    text-align: center;
    border: 0;
    background: linear-gradient(#fff6dc, #fffbef);
}
[data-theme="folk"] .corner-sheet-head::before,
[data-theme="folk"] .corner-sheet-head::after { content: ""; position: absolute; inset: 0 0 auto; height: 1.8cqw; background: var(--folk-band); }
[data-theme="folk"] .corner-sheet-head::after { inset: auto 0 0; height: 1.2cqw; }
[data-theme="folk"] .corner-theme-art {
    grid-row: 1;
    width: 34cqw;
    height: 16cqw;
    object-position: 50% 28%;
    border-radius: 50%;
    border: .45cqw solid #b77a2d;
}
[data-theme="folk"] .corner-sheet-head p { margin: 1.3cqw 0 .25cqw; font: bold small-caps 2.8cqw/1.2 Georgia, serif; letter-spacing: .07em; }
[data-theme="folk"] .corner-sheet-head h3 { font: bold 6.8cqw/1.1 Georgia, serif; color: #7e2e25; }
[data-theme="folk"] .corner-week { padding: 3.5cqw 5cqw; gap: 3cqw 5cqw; }
[data-theme="folk"] .corner-day h4 {
    border: 0;
    padding: .5cqw 2cqw;
    background: #254e69;
    color: #fff8de;
    text-align: center;
    font: bold 3.3cqw/1.2 Georgia, serif;
    clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
}
[data-theme="folk"] .corner-day ol { padding-left: 5cqw; }
[data-theme="folk"] .corner-duties { padding: 3cqw 7cqw 6cqw; }
[data-theme="folk"] .corner-duties dt { color: #254e69; text-align: center; font: bold 3.5cqw/1.2 Georgia, serif; }
[data-theme="folk"] .corner-duties dd { text-align: center; border-bottom: .4cqw double #ab8458; }
[data-theme="folk"] .corner-rules { padding-inline: 13cqw 8cqw; }
[data-theme="folk"] .corner-rules li { padding-block: 2.5cqw; border-bottom: .45cqw double #d1b27c; }
[data-theme="folk"] .corner-rules li::marker { color: #a12c24; font-family: Georgia, serif; }

/* An airmail postcard with a cancelled balloon stamp. */
[data-theme="balloons"] .corner-sheet { color: #244a60; background: #fffdf6; }
[data-theme="balloons"] .corner-sheet-head {
    min-height: 31cqw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4cqw 36cqw 3cqw 5cqw;
    border: 0;
    background: #f7f4e8;
}
[data-theme="balloons"] .corner-sheet-head::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1.3cqw;
    background: repeating-linear-gradient(125deg, #a8463a 0 2cqw, #fff9e7 2cqw 3.8cqw, #355b78 3.8cqw 5.8cqw, #fff9e7 5.8cqw 7.6cqw);
}
[data-theme="balloons"] .corner-theme-art {
    position: absolute;
    inset: 4cqw 4.3cqw auto auto;
    width: 26cqw;
    height: 22cqw;
    border: .9cqw solid white;
    outline: .4cqw dashed #bcaf8a;
    transform: rotate(4deg);
}
[data-theme="balloons"] .corner-sheet-head::after {
    content: "";
    position: absolute;
    right: 24cqw;
    top: 15cqw;
    width: 8.5cqw;
    height: 8.5cqw;
    border: .7cqw double #486372aa;
    border-radius: 50%;
}
[data-theme="balloons"] .corner-sheet-head p { margin: 0 0 1.6cqw; color: #994d3b; font: italic 3.5cqw/1.15 Georgia, serif; }
[data-theme="balloons"] .corner-sheet-head h3 { font: italic 700 7.1cqw/1.05 Georgia, serif; letter-spacing: -.035em; }
[data-theme="balloons"] .corner-week { gap: 3cqw 4cqw; padding: 4cqw 5cqw; }
[data-theme="balloons"] .corner-day h4,
[data-theme="balloons"] .corner-duties dt { border: 0; color: #9c493a; font: italic 700 3.6cqw/1.2 Georgia, serif; }
[data-theme="balloons"] .corner-day li { border-bottom: 1px dotted #bcb6a6; }
[data-theme="balloons"] .corner-duties > div {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    align-items: baseline;
    gap: 2cqw;
    padding: 2.6cqw 0;
}
[data-theme="balloons"] .corner-duties dd,
[data-theme="balloons"] .corner-rules li { border-bottom: 1px dashed #a69b82; }
[data-theme="balloons"] .corner-rules li::marker { font: italic bold 4cqw Georgia, serif; color: #9c493a; }

/* A nautical broadside with the lighthouse on its own vertical signal panel. */
[data-theme="sea"] .corner-sheet {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    background: #fffdf4;
    color: #173e53;
}
[data-theme="sea"] .corner-sheet-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 2.4cqw 5cqw;
    border: 0;
    color: #fffbed;
    background: #173e53;
}
[data-theme="sea"] .corner-theme-art {
    order: -1;
    width: calc(100% + 4.8cqw);
    max-width: none;
    height: 33cqw;
    margin-inline: -2.4cqw;
    border-bottom: 1.2cqw solid #ac4239;
    object-position: 63% center;
}
[data-theme="sea"] .corner-sheet-head p { margin: 3.4cqw 0 1.3cqw; color: #fae2ab; font: 600 2.9cqw/1.2 system-ui, sans-serif; }
[data-theme="sea"] .corner-sheet-head h3 { font: bold 4.1cqw/1.14 Georgia, serif; letter-spacing: -.035em; }
[data-theme="sea"] .corner-sheet-head::after {
    content: "";
    width: 12cqw;
    height: 1.2cqw;
    margin-top: 3cqw;
    background: repeating-linear-gradient(90deg, #fff6df 0 3cqw, #b94a3e 3cqw 6cqw);
}
[data-theme="sea"] .corner-week { display: block; padding: 2cqw 4cqw; }
[data-theme="sea"] .corner-day { padding: 1.4cqw 0 2cqw; }
[data-theme="sea"] .corner-day h4,
[data-theme="sea"] .corner-duties dt {
    margin: 0 0 .8cqw;
    padding: 0 0 .6cqw;
    border: 0;
    border-bottom: .45cqw solid #274c5b;
    color: #193e50;
    font: 750 3.25cqw/1.18 system-ui, sans-serif;
}
[data-theme="sea"] .corner-day ol { font: 3cqw/1.28 Georgia, serif; }
[data-theme="sea"] .corner-day li::marker { color: #a03c32; }
[data-theme="sea"] .corner-duties { padding: 4cqw; }
[data-theme="sea"] .corner-duties > div { padding: 0 0 3cqw; }
[data-theme="sea"] .corner-duties dd { min-height: 8cqw; border-color: #c4bba3; }
[data-theme="sea"] .corner-rules { padding: 3cqw 4cqw 5cqw 10cqw; }
[data-theme="sea"] .corner-rules li { font: 3.9cqw/1.4 Georgia, serif; border-bottom: .4cqw double #aaa391; }
[data-theme="sea"] .corner-rules li::marker { color: #a03c32; font-weight: bold; }
