@charset "UTF-8";

:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

html[data-rsverse-theme="dark"] { color-scheme: dark; }
html[data-rsverse-theme="dark"] body { background: #0f0f0f; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, label { font: inherit; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 12px 16px;
    color: #ffffff;
    background: #000000;
    border-radius: 999px;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

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

.theme-control {
    position: fixed;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.page {
    --primary: #000000;
    --on-primary: #ffffff;
    --ink: #000000;
    --body: #5e5e5e;
    --mute: #afafaf;
    --hairline: #dedede;
    --canvas: #ffffff;
    --canvas-soft: #efefef;
    --canvas-softer: #f3f3f3;
    --surface-pressed: #e2e2e2;
    --link: #0000ee;
    --on-dark: #ffffff;
    --black-elevated: #282828;
    --toggle-track: #e2e2e2;
    --toggle-icon: #5e5e5e;
    --toggle-cloud: rgba(255, 255, 255, 0.62);
    --toggle-cloud-border: rgba(94, 94, 94, 0.28);
    --toggle-shadow: rgba(0, 0, 0, 0.18);
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
}

.theme-control:checked ~ .page,
html[data-rsverse-theme="dark"] .page {
    --primary: #ffffff;
    --on-primary: #000000;
    --ink: #ffffff;
    --body: #a0a0a0;
    --mute: #707070;
    --hairline: #4b4b4b;
    --canvas: #0f0f0f;
    --canvas-soft: #1a1a1a;
    --canvas-softer: #252525;
    --surface-pressed: #2a2a2a;
    --link: #0000ee;
    --on-dark: #000000;
    --black-elevated: #e2e2e2;
    --toggle-track: #282828;
    --toggle-icon: #ffffff;
    --toggle-cloud: rgba(255, 255, 255, 0.16);
    --toggle-cloud-border: rgba(255, 255, 255, 0.28);
    --toggle-shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

.container {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 32px;
}

.nav-bar {
    position: sticky;
    z-index: 20;
    top: 0;
    color: var(--ink);
    background: color-mix(in srgb, var(--canvas) 94%, transparent);
    border-bottom: 1px solid var(--hairline);
    backdrop-filter: blur(12px);
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
}

.brand {
    justify-self: start;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.nav-content nav {
    display: flex;
    gap: 32px;
}

.nav-content nav a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.nav-content nav a:hover,
.nav-content nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: end;
    width: 68px;
    height: 44px;
    padding: 0;
    color: var(--toggle-icon);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
}

.theme-scene {
    width: 64px;
    height: 42px;
}

.sun-symbol,
.moon-symbol,
.cloud-symbol {
    transform-box: fill-box;
    transform-origin: center;
}

.sun-symbol {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
    transition: opacity 180ms ease 80ms, transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.moon-symbol {
    opacity: 0;
    transform: translate(9px, -13px) rotate(-35deg) scale(.62);
    transition: opacity 180ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.cloud-symbol {
    fill: var(--toggle-cloud);
    stroke: var(--toggle-cloud-border);
    stroke-width: 1;
    filter: drop-shadow(0 2px 2px var(--toggle-shadow));
    transform: scale(.78);
    transition: fill 280ms ease, stroke 280ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.theme-control:focus-visible ~ .page .theme-toggle { outline: 2px solid var(--ink); outline-offset: 4px; }
.theme-control:checked ~ .page .sun-symbol,
html[data-rsverse-theme="dark"] .page .sun-symbol {
    opacity: 0;
    transform: translate(-8px, 10px) rotate(55deg) scale(.55);
    transition-delay: 0ms;
}

.theme-control:checked ~ .page .moon-symbol,
html[data-rsverse-theme="dark"] .page .moon-symbol {
    opacity: 1;
    transform: translate(0, -5px) rotate(0) scale(1);
    transition-delay: 100ms;
}

.theme-control:checked ~ .page .cloud-symbol,
html[data-rsverse-theme="dark"] .page .cloud-symbol { transform: translateY(1px) scale(.78); }

.hero-band {
    padding-block: 64px;
    color: var(--ink);
    background: var(--canvas);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: 52px;
    line-height: 64px;
}

h2 {
    margin-bottom: 16px;
    font-size: 36px;
    line-height: 44px;
}

h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 32px;
}

p { margin-top: 0; }

.body-lg {
    max-width: 650px;
    margin-bottom: 24px;
    color: var(--body);
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.button-row,
.component-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
}

.button-primary { color: var(--on-primary); background: var(--primary); }
.button-secondary { color: #000000; background: #ffffff; }
.button-subtle { color: var(--ink); background: var(--canvas-soft); }
.button-disabled { color: var(--body); background: var(--canvas-soft); cursor: not-allowed; }

.button-primary:hover,
.button-primary:focus-visible { background: var(--black-elevated); }

.preview-note {
    padding: 24px;
    background: var(--canvas-soft);
    border-radius: 16px;
}

.preview-note h2 { font-size: 24px; line-height: 32px; }
.preview-note ul { margin: 20px 0 0; padding-left: 20px; color: var(--body); }
.preview-note li + li { margin-top: 8px; }

.section { padding-block: 64px; background: var(--canvas); }

.section-heading {
    display: grid;
    grid-template-columns: minmax(260px, 0.45fr) minmax(300px, 0.55fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 32px;
}

.section-heading h2,
.section-heading p { margin-bottom: 0; }

.section-heading p {
    color: var(--body);
    font-size: 16px;
    line-height: 24px;
}

.privy-card {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    overflow: hidden;
    color: #ffffff;
    background: #000000;
    border-radius: 16px;
}

.privy-image-area {
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 32px;
    background: #282828;
}

.cover-frame {
    width: min(100%, 238px);
    margin: 0;
    padding: 8px;
    color: #ffffff;
    background: #000000;
    border-radius: 16px;
}

.cover-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 1179 / 2556;
    object-fit: contain;
    border-radius: 12px;
}

.cover-frame figcaption {
    padding: 10px 4px 3px;
    color: #afafaf;
    font-size: 12px;
    line-height: 20px;
}

.privy-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.privy-content > p:not(.eyebrow):not(.content-placeholder) {
    color: #efefef;
    font-size: 18px;
    line-height: 24px;
}

.content-placeholder {
    padding: 16px;
    color: #000000;
    background: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 8px 14px;
    color: #000000;
    background: #efefef;
    border-radius: 999px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
}

.privy-content .button-disabled { align-self: flex-start; color: #000000; background: #efefef; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.project-card {
    overflow: hidden;
    background: var(--canvas-soft);
    border-radius: 16px;
}

.project-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 24px;
    overflow: hidden;
    background: var(--canvas-softer);
}

.project-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.project-content { padding: 24px; }
.project-content > p { color: var(--body); font-size: 16px; line-height: 24px; }
.project-content .tag-list { margin-bottom: 0; }
.project-content .tag-list li { color: var(--ink); background: var(--canvas); }

.archive-card {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--surface-pressed);
    border-radius: 16px;
}

.archive-card ul { margin: 0; padding: 0; list-style: none; }
.archive-card li {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) 1fr;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--surface-pressed);
}
.archive-card li span:first-child { font-weight: 500; }
.archive-card li span:last-child { color: var(--body); }

.system-band {
    padding-block: 64px;
    color: #ffffff;
    background: #000000;
}

.section-heading-dark p { color: #afafaf; }

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.system-card {
    min-height: 340px;
    padding: 24px;
    color: #000000;
    background: #ffffff;
    border-radius: 16px;
}

.type-scale { margin-block: 32px; }
.type-scale p { margin-bottom: 8px; }
.sample-xxl { font-size: 52px; line-height: 64px; font-weight: 700; }
.sample-xl { font-size: 36px; line-height: 44px; font-weight: 700; }
.sample-body { color: #5e5e5e; font-size: 16px; line-height: 24px; }

.system-card dl { margin: 0; }
.system-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid #e2e2e2;
    font-size: 14px;
}
.system-card dd { margin: 0; color: #5e5e5e; }

.swatches { margin-top: 32px; }
.swatches > div {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e2e2;
}
.swatch { width: 40px; height: 40px; border: 1px solid #e2e2e2; border-radius: 8px; }
.swatch.ink { background: #000000; }
.swatch.canvas { background: #ffffff; }
.swatch.canvas-soft { background: #efefef; }
.swatch.body { background: #5e5e5e; }
.swatches code { color: #5e5e5e; }

.spacing-demo {
    display: flex;
    align-items: end;
    gap: 16px;
    min-height: 120px;
    margin-block: 24px;
}
.spacing-demo span {
    width: calc(var(--size) * 2);
    height: calc(var(--size) * 2);
    min-width: 8px;
    background: #000000;
}
.system-card > p { color: #5e5e5e; font-size: 16px; line-height: 24px; }
.component-demo { margin: 32px 0 24px; }
.system-card .button-subtle { color: #000000; background: #efefef; }
.system-card .button-primary { color: #ffffff; background: #000000; }
.system-card .button-secondary { color: #000000; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,.16); }

.cover-contract {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    color: var(--ink);
    background: var(--canvas-soft);
    border-radius: 16px;
}
.cover-contract strong {
    flex: 0 0 auto;
    padding: 8px 14px;
    color: var(--on-primary);
    background: var(--primary);
    border-radius: 999px;
}

.placeholder-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.placeholder-gallery figure {
    margin: 0;
    padding: 12px;
    background: var(--canvas-soft);
    border-radius: 16px;
}

.placeholder-viewport {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--canvas-softer);
    border-radius: 12px;
}

.placeholder-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.placeholder-gallery figcaption {
    padding: 12px 4px 4px;
    color: var(--body);
    font-size: 14px;
    line-height: 20px;
}

footer {
    padding-block: 32px;
    color: #ffffff;
    background: #000000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
    line-height: 20px;
}
.footer-content div { display: flex; gap: 16px; }
.footer-content span, .footer-content p { margin: 0; color: #afafaf; }

@media (max-width: 860px) {
    .nav-content { grid-template-columns: 1fr auto; }
    .nav-content nav { display: none; }
    .hero-grid,
    .section-heading,
    .privy-card { grid-template-columns: 1fr; }
    .hero-grid { gap: 32px; }
    .section-heading { gap: 8px; }
    .privy-image-area { min-height: 480px; }
    .placeholder-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .container { padding-inline: 16px; }
    .nav-content { min-height: 64px; }
    .hero-band, .section, .system-band { padding-block: 48px; }
    h1 { font-size: 44px; line-height: 52px; }
    h2 { font-size: 32px; line-height: 40px; }
    .button-row { align-items: stretch; flex-direction: column; }
    .project-grid, .system-grid { grid-template-columns: 1fr; }
    .project-grid, .system-grid { gap: 24px; }
    .privy-image-area { min-height: 420px; padding: 24px; }
    .privy-content { padding: 24px; }
    .archive-card li { grid-template-columns: 1fr; gap: 4px; }
    .placeholder-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .placeholder-gallery figure { padding: 8px; }
    .cover-contract { align-items: flex-start; flex-direction: column; }
    .footer-content { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
