/* Pryor Mechanical — dark and plain, same look as the kitchen app
   (app/app.css): ink-dark background, cream type, hairlines,
   Big Shoulders headings, Newsreader body, Plex Mono labels. */

:root {
    --bg: #14181e;
    --bg-raised: #1d232b;
    --fg: #efe9dd;
    --fg-soft: #a9b1bb;
    --hairline: rgba(239, 233, 221, 0.25);
    --focus: #7f8df2;
    --display: "Big Shoulders", sans-serif;
    --body: "Newsreader", serif;
    --mono: "IBM Plex Mono", monospace;
    --gutter: clamp(1rem, 5vw, 5rem);
    --logo-ink: var(--fg);
    --logo-cord-a: #c04fd0;
    --logo-cord-b: #7f8df2;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f6f2ea;
        --bg-raised: #ebe5d8;
        --fg: #1b1f26;
        --fg-soft: #525a66;
        --hairline: rgba(27, 31, 38, 0.25);
        --focus: #4452d4;
        --logo-cord-a: #a21caf;
        --logo-cord-b: #0b0a8f;
    }
}

:root[data-theme="light"] {
    --bg: #f6f2ea;
    --bg-raised: #ebe5d8;
    --fg: #1b1f26;
    --fg-soft: #525a66;
    --hairline: rgba(27, 31, 38, 0.25);
    --focus: #4452d4;
    --logo-cord-a: #a21caf;
    --logo-cord-b: #0b0a8f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.mono {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-soft);
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
}

/* ---------- masthead ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
}

.masthead-rule {
    display: none;
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--gutter);
}

@media (max-width: 420px) {
    .masthead-title {
        display: none;
    }

    .masthead-inner {
        justify-content: flex-end;
    }
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--hairline);
    color: var(--fg);
    cursor: pointer;
    font: inherit;
    padding: 0.2rem 0.55rem;
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.masthead-link {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: calc(100vh - 50px);
    display: grid;
    grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: 4rem var(--gutter) 5rem;
}

.hero-text {
    grid-column: 1;
    grid-row: 1;
    max-width: 44rem;
}

.hero-logo {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    justify-self: start;
    width: min(100%, 42rem);
}

.hero-logo svg {
    display: block;
    position: relative;
    width: 100%;
}

/* continues the logo's top cord off the right edge */
.disc-line {
    position: absolute;
    top: 43.4%;
    left: 96%;
    width: 50vw;
    height: 3px;
    background: var(--logo-cord-b);
}

.kicker {
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    margin-bottom: 1.5rem;
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 36em;
    color: var(--fg-soft);
}

.btn-ink {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--fg);
    color: var(--bg);
    padding: 0.7rem 1.2rem;
    border: 0;
    transition: opacity 0.2s;
}

.btn-ink:hover {
    opacity: 0.85;
}

/* email capture */

.signup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 34rem;
    margin-top: 2.2rem;
}

.signup input {
    flex: 1 1 15rem;
    min-width: 0;
    min-height: 3rem;
    padding: 0.55rem 0.7rem;
    font-family: var(--body);
    font-size: 1.0625rem;
    color: var(--fg);
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.signup input::placeholder {
    color: var(--fg-soft);
    opacity: 0.8;
}

.signup .btn-ink {
    flex: 0 0 auto;
    min-height: 3rem;
    cursor: pointer;
}

.signup .btn-ink:disabled {
    opacity: 0.6;
    cursor: progress;
}

.signup input:focus-visible,
.signup .btn-ink:focus-visible,
.masthead-link:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.signup-status {
    flex-basis: 100%;
    min-height: 1.6em;
    font-size: 1rem;
}

.signup-status:empty {
    min-height: 0;
}

@media (max-width: 520px) {
    .signup .btn-ink {
        flex: 1 1 100%;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        align-content: center;
        min-height: 0;
        padding-top: 3rem;
    }

    .hero-text {
        grid-column: 1;
    }

    .hero-logo {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        width: min(100%, 20rem);
    }

    .disc-line {
        display: none;
    }
}

/* ---------- sections ---------- */

.section {
    padding: 4.5rem var(--gutter);
    border-top: 1px solid var(--hairline);
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    white-space: nowrap;
}

.rule {
    flex: 1;
    height: 1px;
    background: var(--hairline);
    align-self: center;
}

/* cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    padding: 1.6rem 1.5rem 1.8rem;
}

.card-no {
    display: block;
    margin-bottom: 1.2rem;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem;
}

.card p {
    color: var(--fg-soft);
    font-size: 0.98rem;
}

/* about */

.about-grid {
    max-width: 52rem;
}

.about-lede {
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

.about-copy p + p {
    margin-top: 1rem;
    color: var(--fg-soft);
}

/* early access */

.contact {
    background: var(--bg-raised);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 5rem var(--gutter);
    text-align: center;
}

.contact-h {
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    margin: 1rem 0 1.2rem;
}

.contact-p {
    max-width: 34em;
    margin: 0 auto 2.2rem;
    color: var(--fg-soft);
}

.contact .signup {
    margin: 0 auto;
    justify-content: center;
}

.contact .signup input {
    background: var(--bg);
}

/* footer */

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem var(--gutter);
}

/* reveals */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
