:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #251a22;
    background: #fbf7f9;
    line-height: 1.55;
    --accent: #713951;
    --border: #d8c9d2;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #864a68; outline-offset: 4px; }
.site-header {
    padding: 1rem max(1.25rem, calc((100% - 60rem) / 2));
    border-bottom: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-header a { font-weight: 700; }
main, footer { width: min(100% - 2.5rem, 60rem); margin-inline: auto; }
main { margin-block: clamp(2.5rem, 8vw, 5rem); }
.narrow { max-width: 30rem; }
h1 { font-family: Georgia, serif; font-weight: 500; line-height: 1.12; font-size: clamp(2.25rem, 6vw, 3.5rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
p { margin: 0 0 1.15rem; }
label { display: block; font-weight: 650; margin-block-end: .3rem; }
input, button { font: inherit; }
input {
    display: block;
    width: 100%;
    min-height: 2.9rem;
    padding: .55rem .75rem;
    border: 1px solid #826d79;
    border-radius: .4rem;
    color: inherit;
    background: #fff;
}
button {
    min-height: 2.9rem;
    padding: .55rem 1.1rem;
    background: var(--accent);
    color: #fff;
    border: 1px solid transparent;
    border-radius: .4rem;
    cursor: pointer;
    font-weight: 650;
}
.sign-in button { margin-top: 1rem; }
.text-button { background: transparent; color: var(--accent); text-decoration: underline; }
.search { max-width: 30rem; margin-block: 1.5rem 1rem; }
.videos { list-style: none; padding: 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.videos a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: .45rem;
    background: #fff;
    overflow-wrap: anywhere;
}
.videos a:hover { background: #f4eaf0; }
.duration { color: #594952; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: .4rem; background: #1e161d; }
footer { display: flex; flex-wrap: wrap; gap: 1rem; margin-block-end: 2rem; }
