/* Colors follow Themes/NikonTheme.xaml: accent #FFD100, window #1A1A1A, panel #252525. */

:root {
    color-scheme: dark;
    --bg: #1a1a1a;
    --bg-deep: #111111;
    --panel: #252525;
    --panel-header: #2d2d2d;
    --text: #f0f0f0;
    --text-dim: #a8a8a8;
    --text-body: #d6d6d6;
    --line: #3a3a3a;
    --accent: #ffd100;
    --accent-ink: #111111;
    --accent-hover: #ffe14d;
    --accent-press: #cca700;
    --content: 1120px;
    --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", sans-serif;
    --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-hover);
}

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 8px 12px;
    z-index: 10;
}

.skip:focus {
    top: 12px;
}

.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;
}

section[id],
main[id] {
    scroll-margin-top: 76px;
}

.wrap {
    width: min(var(--content), calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(26, 26, 26, 0.94);
    border-top: 3px solid var(--accent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.brand img {
    width: 28px;
    height: 28px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
}

.nav a:hover {
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
    padding: 56px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4.4vw, 52px);
}

h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 34px);
}

h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.lead {
    margin: 0 0 24px;
    max-width: 38rem;
    color: var(--text-body);
    font-size: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    font: 600 14px/1.2 var(--font);
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--accent-ink);
}

.btn-accent:active {
    background: var(--accent-press);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.types li {
    padding: 4px 8px;
    border: 1px solid #665400;
    background: #1f1f1f;
    color: var(--accent);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.shot {
    margin: 0;
}

.shot img {
    width: 100%;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: var(--bg-deep);
}

.shot figcaption {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 13px;
}

.band {
    background: var(--bg-deep);
}

.section {
    padding: 72px 0;
}

.prose {
    max-width: 44rem;
}

.prose p,
.note p {
    margin: 0 0 14px;
    color: var(--text-body);
}

.prose p:last-child,
.note p:last-child {
    margin-bottom: 0;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 28px;
}

.section-head p {
    margin: 0;
    color: var(--text-body);
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card {
    margin: 0;
    padding: 18px 18px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
}

.card p {
    margin: 0;
    color: var(--text-body);
    font-size: 14.5px;
}

.points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.points li {
    padding: 16px 16px 16px 18px;
    background: var(--panel-header);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-weight: 600;
}

.compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
}

.compare th,
.compare td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

.compare thead th {
    background: var(--panel-header);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 650;
}

.compare thead th:last-child {
    background: var(--accent);
    color: var(--accent-ink);
}

.compare tbody th {
    width: 20%;
    color: var(--text);
    font-weight: 650;
    font-size: 14px;
}

.compare td {
    width: 40%;
    color: var(--text-body);
    font-size: 14.5px;
}

.compare td:last-child {
    background: rgba(255, 209, 0, 0.06);
    color: var(--text);
}

.compare tr:last-child th,
.compare tr:last-child td {
    border-bottom: 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    min-height: 100%;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
}

.steps span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.steps strong {
    display: block;
    margin-bottom: 6px;
}

.steps p {
    margin: 0;
    color: var(--text-body);
    font-size: 14px;
}

.note {
    max-width: 44rem;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.site-footer .wrap {
    padding: 28px 0 36px;
}

.site-footer p {
    margin: 0 0 8px;
    color: var(--text-dim);
    font-size: 13px;
}

.site-footer a {
    color: var(--text);
}

.hero-note {
    margin: 14px 0 0;
    color: var(--text-dim);
    font-size: 13px;
}

.nav-cta {
    min-height: 32px;
    padding: 6px 12px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--accent);
}

.flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.flow article {
    margin: 0;
    padding: 18px 18px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
}

.flow span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flow p {
    margin: 0;
    color: var(--text-body);
    font-size: 14.5px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 28px;
    align-items: center;
}

.split p {
    margin: 0;
    max-width: 40rem;
    color: var(--text-body);
}

.split .actions {
    margin: 0;
    justify-content: flex-end;
}

.card-link {
    margin: 12px 0 0;
}

code {
    font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
    font-size: 0.92em;
    padding: 0 0.28em;
    border: 1px solid var(--line);
    background: #1f1f1f;
    color: var(--text);
}

.contact-link {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 650;
}

.contact-link a {
    color: var(--text);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 960px) {
    .hero-grid,
    .cards,
    .points,
    .steps,
    .flow,
    .split {
        grid-template-columns: 1fr;
    }

    .split .actions {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 36px;
    }

    .section {
        padding: 56px 0;
    }
}

@media (max-width: 800px) {
    .wrap {
        width: min(var(--content), calc(100% - 32px));
    }

    .site-header .wrap {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 16px;
        padding: 8px 0;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 4px 0 12px;
    }

    .nav.is-open {
        display: flex;
    }

    .compare thead {
        display: none;
    }

    .compare,
    .compare tbody,
    .compare tr,
    .compare th,
    .compare td {
        display: block;
        width: auto;
    }

    .compare tr {
        padding: 6px 0 14px;
        border-bottom: 1px solid var(--line);
    }

    .compare tbody th {
        padding-bottom: 0;
        font-size: 16px;
    }

    .compare td {
        padding-top: 10px;
    }

    .compare td::before {
        display: block;
        margin-bottom: 4px;
        color: var(--text-dim);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .compare td:first-of-type::before {
        content: "Nikon Transfer";
    }

    .compare td:last-child::before {
        content: "NEF-transfer";
        color: var(--accent);
    }

    .compare tr:last-child th,
    .compare tr:last-child td {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
