/* Midnight Frequency
   Official TinkersTunes color palette.
   Canonical file: /assets/css/midnight-frequency.css
   Living doc:     /home/ubuntu/tinkerstunes/docs/midnight-frequency.md

   Link this stylesheet from every TinkersTunes page. Use the custom
   properties below. Do not copy these hex values into new stylesheets.
   Subsonic, radio, players, and admin screens should load this file
   where custom CSS is supported. */

:root {
    --color-midnight: #151923;
    --color-steel-blue: #283344;
    --color-teal: #478F91;
    --color-gold: #D4A65A;
    --color-silver: #E0E8E9;

    --color-bg: var(--color-midnight);
    --color-bg-secondary: var(--color-steel-blue);
    --color-text: var(--color-silver);
    --color-interactive: var(--color-teal);
    --color-highlight: var(--color-gold);
    --color-on-interactive: var(--color-midnight);

    --font-sans: "Segoe UI", Helvetica, Arial, sans-serif;
    --measure: 38rem;
    --header-height: 4rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.5;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
}

h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

a {
    color: var(--color-interactive);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-highlight);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset: 3px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.site-header a,
.brand {
    color: var(--color-text);
    text-decoration: none;
}

.brand {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
}

.site-header a[aria-current="page"],
.site-header a.is-active,
.is-active {
    color: var(--color-highlight);
}

main {
    flex: 1 0 auto;
    width: min(100%, var(--measure));
    padding: 4.5rem 1.5rem 3rem;
}

.panel h2 + p {
    margin-top: 0.45rem;
}

.eyebrow,
.highlight,
.is-radio {
    color: var(--color-highlight);
}

.eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lede {
    margin-top: 1rem;
    max-width: 34rem;
    font-size: 1.125rem;
}

.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    margin-top: 1.75rem;
    padding: 0.75rem 1.15rem;
    border: 0;
    border-radius: 0;
    background: var(--color-interactive);
    color: var(--color-on-interactive);
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:focus-visible,
button:focus-visible {
    background: var(--color-highlight);
    color: var(--color-on-interactive);
}

.panel {
    background: var(--color-bg-secondary);
    color: var(--color-text);
    padding: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    max-width: 24rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font: inherit;
}

@media (max-width: 640px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .site-nav {
        gap: 1rem;
    }

    main,
    .panel {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    main {
        padding-top: 2.75rem;
    }
}
