/* ============================================================
   Signal Directive — an editorial gallery for Omarchy work
   ============================================================ */

:root {
    --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

    --rail: 236px;
    --container: 1120px;
    --gutter: clamp(20px, 4vw, 48px);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --step-display: clamp(2.7rem, 4.7vw, 4.85rem);
    --step-heading: clamp(2.25rem, 3.9vw, 3.7rem);
    --step-section: clamp(2rem, 3.2vw, 2.9rem);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #14110e;
    --bg-soft: #191510;
    --panel: #1c1813;
    --ink: #f3ebdf;
    --ink-soft: #c7bcac;
    --muted: #938876;
    --line: rgba(243, 235, 223, .14);
    --line-strong: rgba(243, 235, 223, .3);
    --accent: #d95b35;
    --accent-text: #ee8763;
    --accent-ink: #1a0f0a;
    --shadow: 0 28px 60px rgba(0, 0, 0, .4);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f2ebde;
    --bg-soft: #ece4d6;
    --panel: #e7ddcc;
    --ink: #1b1712;
    --ink-soft: #4a4339;
    --muted: #6d6355;
    --line: rgba(27, 23, 18, .16);
    --line-strong: rgba(27, 23, 18, .34);
    --accent: #c24722;
    --accent-text: #a53a19;
    --accent-ink: #fff6ee;
    --shadow: 0 28px 60px rgba(27, 23, 18, .18);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 500;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    content: "";
    opacity: .04;
    pointer-events: none;
}

html[data-theme="light"] body::after {
    opacity: .03;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    color: inherit;
    font: inherit;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 350;
    letter-spacing: -.022em;
    line-height: 1.02;
    text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
    font-style: italic;
}

em {
    font-style: italic;
}

code {
    padding: 1px 5px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    font-size: .88em;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 600;
    padding: 12px 18px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s var(--ease);
}

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

.container {
    width: min(var(--container), 100% - (var(--gutter) * 2));
    margin-inline: auto;
}

/* ---------- desktop rail ---------- */

.rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: var(--rail);
    padding: 34px 28px 26px;
}

.rail-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    width: max-content;
    text-decoration: none;
}

.rail-mark {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font: italic 400 16px/1 var(--serif);
    letter-spacing: -.03em;
}

.rail-mark i {
    margin: 0 1px;
    font-style: normal;
    opacity: .55;
}

.rail-title strong {
    display: block;
    font: 400 17px/1.15 var(--serif);
    letter-spacing: -.01em;
}

.rail-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font: 400 10.5px/1.3 var(--sans);
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: clamp(44px, 9vh, 92px);
}

.rail-nav a {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 7px 0;
    color: var(--ink-soft);
    font: 400 13.5px/1.3 var(--sans);
    text-decoration: none;
    transition: color .2s var(--ease);
}

.rail-nav a span {
    width: 20px;
    color: var(--muted);
    font: italic 400 12px/1 var(--serif);
    transition: color .2s var(--ease);
}

.rail-nav a:hover {
    color: var(--ink);
}

.rail-nav a:hover span {
    color: var(--accent-text);
}

.rail-nav a[aria-current="true"] {
    color: var(--accent-text);
}

.rail-nav a[aria-current="true"] span {
    color: var(--accent-text);
}

.rail-foot {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding-top: 36px;
}

.theme-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: max-content;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font: 400 11.5px/1 var(--sans);
    transition: color .2s var(--ease);
}

.theme-toggle:hover {
    color: var(--ink);
}

.theme-toggle svg,
.icon-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.theme-toggle .icon-moon,
.icon-button .icon-moon {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun,
html[data-theme="light"] .icon-button .icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon,
html[data-theme="light"] .icon-button .icon-moon {
    display: block;
}

.rail-links {
    display: flex;
    gap: 16px;
}

.rail-links a {
    color: var(--muted);
    font: 400 11px/1 var(--sans);
    text-decoration: none;
    transition: color .2s var(--ease);
}

.rail-links a:hover {
    color: var(--ink);
}

.rail-links span {
    color: var(--accent-text);
}

/* ---------- mobile chrome ---------- */

.mobile-bar {
    display: none;
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}

.icon-button:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.dock {
    display: none;
}

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

.page {
    margin-left: var(--rail);
}

section[id] {
    scroll-margin-top: 72px;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: clamp(28px, 6vh, 64px);
}

.hero-grid {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(32px, 5vh, 56px) 0;
}

.hero-copy {
    max-width: 690px;
}

.hero-kicker {
    color: var(--muted);
    font: italic 400 17px/1.4 var(--serif);
}

.hero h1 {
    margin-top: 14px;
    font-size: var(--step-display);
    line-height: .98;
    letter-spacing: -.025em;
}

.hero h1 em {
    color: var(--accent-text);
}

.hero-lede {
    max-width: 44ch;
    margin-top: clamp(22px, 3vw, 30px);
    color: var(--ink-soft);
    font-size: clamp(15px, 1.15vw, 16.5px);
    line-height: 1.7;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: center;
    margin-top: clamp(28px, 4vh, 40px);
}

.round-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: var(--ink);
    font: 500 13px/1 var(--sans);
    text-decoration: none;
}

.round-link i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink-soft);
    font-style: normal;
    font-size: 13px;
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}

.round-link:hover i {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.quiet-link {
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font: 500 12.5px/1.4 var(--sans);
    text-decoration: none;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

.quiet-link span,
.quiet-link i {
    color: var(--accent-text);
    font-style: normal;
}

.quiet-link:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.hero-disc {
    justify-self: end;
    width: 100%;
    max-width: 400px;
}

.disc-stage {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one {
    inset: 1%;
    border: 1px solid var(--line);
}

.orbit-two {
    inset: 7%;
    border: 1px dashed color-mix(in srgb, var(--ink) 32%, transparent);
    animation: orbit 90s linear infinite;
}

.orbit-two::before {
    position: absolute;
    top: -3.5px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-text);
    content: "";
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

.disc {
    position: relative;
    display: grid;
    width: 76%;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    background: radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--accent) 72%, #fff) 0%, var(--accent) 46%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
    box-shadow:
        0 34px 70px color-mix(in srgb, var(--ink) 14%, transparent),
        inset -26px -30px 60px rgba(0, 0, 0, .24),
        inset 16px 14px 46px rgba(255, 255, 255, .14);
    isolation: isolate;
}

.disc::before {
    position: absolute;
    inset: 6%;
    border: 1px solid rgba(255, 246, 238, .22);
    border-radius: 50%;
    content: "";
}

.badge {
    position: relative;
    width: 68%;
    filter: drop-shadow(0 18px 26px rgba(20, 8, 2, .38));
    transition: transform .7s var(--ease);
}

.disc-stage:hover .badge {
    transform: translateY(-4px) scale(1.015);
}

.badge img {
    width: 100%;
    height: auto;
}

.disc-caption {
    margin-top: 10px;
    color: var(--muted);
    font: italic 400 15px/1.4 var(--serif);
    text-align: center;
}

/* collection marquee */

.collection {
    border-top: 1px solid var(--line);
    padding: 15px 0 17px;
}

.collection-inner {
    display: flex;
    gap: 28px;
    align-items: baseline;
}

.collection-label {
    flex: 0 0 auto;
    color: var(--muted);
    font: italic 400 15px/1.3 var(--serif);
}

.marquee {
    overflow: hidden;
    flex: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 26px, #000 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 80s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    color: var(--ink-soft);
    font: italic 400 19px/1.3 var(--serif);
    white-space: nowrap;
}

.marquee-track i {
    margin: 0 14px;
    color: var(--accent-text);
    font-style: normal;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

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

.section {
    padding: clamp(76px, 9vw, 124px) 0 0;
}

.section-meta {
    margin-bottom: 14px;
    color: var(--accent-text);
    font: italic 400 15px/1.4 var(--serif);
}

.section-head h2,
.about h2,
.guide-head h2 {
    max-width: 17ch;
    font-size: var(--step-heading);
}

.section-intro {
    max-width: 52ch;
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
}

/* about */

.about {
    padding-top: clamp(64px, 8vw, 104px);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.about h2 {
    max-width: 13ch;
}

.about-copy p {
    max-width: 48ch;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.75;
}

.about-copy .quiet-link {
    display: inline-block;
    margin-top: 26px;
}

/* ---------- theme gallery ---------- */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 3vw, 38px) clamp(16px, 1.8vw, 24px);
    margin-top: clamp(34px, 4vw, 52px);
}

.theme-card {
    display: block;
    text-decoration: none;
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--p3);
    isolation: isolate;
}

.thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .8s var(--ease);
}

.theme-card:hover .thumb {
    transform: scale(1.028);
}

.poster::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
    content: "";
    opacity: .06;
    pointer-events: none;
}

/* theme transcriptions from each repo's colors.toml */

.t-gta       { --p1: #ff5ccc; --p2: #f04f87; --p3: #08050d; --p4: #ffd0c0; }
.t-vaporwave { --p1: #ff66d9; --p2: #ff5e83; --p3: #100b1d; --p4: #f5e6ff; }
.t-tide-dark { --p1: #5cc9c1; --p2: #e57f6d; --p3: #0e1a1a; --p4: #d3e3e0; }
.t-tide-light{ --p1: #287874; --p2: #c04833; --p3: #f7f3ea; --p4: #1c2b2a; }
.t-bloqi     { --p1: #89b4fa; --p2: #aa0f01; --p3: #000000; --p4: #c8d0f0; }
.t-quattro   { --p1: #ffffff; --p2: #c9c9c9; --p3: #0a0a0a; --p4: #8f8f8f; }
.t-norman    { --p1: #89b4fa; --p2: #f38ba8; --p3: #15191f; --p4: #cdd6f4; }
.t-andromeda { --p1: #7daea3; --p2: #d08770; --p3: #23262e; --p4: #e5e5e5; }
.t-sherbet   { --p1: #bae5ff; --p2: #f1a2bf; --p3: #1e1e2e; --p4: #cdd6f4; }
.t-cyber     { --p1: #2be3fc; --p2: #df4dbe; --p3: #15191f; --p4: #c8c8e8; }
.t-delete    { --p1: #7575aa; --p2: #b7d636; --p3: #11141e; --p4: #f2f1fa; }
.t-gruvy     { --p1: #7daea3; --p2: #cf8a3d; --p3: #282828; --p4: #d4be98; }
.t-rebel     { --p1: #b36673; --p2: #c5836b; --p3: #070707; --p4: #f9debe; }
.t-robco     { --p1: #59cf77; --p2: #e85d5d; --p3: #07140d; --p4: #59cf77; }
.t-mojave    { --p1: #ffcc00; --p2: #ff8800; --p3: #0a0a08; --p4: #ffb000; }
.t-okuda     { --p1: #cc6cc0; --p2: #ce6363; --p3: #000000; --p4: #fbcb62; }
.t-storm     { --p1: #6580da; --p2: #a163b7; --p3: #020309; --p4: #e2e2f8; }
.t-eldritch  { --p1: #a881b7; --p2: #cf867c; --p3: #1c2023; --p4: #c7ccd1; }
.t-inkypinky { --p1: #ea90a8; --p2: #8f7fb5; --p3: #1b1620; --p4: #f6e9ee; }
.t-adapta    { --p1: #9a9ac4; --p2: #5c5c78; --p3: #2b2b33; --p4: #ececf5; }
.t-romero    { --p1: #e9e5dd; --p2: #c2b8ae; --p3: #0e0e0e; --p4: #d4d0c8; }
.t-bombshell { --p1: #d6b03a; --p2: #c05246; --p3: #1a1b16; --p4: #ded2ba; }
.t-bleach    { --p1: #e23c8c; --p2: #e0524f; --p3: #120a0e; --p4: #dcd6de; }
.t-morphotomy { --p1: #ff2e3d; --p2: #7d0a10; --p3: #080506; --p4: #d3c7be; }

.theme-caption {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 12px;
}

.theme-name {
    display: block;
    color: var(--ink);
    font: 500 13px/1.35 var(--sans);
    letter-spacing: -.005em;
    transition: color .2s var(--ease);
}

.theme-note {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font: 400 11.5px/1.5 var(--sans);
}

.caption-arrow {
    flex: 0 0 auto;
    padding-top: 2px;
    color: var(--muted);
    font-size: 12px;
    transition: color .2s var(--ease), transform .25s var(--ease);
}

.theme-card:hover .theme-name {
    color: var(--accent-text);
}

.theme-card:hover .caption-arrow {
    color: var(--accent-text);
    transform: translate(2px, -2px);
}

.poster-specimen {
    background: var(--accent);
    color: var(--accent-ink);
}

.poster-specimen::before {
    position: absolute;
    top: -26%;
    right: -18%;
    width: 74%;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent);
    border-radius: 50%;
    content: "";
}

.poster-specimen .specimen-aa {
    position: absolute;
    bottom: -9%;
    left: 3%;
    font: italic 400 48cqw/.72 var(--serif);
    letter-spacing: -.06em;
    transition: transform .8s var(--ease);
}

.poster-specimen .specimen-meta {
    position: absolute;
    top: 12px;
    right: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font: 500 9.5px/1.3 var(--sans);
    opacity: .85;
}

.theme-card:hover .specimen-aa {
    transform: translateY(-5px);
}

.poster-more {
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: var(--ink);
    color: var(--bg);
}

.poster-more::before {
    position: absolute;
    top: -22%;
    right: -22%;
    width: 76%;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--bg) 26%, transparent);
    border-radius: 50%;
    content: "";
}

.poster-more::after {
    z-index: 4;
}

.more-mark {
    font: italic 400 2.4rem/1 var(--serif);
    letter-spacing: -.03em;
}

.more-arrow {
    position: absolute;
    top: 16px;
    right: 18px;
    color: var(--accent);
    font-size: 20px;
    transition: transform .3s var(--ease);
}

.theme-card-more:hover .more-arrow {
    transform: translate(3px, -3px);
}

/* ---------- projects ---------- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(34px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
    margin-top: clamp(34px, 4vw, 52px);
}

.work {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .25s var(--ease);
}

.work:hover {
    border-color: var(--accent);
}

.work-index {
    color: var(--muted);
    font: italic 400 13px/1 var(--serif);
    transition: color .2s var(--ease);
}

.work h3 {
    margin-top: 12px;
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
    line-height: 1.05;
    transition: color .2s var(--ease);
}

.work:hover h3 {
    color: var(--accent-text);
}

.work p {
    max-width: 46ch;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.65;
}

.work-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--muted);
    font: 400 11px/1.4 var(--sans);
}

.work-foot i,
.work-foot span:last-child {
    font-style: normal;
}

.work-foot i {
    color: var(--accent-text);
    font-style: normal;
    margin-left: 4px;
}

.work-more {
    border-top-style: dashed;
}

/* ---------- plugins ---------- */

.plugin-list {
    margin-top: clamp(30px, 4vw, 48px);
}

.plugin {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 168px;
    gap: clamp(18px, 3vw, 32px);
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.plugin:last-child {
    border-bottom: 1px solid var(--line);
}

.plugin-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.plugin-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.1;
}

.plugin:hover .plugin-icon {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.plugin-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.plugin-name {
    font: 400 1.55rem/1.1 var(--serif);
    letter-spacing: -.015em;
    transition: color .2s var(--ease);
}

.plugin:hover .plugin-name {
    color: var(--accent-text);
}

.plugin-desc {
    max-width: 64ch;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
}

.plugin-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-self: end;
    color: var(--muted);
    font: 400 11px/1.4 var(--sans);
    text-align: right;
}

.plugin-meta i {
    color: var(--accent-text);
    font-style: normal;
    font-size: 12px;
    transition: transform .25s var(--ease);
}

.plugin:hover .plugin-meta i {
    transform: translate(3px, -3px);
}

/* ---------- guides ---------- */

.guides {
    padding-bottom: 0;
}

.guide-panel {
    padding: clamp(28px, 4.5vw, 58px);
    background: var(--panel);
}

.guide-head {
    display: block;
}

.guide-head h2 {
    max-width: 14ch;
    font-size: var(--step-section);
}

.guide-head p {
    max-width: 46ch;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 52px);
    margin-top: clamp(32px, 4vw, 52px);
}

.guide {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .25s var(--ease);
}

.guide:hover {
    border-color: var(--accent);
}

.guide-num {
    color: var(--muted);
    font: italic 400 13px/1 var(--serif);
}

.guide h3 {
    margin-top: 12px;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.15;
    transition: color .2s var(--ease);
}

.guide:hover h3 {
    color: var(--accent-text);
}

.guide p {
    max-width: 46ch;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
}

.guide-link {
    margin-top: 20px;
    color: var(--ink);
    font: 400 11.5px/1.4 var(--sans);
}

.guide-link i {
    color: var(--accent-text);
    font-style: normal;
    margin-left: 4px;
    transition: transform .25s var(--ease);
    display: inline-block;
}

.guide:hover .guide-link i {
    transform: translate(2px, -2px);
}

/* ---------- footer ---------- */

.footer {
    padding: clamp(64px, 8vw, 108px) 0 34px;
}

.footer-motto {
    max-width: 22ch;
    color: var(--ink-soft);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -.015em;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(34px, 5vw, 56px);
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.footer-fine,
.footer-links a {
    color: var(--muted);
    font: 400 11px/1.5 var(--sans);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    transition: color .2s var(--ease);
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-links span {
    color: var(--accent-text);
}

/* ---------- index menu ---------- */

.menu {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    padding: 0 var(--gutter) 28px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
    overflow-y: auto;
}

.menu.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-inner {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    min-height: 100%;
    margin: 0 auto;
}

.menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    border-bottom: 1px solid var(--line);
}

.menu-brand {
    font: 400 18px/1 var(--serif);
}

.menu-brand i {
    color: var(--accent-text);
    font-style: italic;
}

.menu-close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
}

.menu-close:hover {
    border-color: var(--accent);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    margin-top: clamp(28px, 8vh, 72px);
}

.menu-nav a {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font: 350 clamp(1.9rem, 6vw, 2.6rem)/1.1 var(--serif);
    letter-spacing: -.02em;
    text-decoration: none;
}

.menu-nav a span {
    color: var(--accent-text);
    font: italic 400 13px/1 var(--serif);
}

.menu-nav a:hover {
    color: var(--accent-text);
}

.menu-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    align-items: center;
    margin-top: auto;
    padding-top: 40px;
}

.menu-foot a,
.menu-foot button {
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font: 400 12px/1.3 var(--sans);
    text-decoration: none;
}

.menu-foot a:hover,
.menu-foot button:hover {
    border-color: var(--accent);
    color: var(--ink);
}

/* ---------- reveal ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        animation: rise .9s var(--ease) both;
    }

    .hero-kicker { animation-delay: .04s; }
    .hero h1 { animation-delay: .1s; }
    .hero-lede { animation-delay: .18s; }
    .hero-links { animation-delay: .26s; }

    .hero-disc {
        animation: rise 1.1s .24s var(--ease) both;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1279px) {
    :root {
        --step-display: clamp(2.6rem, 4.2vw, 3.9rem);
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 40px;
    }

    .theme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1079px) {
    .rail {
        display: none;
    }

    .page {
        margin-left: 0;
        padding-bottom: 64px;
    }

    .mobile-bar {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 76px;
        padding: 0 var(--gutter);
    }

    .mobile-brand {
        display: flex;
        gap: 10px;
        align-items: center;
        text-decoration: none;
        font: 400 17px/1 var(--serif);
    }

    .rail-mark-small {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--line);
        background: var(--bg);
    }

    .dock a,
    .dock button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 58px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--muted);
        cursor: pointer;
        font: 500 10.5px/1 var(--sans);
        text-decoration: none;
    }

    .dock a[aria-current="true"],
    .dock button:hover,
    .dock a:hover {
        color: var(--ink);
    }

    .dock a[aria-current="true"]::before {
        position: absolute;
        top: 11px;
        left: 50%;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--accent);
        content: "";
        transform: translateX(-50%);
    }

    .hero {
        min-height: auto;
        padding-top: 104px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: clamp(28px, 4vw, 44px);
        padding: 30px 0 40px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-disc {
        justify-self: end;
        max-width: 300px;
    }

    .disc-caption {
        text-align: right;
    }

    .collection-label {
        display: none;
    }

    .theme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .container {
        width: min(100% - 40px, var(--container));
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .hero-disc {
        justify-self: center;
        max-width: 340px;
    }

    .disc-caption {
        text-align: center;
    }

    .collection {
        display: none;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .about h2 {
        max-width: none;
    }

    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .work {
        min-height: 0;
    }

    .work-foot {
        padding-top: 18px;
    }

    .plugin {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
        padding: 22px 0;
    }

    .plugin-icon {
        width: 56px;
        height: 56px;
    }

    .plugin-icon svg {
        width: 24px;
        height: 24px;
    }

    .plugin-meta {
        grid-column: 2;
        justify-self: start;
        margin-top: 10px;
        text-align: left;
    }

    .guide-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .guide-head {
        display: block;
    }

    .guide-head p {
        margin-top: 14px;
    }
}

@media (max-width: 699px) {
    :root {
        --step-display: clamp(2.35rem, 10.8vw, 3.2rem);
        --step-heading: clamp(1.95rem, 8.4vw, 2.5rem);
        --step-section: clamp(1.8rem, 7.4vw, 2.2rem);
    }

    .mobile-bar {
        height: 68px;
    }

    .hero {
        padding-top: 92px;
    }

    .hero h1 {
        line-height: 1;
    }

    .hero-kicker {
        font-size: 15.5px;
    }

    .hero-links {
        gap: 20px;
    }

    .hero-disc {
        max-width: 300px;
    }

    .disc-caption {
        font-size: 14px;
    }

    .collection {
        padding: 12px 0 14px;
    }

    .marquee-track span {
        font-size: 16px;
    }

    .marquee-track i {
        margin: 0 10px;
    }

    .section {
        padding-top: 72px;
    }

    .section-intro {
        font-size: 14px;
    }

    .theme-grid {
        gap: 26px 14px;
        margin-top: 30px;
    }

    .theme-caption {
        margin-top: 9px;
        gap: 8px;
    }

    .theme-name {
        font-size: 12px;
    }

    .theme-note {
        font-size: 10.5px;
        line-height: 1.45;
    }

    .caption-arrow {
        font-size: 11px;
    }

    .plugin-name {
        font-size: 1.4rem;
    }

    .guide-panel {
        padding: 24px 20px 28px;
    }

    .guide-head h2 {
        max-width: none;
    }

    .footer {
        padding-top: 64px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        padding-bottom: 20px;
    }

    .menu-nav a {
        font-size: 1.85rem;
    }
}

@media (max-width: 389px) {
    .dock a,
    .dock button {
        font-size: 10px;
    }

    .theme-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
