:root {
    color-scheme: dark;
    --bg: #1c101a;
    --panel: #301b2a;
    --fg: #fff2db;
    --muted: #e0c7b5;
    --gold: #ffc478;
    --edge: #694839;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--gold); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff2a8; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, .brand { font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; }
h2 { font-size: clamp(2rem, 5vw, 4.2rem); margin-bottom: .28em; font-weight: 500; }
.top {
    padding: 1rem max(5vw, calc((100vw - 1360px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .7rem 2rem;
    border-bottom: 1px solid var(--edge);
}
.brand { text-decoration: none; font-size: clamp(1.35rem, 4vw, 2rem); }
.brand small { font: 650 .72rem system-ui; margin-left: .75rem; letter-spacing: .11em; }
nav { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; }
nav a { color: var(--fg); font-size: .9rem; }
.skip { position: absolute; left: -100rem; }
.skip:focus { left: .5rem; top: .5rem; z-index: 3; background: var(--bg); padding: .6rem; }
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(510px, 71vh, 820px); }
.hero picture, .hero::after { position: absolute; inset: 0; }
.hero::after { content: ''; background: linear-gradient(90deg,#170b16 0%,#170b16b3 38%,transparent 75%); z-index: -1; }
.hero picture { z-index: -2; }
.hero img { height: 100%; width: 100%; object-fit: cover; object-position: 64% 28%; }
.hero-copy { margin: 0 max(5vw, calc((100vw - 1360px)/2)) clamp(2.3rem, 8vh, 6rem); }
.hero h1 { font-size: clamp(3.5rem, 9vw, 9rem); font-weight: 500; letter-spacing: -.055em; }
.hero p { max-width: 33ch; margin: 1.2rem 0 1.6rem; color: var(--fg); }
.cta, button {
    display: inline-block;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #281322;
    font: 700 1rem/1.25 system-ui;
    padding: .78rem 1.15rem;
    text-decoration: none;
    cursor: pointer;
}
.section, footer { width: min(90%, 1360px); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 7vw, 6rem); border-bottom: 1px solid var(--edge); }
#daily-editorial { width: min(90%, 1360px); margin-inline: auto; padding-block: 2rem; }
.section > p { color: var(--muted); }
.workbench { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 280px; margin-top: 1.35rem; background: var(--panel); border: 1px solid var(--edge); }
.glass { display: grid; place-items: center; min-height: 280px; padding: 1rem; background: radial-gradient(ellipse,#604838,#261626 78%); }
.art {
    width: min(100%, 420px);
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    border: 8px ridge #aa7849;
    background: repeating-conic-gradient(#d3c4ad 0% 25%,#b4a793 0% 50%) 50% / 26px 26px;
    box-shadow: 0 10px 22px #170d15a8;
}
.front .art { transform: scaleX(-1); }
.wash, .petals, .details { position: absolute; inset: 0; }
.wash { background: radial-gradient(ellipse at 59% 38%,#2b686d,#182341 72%); }
.art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,#fff3 2%,transparent 35% 80%,#fff1); pointer-events: none; }
.petals i { position: absolute; width: 23%; height: 29%; left: 54%; top: 30%; border-radius: 85% 15% 75% 30%; background: linear-gradient(45deg,#9c183d,#ff927d); transform-origin: 9% 91%; }
.petals i:nth-child(2) { transform: rotate(-37deg); }
.petals i:nth-child(3) { transform: rotate(-75deg); }
.petals i:nth-child(4) { transform: rotate(-117deg); }
.petals i:nth-child(5) { transform: rotate(-151deg); }
.details i { position: absolute; width: 10%; height: 11%; border-radius: 50%; top: 48%; left: 48%; background: radial-gradient(circle,#ffe7a1,#c07d2d); }
.details b { position: absolute; width: 17%; height: 37%; left: 36%; top: 53%; border-right: 5px solid #82b292; border-radius: 50%; transform: rotate(16deg); }
.controls { align-self: center; padding: clamp(1rem,4vw,3.35rem); }
#face { color: var(--gold); font: 1.7rem Georgia, serif; }
.actions { display: flex; flex-wrap: wrap; align-items: start; gap: .6rem; margin: 1rem 0; }
.actions button:not(:first-child) { color: var(--gold); background: transparent; }
button:disabled { opacity: .58; cursor: default; }
#feedback { min-height: 3.3em; }
.gallery, .library { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.85rem, 2vw, 1.55rem); margin-top: 1.6rem; }
.card, .library section { border: 1px solid var(--edge); background: var(--panel); }
.card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.card h3, .card p, .library section { padding-inline: 1.1rem; }
.card h3 { padding-top: .75rem; font: 1.43rem Georgia,serif; }
.card p { padding-block: .45rem 1.1rem; color: var(--muted); }
.library section { padding-block: 1rem; }
.library h3 { color: var(--fg); }
.library ul { padding-left: 1.2em; margin-block: .5rem 0; }
.library li { margin-block: .45rem; }
.entry { width: min(90%, 810px); margin: clamp(2rem,8vw,7rem) auto; }
.entry h1 { font-size: clamp(2.3rem,7vw,5rem); margin-block: .55em; }
.entry h2 { margin-top: .8em; font-size: 1.9rem; }
.entry p { margin: .9em 0; }
.entry img { height: auto; width: 100%; }
footer { padding-block: 2rem; color: var(--muted); }
footer strong { color: var(--fg); }

@media (max-width: 860px) {
    .gallery, .library { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .hero { min-height: 570px; }
    .hero::after { background: linear-gradient(0deg,#170b16 1%,#170b16b3 36%,transparent 69%); }
    .hero img { object-position: 62% 38%; }
    .workbench { grid-template-columns: 1fr; }
    .glass { min-height: 230px; }
}
@media (max-width: 490px) {
    .gallery, .library { grid-template-columns: 1fr; }
}
.glass:not(.front) .wash { z-index: 2; }
.glass:not(.front) .petals { z-index: 1; }
.glass:not(.front) .art::after { z-index: 3; }
