/* ==========================================================================
   Feidaoli Notes — editorial personal site
   Themes: light / dark / sepia.  All layout is responsive without a framework.
   ========================================================================== */

:root {
    --font-sans: "Inter", "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", "SimSun", "宋体", Georgia, serif;
    --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow: 0 18px 50px rgba(24, 32, 25, 0.08);
    --header-height: 76px;
    --container: 1180px;
}

:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f0e8;
    --bg-soft: #eee9df;
    --surface: #fbf8f1;
    --surface-raised: #fffdf8;
    --surface-muted: #ebe5d9;
    --text: #182019;
    --text-soft: #394239;
    --muted: #727b73;
    --faint: #9aa199;
    --line: #d8d1c3;
    --line-strong: #b9b09f;
    --accent: #c25b35;
    --accent-strong: #a64522;
    --accent-soft: #f2dfd4;
    --green: #2f6b55;
    --green-soft: #dcebe1;
    --ink: #172019;
    --ink-contrast: #f6f1e7;
    --band-bg: #172019;
    --band-text: #f5f0e5;
    --selection: #f0c9b7;
    --grid-line: rgba(24, 32, 25, 0.05);
    --header-bg: rgba(244, 240, 232, 0.84);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1411;
    --bg-soft: #121a15;
    --surface: #151d17;
    --surface-raised: #1a241d;
    --surface-muted: #202b23;
    --text: #edf1e8;
    --text-soft: #ccd4c8;
    --muted: #909b91;
    --faint: #68736a;
    --line: #2b382f;
    --line-strong: #445347;
    --accent: #ef8c63;
    --accent-strong: #ffa27d;
    --accent-soft: #34231c;
    --green: #7fc9aa;
    --green-soft: #17372b;
    --ink: #e8eee3;
    --ink-contrast: #121812;
    --band-bg: #151f19;
    --band-text: #ecf1e7;
    --selection: #5e3c2a;
    --grid-line: rgba(237, 241, 232, 0.045);
    --header-bg: rgba(15, 20, 17, 0.84);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

[data-theme="sepia"] {
    color-scheme: light;
    --bg: #efe4cf;
    --bg-soft: #e9ddc5;
    --surface: #f8efdd;
    --surface-raised: #fcf5e8;
    --surface-muted: #e3d5bb;
    --text: #3a2e21;
    --text-soft: #574735;
    --muted: #7e6c55;
    --faint: #a08b6e;
    --line: #d4c2a4;
    --line-strong: #b7a17e;
    --accent: #a44b2b;
    --accent-strong: #833a1e;
    --accent-soft: #ecd4bf;
    --green: #5d6b49;
    --green-soft: #e0e2cf;
    --ink: #35281c;
    --ink-contrast: #f8efdd;
    --band-bg: #35281c;
    --band-text: #f4ead8;
    --selection: #ddc09a;
    --grid-line: rgba(58, 46, 33, 0.055);
    --header-bg: rgba(239, 228, 207, 0.86);
}

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

[hidden] {
    display: none !important;
}

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

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(194, 91, 53, 0.07), transparent 34rem),
        radial-gradient(circle at 90% 18%, rgba(47, 107, 85, 0.06), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

::selection {
    background: var(--selection);
    color: var(--text);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.22;
    text-wrap: balance;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--ink-contrast);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

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

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.rule {
    display: block;
    height: 1px;
    flex: 1;
    background: var(--line);
}

/* Buttons ----------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--accent);
    color: #fff9f1;
}

.button--primary:hover {
    background: var(--accent-strong);
}

.button--ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.button--ghost:hover {
    border-color: var(--line-strong);
    background: var(--surface);
}

.button--wide {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
    color: var(--accent);
    border-color: currentColor;
}

.button-reset {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.mobile-logout {
    margin: 0;
}

.mobile-logout button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.text-link .icon {
    width: 15px;
    height: 15px;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-soft);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a:hover .arrow-link,
.arrow-link:hover {
    background: var(--ink);
    color: var(--ink-contrast);
    transform: translateX(2px);
}

/* Header ------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(23, 32, 25, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 48px));
    height: 100%;
    margin-inline: auto;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--ink-contrast);
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 42px;
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-7deg);
}

.brand-mark span {
    color: var(--accent);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.brand-copy strong {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.primary-nav a {
    padding: 6px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: 0 1px 6px rgba(20, 30, 22, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text-soft);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--text);
}

.icon-button .icon {
    width: 17px;
    height: 17px;
}

.mobile-menu-button {
    display: none;
}

.theme-picker {
    position: relative;
}

.theme-trigger {
    border-color: transparent;
}

.theme-swatch {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg) 0 48%, var(--accent) 52%);
    border: 1px solid var(--line-strong);
}

.theme-swatch--light {
    background: #f4f0e8;
    border: 1px solid #cfc5b5;
}

.theme-swatch--dark {
    background: #172019;
    border: 1px solid #4a554a;
}

.theme-swatch--sepia {
    background: #e8d8b8;
    border: 1px solid #b9a17e;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 128px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.theme-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    text-align: left;
}

.theme-menu button:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.account-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.account-link:hover {
    background: var(--surface);
}

.account-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 142px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.account-menu:hover .account-popover,
.account-menu:focus-within .account-popover {
    display: block;
}

.account-popover a,
.account-popover button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    text-align: left;
}

.account-popover a:hover,
.account-popover button:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.login-link {
    padding: 7px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.login-link:hover {
    color: var(--text);
}

.nav-cta {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ink-contrast);
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-family: var(--font-serif);
    font-weight: 700;
    object-fit: cover;
}

.avatar--small {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.avatar--large {
    width: 46px;
    height: 46px;
    font-size: 18px;
}

.avatar--hero {
    width: 126px;
    height: 126px;
    font-size: 46px;
    border: 1px solid var(--line);
}

.avatar--xlarge {
    width: 94px;
    height: 94px;
    font-size: 34px;
    border: 1px solid var(--line);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--bg);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
}

.mobile-nav-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav nav a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
}

.mobile-nav nav a span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
}

.mobile-nav-footer {
    display: flex;
    gap: 24px;
    margin-top: auto;
    padding-top: 30px;
    color: var(--muted);
    font-size: 13px;
}

/* Search modal ------------------------------------------------------------ */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.search-modal[hidden] {
    display: none;
}

.search-backdrop,
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 14, 0.58);
    backdrop-filter: blur(6px);
}

.search-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100% - 36px));
    max-height: 72vh;
    overflow: auto;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.search-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.search-form input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 32px);
}

.search-form input::placeholder {
    color: var(--faint);
}

.search-hint {
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.search-results {
    min-height: 50px;
}

.search-empty {
    padding: 18px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.search-result .icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

/* Flash messages ---------------------------------------------------------- */
.flash-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(380px, calc(100% - 32px));
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: 10px;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    color: var(--text-soft);
    font-size: 12px;
}

.flash--error {
    border-left-color: var(--accent);
}

.flash button {
    display: inline-flex;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.flash .icon {
    width: 14px;
    height: 14px;
}

/* Hero -------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
    gap: clamp(30px, 7vw, 100px);
    align-items: end;
    padding-top: clamp(64px, 10vw, 122px);
    padding-bottom: clamp(56px, 8vw, 100px);
}

.hero-title {
    max-width: 820px;
    margin-left: -0.055em;
    font-size: clamp(56px, 10vw, 112px);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 0.99;
}

.hero-lead {
    max-width: 480px;
    margin-top: 30px;
    color: var(--text-soft);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.hero-stats {
    display: flex;
    gap: clamp(26px, 5vw, 58px);
    margin-top: clamp(40px, 7vw, 70px);
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.hero-stats div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hero-stats strong {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
}

.hero-stats span {
    color: var(--muted);
    font-size: 11px;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.now-card {
    display: block;
    padding: 25px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--ink-contrast);
    box-shadow: var(--shadow);
    transform: rotate(1.2deg);
    transition: transform 0.35s ease;
}

.now-card:hover {
    transform: rotate(0deg) translateY(-3px);
}

.now-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: color-mix(in srgb, var(--ink-contrast) 62%, transparent);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.now-card-top time {
    margin-left: auto;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7fc9aa;
    box-shadow: 0 0 0 4px rgba(127, 201, 170, 0.12);
}

.status-dot--muted {
    background: var(--faint);
    box-shadow: none;
}

.now-card-category {
    margin-top: 28px;
    color: #a9c7b8;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.now-card h2 {
    margin-top: 4px;
    color: var(--ink-contrast);
    font-size: clamp(25px, 2.4vw, 34px);
    letter-spacing: -0.04em;
}

.now-card > p:not(.now-card-category) {
    margin-top: 12px;
    color: color-mix(in srgb, var(--ink-contrast) 64%, transparent);
    font-size: 12px;
    line-height: 1.75;
}

.now-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--ink-contrast);
    font-size: 11px;
    font-weight: 600;
}

.now-card-link .icon {
    width: 15px;
    height: 15px;
}

.aside-note {
    padding: 10px 23px 14px;
    border-left: 1px solid var(--line);
}

.aside-note-mark {
    display: block;
    height: 28px;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 46px;
    line-height: 0.9;
}

.aside-note p {
    color: var(--text-soft);
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.75;
}

.aside-note-sign {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
}

/* Featured story ---------------------------------------------------------- */
.featured-section {
    padding-bottom: clamp(58px, 9vw, 110px);
}

.section-kicker-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section-kicker-row .eyebrow {
    margin: 0;
    flex: 0 0 auto;
}

.section-count {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.section-kicker-row .text-link {
    flex: 0 0 auto;
}

.feature-story {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
    min-height: 370px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, border-color 0.3s ease;
}

.feature-story:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.feature-copy {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 5vw, 55px);
}

.feature-copy h2 {
    max-width: 680px;
    margin-top: 24px;
    font-size: clamp(32px, 4.4vw, 55px);
    letter-spacing: -0.055em;
    line-height: 1.14;
}

.feature-copy > p {
    max-width: 560px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
    padding-top: 35px;
    color: var(--muted);
    font-size: 11px;
}

.feature-arrow {
    position: absolute;
    right: 40%;
    bottom: 32px;
    display: none;
}

.feature-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 20%, rgba(194, 91, 53, 0.52), transparent 35%),
        linear-gradient(145deg, #1c3327, #152019 58%, #392119);
    color: #f1eadc;
}

.feature-number {
    position: absolute;
    top: 12px;
    left: 22px;
    color: rgba(249, 242, 229, 0.18);
    font-family: var(--font-serif);
    font-size: 138px;
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 1;
}

.feature-word {
    position: absolute;
    left: 34px;
    bottom: 38px;
    color: rgba(249, 242, 229, 0.9);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    line-height: 2;
}

.feature-stamp {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 5px 8px;
    border: 1px solid rgba(249, 242, 229, 0.25);
    border-radius: 3px;
    color: rgba(249, 242, 229, 0.55);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
}

/* Content split / cards --------------------------------------------------- */
.content-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 305px;
    gap: clamp(34px, 6vw, 84px);
    align-items: start;
    padding-bottom: clamp(60px, 9vw, 120px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(30px, 3.3vw, 44px);
    letter-spacing: -0.045em;
}

.section-heading .eyebrow {
    margin-bottom: 7px;
}

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

.post-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    transition: transform 0.28s ease, background-color 0.28s ease,
        border-color 0.28s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--surface);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    min-height: 244px;
    padding: 23px;
}

.post-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.04em;
}

.category-label {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-card h3 {
    margin-top: 25px;
    font-size: 24px;
    letter-spacing: -0.04em;
    line-height: 1.3;
}

.post-card > .post-card-link > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.post-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--muted);
    font-size: 10px;
}

.post-card-bottom .arrow-link {
    width: 29px;
    height: 29px;
}

.post-card-bottom .icon {
    width: 14px;
    height: 14px;
}

.archive-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-family: var(--font-serif);
    font-size: 19px;
}

.archive-link:hover {
    color: var(--accent);
}

.archive-link .arrow-link {
    width: 35px;
    height: 35px;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 46px;
}

.side-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 66%, transparent);
}

.about-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-card-head h3 {
    font-size: 20px;
}

.about-card-head .eyebrow {
    margin-bottom: 1px;
}

.about-card > p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
}

.about-card .text-link {
    margin-top: 16px;
}

.side-card-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.side-index {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 11px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tag-color, var(--accent));
}

.tag span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.tag:hover {
    border-color: var(--tag-color, var(--accent));
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 8%, transparent);
    color: var(--text);
}

.side-quote {
    padding: 25px 22px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--ink-contrast);
}

.side-quote .eyebrow {
    color: color-mix(in srgb, var(--ink-contrast) 54%, transparent);
}

.side-quote p {
    margin-top: 28px;
    color: var(--ink-contrast);
    font-family: var(--font-serif);
    font-size: 25px;
    line-height: 1.5;
}

/* Project band ------------------------------------------------------------ */
.project-band {
    padding: clamp(60px, 8vw, 108px) 0;
    background: var(--band-bg);
    color: var(--band-text);
}

.project-band .eyebrow,
.project-band .text-link {
    color: color-mix(in srgb, var(--band-text) 58%, transparent);
}

.project-band .rule {
    background: color-mix(in srgb, var(--band-text) 18%, transparent);
}

.project-band .text-link:hover {
    color: var(--band-text);
}

.project-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 12px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 229, 0.15);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    color: var(--band-text);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.065);
}

.project-image {
    height: 190px;
    overflow: hidden;
    background: #0d1510;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.86;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.035);
    opacity: 1;
}

.project-card--wide .project-image {
    height: 230px;
}

.project-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 23px;
}

.project-copy .eyebrow {
    color: color-mix(in srgb, var(--band-text) 45%, transparent);
}

.project-copy h2 {
    margin-top: 5px;
    color: var(--band-text);
    font-size: clamp(24px, 2.6vw, 36px);
}

.project-copy p {
    margin-top: 9px;
    color: color-mix(in srgb, var(--band-text) 62%, transparent);
    font-size: 12px;
    line-height: 1.8;
}

.project-copy .arrow-link {
    position: absolute;
    right: 22px;
    top: 22px;
    border-color: rgba(245, 240, 229, 0.25);
    color: var(--band-text);
}

.project-card:hover .arrow-link {
    background: var(--band-text);
    color: var(--band-bg);
}

.project-visual {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 190px;
    padding: 18px 22px;
    background:
        radial-gradient(circle at 70% 20%, rgba(194, 91, 53, 0.55), transparent 40%),
        linear-gradient(145deg, #253e2f, #1a2a1e);
}

.project-visual-number {
    color: rgba(245, 240, 229, 0.16);
    font-family: var(--font-serif);
    font-size: 100px;
    font-weight: 700;
    letter-spacing: -0.09em;
    line-height: 0.8;
}

.project-visual-label {
    color: rgba(245, 240, 229, 0.66);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.8;
    text-align: right;
}

/* Products ---------------------------------------------------------------- */
.software-section {
    padding-top: clamp(60px, 8vw, 106px);
    padding-bottom: clamp(60px, 8vw, 106px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.product-card-link {
    display: block;
}

.product-cover {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-muted);
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-cover img {
    transform: scale(1.035);
}

.product-platform {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(10, 16, 12, 0.7);
    color: #f0eadf;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.product-card-body {
    padding: 17px;
}

.product-version {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.product-card h3 {
    margin-top: 15px;
    font-size: 21px;
    letter-spacing: -0.035em;
}

.product-card-body > p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.product-price {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
}

.product-card-footer .arrow-link {
    width: 29px;
    height: 29px;
}

.product-card-footer .icon {
    width: 14px;
    height: 14px;
}

.cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--green-soft), var(--surface-muted));
    color: var(--green);
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 700;
}

/* Generic page headers ---------------------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-top: clamp(55px, 8vw, 100px);
    padding-bottom: clamp(40px, 5vw, 66px);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    font-size: clamp(45px, 7vw, 84px);
    letter-spacing: -0.075em;
    line-height: 1.02;
}

.page-header-lead {
    max-width: 600px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.page-header-mark {
    color: color-mix(in srgb, var(--text) 11%, transparent);
    font-family: var(--font-serif);
    font-size: clamp(80px, 13vw, 180px);
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 0.75;
}

.page-header-mark--text {
    font-family: var(--font-serif);
    font-size: clamp(64px, 10vw, 140px);
}

.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 21px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--line);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.filter-tab span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.filter-tab:hover {
    color: var(--text);
}

.filter-tab.is-active {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.inline-search {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 190px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
}

.inline-search .icon {
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.inline-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
}

.inline-search input::placeholder {
    color: var(--faint);
}

/* Archive list ------------------------------------------------------------ */
.archive-list {
    padding-top: 10px;
}

.archive-item {
    border-bottom: 1px solid var(--line);
}

.archive-item-link {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 40px;
    gap: 22px;
    align-items: start;
    padding: 29px 0;
    transition: padding-left 0.25s ease;
}

.archive-item-link:hover {
    padding-left: 7px;
}

.archive-number {
    padding-top: 3px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
}

.archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.archive-main h2 {
    margin-top: 8px;
    font-size: clamp(26px, 3.3vw, 40px);
    letter-spacing: -0.05em;
}

.archive-item-link:hover h2 {
    color: var(--accent);
}

.archive-main > p {
    max-width: 720px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--faint);
    font-size: 10px;
}

.archive-arrow {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
    color: var(--muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.archive-item-link:hover .archive-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.archive-arrow .icon {
    width: 19px;
    height: 19px;
}

/* Pagination -------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 35px 0 70px;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-button:hover {
    border-color: var(--line);
    color: var(--text);
}

.pagination-button.is-current {
    background: var(--ink);
    color: var(--ink-contrast);
}

.pagination-button.is-disabled {
    opacity: 0.25;
}

.pagination-button .icon {
    width: 14px;
    height: 14px;
}

/* Empty states ------------------------------------------------------------ */
.empty-state {
    grid-column: 1 / -1;
    padding: 70px 20px;
    text-align: center;
}

.empty-state span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.empty-state h2 {
    margin-top: 10px;
    font-size: 32px;
}

.empty-state p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state .button {
    margin-top: 20px;
}

.empty-state--large {
    padding: 110px 20px;
}

/* Search page ------------------------------------------------------------- */
.search-page {
    padding-top: 40px;
    padding-bottom: 80px;
}

.search-page-form {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.search-page-form > .icon {
    width: 19px;
    height: 19px;
    color: var(--muted);
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-serif);
    font-size: 19px;
}

.search-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0 17px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

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

.search-suggestions {
    padding-top: 45px;
}

.search-suggestions .tag-cloud {
    margin-top: 16px;
}

/* Article ----------------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.1s linear;
}

.article-page {
    padding-top: 27px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 30px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: var(--faint);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 250px;
    justify-content: center;
    gap: clamp(35px, 7vw, 100px);
    align-items: start;
    padding-bottom: 80px;
}

.article-header {
    padding-bottom: 35px;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin-top: 19px;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.065em;
    line-height: 1.12;
}

.article-deck {
    max-width: 680px;
    margin-top: 20px;
    color: var(--text-soft);
    font-family: var(--font-serif);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 19px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 10px;
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-weight: 600;
}

.article-cover {
    margin-top: 30px;
    overflow: hidden;
    border-radius: var(--radius);
}

.article-cover img {
    width: 100%;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 33px;
}

.share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.share-row .eyebrow {
    margin: 0;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.share-button:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.share-button .icon {
    width: 14px;
    height: 14px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.author-card > .icon {
    margin-left: auto;
    color: var(--muted);
}

.author-card h2 {
    margin-top: 2px;
    font-size: 23px;
}

.author-card p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.article-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 34px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.article-pagination a {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.article-pagination a:hover strong {
    color: var(--accent);
}

.article-pagination .eyebrow {
    margin: 0;
    font-size: 8px;
}

.article-pagination strong {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.article-pagination-next {
    text-align: right;
}

.article-side {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    padding-top: 8px;
}

.toc-card {
    padding: 18px;
    border-left: 1px solid var(--line);
}

.toc-card .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc a {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.toc a:hover,
.toc a.is-active {
    color: var(--accent);
}

.toc .toc-sub {
    padding-left: 12px;
    font-size: 10px;
}

.article-side-note {
    margin-top: 24px;
    padding: 18px 0 0 18px;
    border-left: 1px solid var(--line);
}

.article-side-note p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* Prose ------------------------------------------------------------------- */
.prose {
    padding-top: 37px;
    color: var(--text-soft);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.prose > * + * {
    margin-top: 1.15em;
}

.prose h2 {
    margin-top: 2.2em;
    margin-bottom: 0.65em;
    color: var(--text);
    font-size: clamp(25px, 3vw, 32px);
    letter-spacing: -0.035em;
}

.prose h3 {
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    color: var(--text);
    font-size: 22px;
}

.prose p {
    margin-top: 1.1em;
}

.prose a {
    color: var(--accent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.prose strong {
    color: var(--text);
    font-weight: 700;
}

.prose em {
    color: var(--text-soft);
}

.prose ul,
.prose ol {
    padding-left: 1.35em;
}

.prose li {
    margin-top: 0.45em;
}

.prose li::marker {
    color: var(--accent);
}

.prose blockquote {
    margin: 1.8em 0;
    padding: 8px 0 8px 23px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
}

.prose code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--surface-muted);
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 0.82em;
}

.prose pre {
    overflow-x: auto;
    margin: 1.7em 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--ink-contrast);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.75;
}

.prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.prose hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.prose img {
    margin: 1.8em auto;
    border-radius: var(--radius-sm);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 13px;
}

.prose th,
.prose td {
    padding: 9px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.prose th {
    background: var(--surface-muted);
}

/* Comments ---------------------------------------------------------------- */
.comments {
    margin-top: 65px;
    padding-top: 33px;
    border-top: 1px solid var(--line);
}

.comments-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.comments-head h2 {
    font-size: 30px;
}

.comments-head h2 span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
}

.comment-form {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.comment-form-author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 10px;
}

.comment-form-author strong {
    color: var(--text-soft);
}

.comment-form textarea {
    display: block;
    width: 100%;
    min-height: 98px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: 0;
    background: var(--surface);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.7;
}

.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.comment-form-hint {
    color: var(--muted);
    font-size: 10px;
}

.comment-form-hint.is-error {
    color: var(--accent);
}

.comment-form-hint.is-success {
    color: var(--green);
}

.comment-form .button {
    min-height: 38px;
    padding: 8px 16px;
}

.reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 10px;
}

.reply-context[hidden] {
    display: none;
}

.reply-context button {
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    font-size: 10px;
    text-decoration: underline;
}

.comment-login-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

.comment-login-prompt .button {
    min-height: 36px;
    padding: 7px 14px;
}

.comment-list {
    margin-top: 27px;
}

.comment {
    display: flex;
    gap: 11px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.comment--reply {
    padding: 12px 0 12px 14px;
    border-left: 1px solid var(--line);
    border-bottom: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.comment-header a:hover {
    color: var(--accent);
}

.comment-header time {
    margin-left: auto;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 400;
}

.author-badge {
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 8px;
    font-weight: 500;
}

.comment-text {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.8;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.comment-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
}

.comment-actions button:hover {
    color: var(--accent);
}

.comment-reply-mark {
    color: var(--faint);
    font-size: 9px;
}

.comment-empty {
    padding: 25px 0;
    color: var(--muted);
    font-size: 12px;
}

.replies {
    margin-top: 8px;
}

/* Share QR modal ---------------------------------------------------------- */
.share-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-qr-modal[hidden] {
    display: none;
}

.qr-card {
    position: relative;
    z-index: 1;
    width: min(330px, calc(100% - 36px));
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-card img {
    width: 220px;
    height: 220px;
    margin: 12px auto;
    border-radius: 8px;
}

.qr-card p {
    color: var(--muted);
    font-size: 11px;
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Auth -------------------------------------------------------------------- */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding-top: 50px;
    padding-bottom: 70px;
}

.auth-visual {
    max-width: 480px;
}

.auth-visual h1 {
    font-size: clamp(45px, 7vw, 78px);
    letter-spacing: -0.07em;
    line-height: 1.08;
}

.auth-visual > p:not(.eyebrow) {
    max-width: 360px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.auth-quote {
    display: flex;
    gap: 13px;
    margin-top: 55px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.auth-quote span {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 47px;
    line-height: 0.8;
}

.auth-quote p {
    color: var(--text-soft);
    font-family: var(--font-serif);
    font-size: 16px;
}

.auth-card {
    padding: clamp(25px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card-head h2 {
    margin-top: 2px;
    font-size: 37px;
}

.auth-card-head p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.auth-card-head a {
    color: var(--accent);
}

.auth-form {
    margin-top: 27px;
}

.auth-form .button {
    margin-top: 6px;
}

.auth-footnote {
    margin-top: 18px;
    color: var(--faint);
    font-size: 10px;
    text-align: center;
}

.auth-shell--narrow {
    display: flex;
    justify-content: center;
    min-height: auto;
    padding-top: 80px;
}

.auth-shell--narrow .auth-card {
    width: min(480px, 100%);
}

/* Forms ------------------------------------------------------------------- */
.form-row {
    margin-bottom: 17px;
}

.form-row > label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
}

.required {
    margin-left: 3px;
    color: var(--accent);
}

.field-input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: 0;
    background: var(--surface-raised);
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

textarea.field-input {
    line-height: 1.7;
}

select.field-input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px;
}

.form-row--checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.form-row--checkbox > label {
    order: 2;
    margin: 0;
}

.form-row--checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.field-help {
    margin-top: 4px;
    color: var(--faint);
    font-size: 9px;
    line-height: 1.6;
}

.field-help a {
    color: var(--accent);
}

.field-error,
.form-errors p {
    margin-top: 4px;
    color: var(--accent-strong);
    font-size: 10px;
}

.form-errors {
    margin-bottom: 14px;
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

.has-error .field-input {
    border-color: var(--accent);
}

/* Account ----------------------------------------------------------------- */
.account-page {
    padding-top: clamp(45px, 7vw, 80px);
    padding-bottom: 80px;
}

.account-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 19px;
}

.account-identity h1 {
    font-size: clamp(33px, 5vw, 56px);
    letter-spacing: -0.06em;
}

.account-identity p:not(.eyebrow) {
    max-width: 520px;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.account-head-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-head-actions .button {
    min-height: 38px;
    padding: 7px 14px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
    gap: 17px;
    padding-top: 24px;
}

.account-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-form {
    padding-top: 13px;
}

.account-form .button {
    margin-top: 5px;
}

.panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.panel-head .eyebrow {
    margin-bottom: 4px;
}

.panel-head h2 {
    font-size: 23px;
}

.panel-count {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.order-mini-list {
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}

.order-mini-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.order-mini-list a:last-child {
    border-bottom: 0;
}

.order-mini-list a:hover {
    color: var(--accent);
}

.order-mini-list small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.order-mini-list p {
    padding-top: 10px;
    font-size: 11px;
}

.account-tip p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* Author ------------------------------------------------------------------ */
.author-page {
    padding-top: clamp(55px, 8vw, 100px);
    padding-bottom: 90px;
}

.author-hero {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 45px;
    border-bottom: 1px solid var(--line);
}

.author-hero-copy h1 {
    font-size: clamp(40px, 6vw, 65px);
    letter-spacing: -0.065em;
}

.author-bio {
    max-width: 580px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 13px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.author-meta a {
    color: var(--accent);
}

.author-page .section-heading {
    margin-top: 37px;
}

/* Dashboard --------------------------------------------------------------- */
.dashboard {
    padding-top: clamp(45px, 7vw, 75px);
    padding-bottom: 80px;
}

.dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.dashboard-head h1 {
    font-size: clamp(42px, 6vw, 64px);
    letter-spacing: -0.065em;
}

.dashboard-head p:not(.eyebrow) {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-stats {
    margin-top: 18px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    min-height: 118px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat-card span {
    color: var(--muted);
    font-size: 10px;
}

.stat-card strong {
    margin-top: auto;
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1;
}

.stat-card small {
    margin-top: 7px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.stat-card--accent {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: var(--accent-soft);
}

.stat-card--accent strong {
    color: var(--accent-strong);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
    gap: 14px;
    margin-top: 14px;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-links {
    display: flex;
    flex-direction: column;
}

.dashboard-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 12px;
}

.dashboard-links a:last-child {
    border-bottom: 0;
}

.dashboard-links a:hover {
    color: var(--accent);
}

.dashboard-links strong {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
}

.dashboard-note p {
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 16px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    white-space: nowrap;
}

.data-table th {
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: left;
}

.data-table td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td:first-child {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-soft);
    font-weight: 600;
}

.data-table a:hover {
    color: var(--accent);
}

.data-table code {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions form {
    display: inline;
}

.table-actions a,
.table-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
}

.table-actions a:hover,
.table-actions button:hover {
    color: var(--accent);
}

.table-empty {
    padding: 35px 8px !important;
    text-align: center;
    color: var(--muted) !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 500;
}

.status-badge--published,
.status-badge--paid {
    background: var(--green-soft);
    color: var(--green);
}

.status-badge--draft,
.status-badge--pending {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.status-badge--cancelled {
    background: var(--surface-muted);
    color: var(--muted);
}

/* Editor ------------------------------------------------------------------ */
.editor-page {
    padding-top: clamp(45px, 6vw, 75px);
    padding-bottom: 80px;
}

.editor-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.editor-head h1 {
    margin-top: 14px;
    font-size: clamp(35px, 5vw, 54px);
    letter-spacing: -0.06em;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 270px;
    gap: 15px;
    align-items: start;
    padding-top: 22px;
}

.editor-main {
    padding: 27px;
}

.editor-side {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.editor-help h2 {
    font-size: 21px;
}

.editor-help p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.editor-help code {
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--surface-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.editor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-actions .button {
    min-height: 42px;
}

/* Product detail ---------------------------------------------------------- */
.product-detail-page {
    padding-top: 28px;
    padding-bottom: 90px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.back-link:hover {
    color: var(--accent);
}

.back-link .icon {
    width: 14px;
    height: 14px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(30px, 6vw, 75px);
    align-items: center;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line);
}

.product-detail-visual {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.product-detail-visual > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.cover-placeholder--large {
    aspect-ratio: 3 / 2;
    font-size: 120px;
}

.product-visual-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.product-detail-copy .eyebrow {
    margin-bottom: 5px;
}

.product-detail-copy h1 {
    font-size: clamp(40px, 5.5vw, 67px);
    letter-spacing: -0.065em;
}

.product-deck {
    max-width: 520px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.product-buy-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 25px;
}

.product-price--large {
    font-size: 34px;
}

.original-price {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: line-through;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    margin-top: 22px;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.6;
}

.feature-list .icon {
    width: 13px;
    height: 13px;
    margin-top: 2px;
    color: var(--green);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.product-delivery {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 17px;
    color: var(--faint);
    font-size: 10px;
    line-height: 1.6;
}

.product-delivery .icon {
    width: 13px;
    height: 13px;
    margin-top: 1px;
}

.product-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: clamp(30px, 6vw, 75px);
    align-items: start;
    padding-top: 45px;
}

.product-description {
    padding-top: 0;
    font-size: 15px;
}

.product-description > h2:first-child {
    margin-top: 0;
    font-family: var(--font-serif);
}

.purchase-panel {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.purchase-note {
    margin: 10px 0 17px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.purchase-form .form-row {
    margin-bottom: 11px;
}

.purchase-form .button {
    min-height: 43px;
    margin-top: 5px;
}

.purchase-contact {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    color: var(--faint);
    font-size: 9px;
}

.purchase-contact a {
    color: var(--accent);
}

.related-products {
    margin-top: 60px;
}

.shop-note {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
    padding-top: 55px;
    padding-bottom: 75px;
    border-top: 1px solid var(--line);
}

.shop-note h2 {
    margin-top: 3px;
    font-size: 35px;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
}

.process-list li {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.process-list li span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
}

.process-list li p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* Orders ------------------------------------------------------------------ */
.order-page {
    padding-top: clamp(45px, 7vw, 80px);
    padding-bottom: 80px;
}

.order-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.order-head h1 {
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.06em;
}

.order-head p:not(.eyebrow) {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.order-head .status-badge {
    padding: 6px 11px;
    font-size: 10px;
}

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 280px;
    gap: 15px;
    align-items: start;
    padding-top: 24px;
}

.order-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-side h2 {
    margin: 3px 0 9px;
    font-size: 23px;
}

.order-side p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.order-side .text-link {
    margin-top: 12px;
    font-size: 10px;
}

.order-main .product-price {
    font-size: 20px;
}

.order-product {
    display: flex;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.order-product img {
    width: 100px;
    height: 67px;
    border-radius: 7px;
    object-fit: cover;
}

.order-product p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
}

.order-status-panel {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 17px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

.order-status-panel--paid {
    background: var(--green-soft);
}

.order-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-strong);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
}

.order-status-panel--paid .order-status-icon {
    color: var(--green);
}

.order-status-panel h3 {
    font-size: 18px;
}

.order-status-panel p {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.75;
}

.order-status-panel code {
    padding: 1px 4px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    font-family: var(--font-mono);
    font-size: 10px;
}

.payment-area {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
    padding-top: 21px;
}

.payment-qr {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: center;
}

.payment-qr img {
    width: 100%;
    border-radius: 5px;
}

.payment-qr figcaption {
    padding-top: 7px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
}

.payment-placeholder {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}

.payment-placeholder h3 {
    margin-top: 3px;
    font-size: 19px;
}

.payment-placeholder p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.payment-placeholder .button {
    min-height: 35px;
    margin-top: 10px;
    padding: 7px 13px;
    font-size: 10px;
}

.payment-contact-qr {
    width: 150px;
    margin: 12px 0 2px;
    border-radius: 5px;
}

.order-details {
    display: flex;
    flex-direction: column;
}

.order-details > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.order-details > div:last-child {
    border-bottom: 0;
}

.order-details dt {
    color: var(--faint);
    font-size: 9px;
}

.order-details dd {
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    text-align: right;
}

.order-main > .button--wide {
    margin-top: 20px;
}

.download-note {
    margin-top: 10px;
    color: var(--faint);
    font-size: 9px;
    text-align: center;
}

/* About / projects / contact pages --------------------------------------- */
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 70px;
    align-items: end;
    padding-top: clamp(60px, 9vw, 110px);
    padding-bottom: 55px;
    border-bottom: 1px solid var(--line);
}

.about-hero h1 {
    font-size: clamp(50px, 8vw, 96px);
    letter-spacing: -0.08em;
    line-height: 1.02;
}

.about-lead {
    max-width: 620px;
    margin-top: 24px;
    color: var(--text-soft);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.85;
}

.about-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.about-caption {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(40px, 7vw, 95px);
    padding-top: 45px;
    padding-bottom: 90px;
}

.about-prose {
    padding-top: 0;
    max-width: 720px;
}

.about-prose h2:first-child {
    margin-top: 0;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-facts dl {
    margin-top: 10px;
}

.about-facts dl > div {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.about-facts dl > div:last-child {
    border-bottom: 0;
}

.about-facts dt {
    color: var(--faint);
    font-size: 9px;
}

.about-facts dd {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.6;
}

.about-facts a {
    color: var(--accent);
}

.about-contact p {
    margin: 8px 0 15px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.projects-page {
    padding-bottom: 80px;
}

.work-item {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(35px, 7vw, 90px);
    align-items: center;
    padding: 58px 0;
    border-bottom: 1px solid var(--line);
}

.work-item--reverse .work-image {
    order: 2;
}

.work-image {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.work-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.work-index {
    position: absolute;
    top: 12px;
    left: 13px;
    padding: 4px 7px;
    border-radius: 3px;
    background: rgba(18, 28, 20, 0.65);
    color: #f2ecdf;
    font-family: var(--font-mono);
    font-size: 8px;
    backdrop-filter: blur(8px);
}

.work-copy h2 {
    margin-top: 7px;
    font-size: clamp(31px, 4vw, 47px);
    letter-spacing: -0.055em;
}

.work-copy > p:not(.eyebrow) {
    max-width: 500px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.work-meta span {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.work-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
}

.work-image--shop {
    background: #18261d;
}

.shop-visual {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 375px;
    padding: 30px;
    background:
        radial-gradient(circle at 74% 22%, rgba(194, 91, 53, 0.58), transparent 38%),
        linear-gradient(145deg, #294534, #18261d 60%, #3b251b);
}

.shop-visual-number {
    color: rgba(246, 241, 231, 0.17);
    font-family: var(--font-serif);
    font-size: 140px;
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 0.8;
}

.shop-visual-copy {
    color: rgba(246, 241, 231, 0.7);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.13em;
    line-height: 1.9;
    text-align: right;
}

.project-principles {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    padding-top: 65px;
    padding-bottom: 40px;
}

.project-principles h2 {
    margin-top: 4px;
    font-size: 35px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.principles-grid span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
}

.principles-grid h3 {
    margin-top: 10px;
    font-size: 21px;
}

.principles-grid p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* Project hero pages ------------------------------------------------------ */
.project-hero {
    background: var(--band-bg);
    color: var(--band-text);
}

.project-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(35px, 7vw, 95px);
    align-items: center;
    padding-top: clamp(55px, 8vw, 95px);
    padding-bottom: clamp(55px, 8vw, 95px);
}

.project-hero h1 {
    margin-top: 7px;
    color: var(--band-text);
    font-size: clamp(55px, 9vw, 108px);
    letter-spacing: -0.08em;
    line-height: 0.99;
}

.project-hero p:not(.eyebrow) {
    max-width: 480px;
    margin-top: 22px;
    color: color-mix(in srgb, var(--band-text) 66%, transparent);
    font-size: 14px;
    line-height: 1.9;
}

.project-hero .eyebrow {
    color: color-mix(in srgb, var(--band-text) 52%, transparent);
}

.project-hero .button--ghost {
    border-color: rgba(246, 241, 231, 0.28);
    color: var(--band-text);
}

.project-hero .button--ghost:hover {
    background: rgba(255, 255, 255, 0.07);
}

.project-hero-visual {
    overflow: hidden;
    border: 1px solid rgba(246, 241, 231, 0.17);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.project-hero-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.project-hero-visual figcaption {
    padding: 10px 13px;
    color: color-mix(in srgb, var(--band-text) 48%, transparent);
    font-family: var(--font-mono);
    font-size: 8px;
}

.project-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: color-mix(in srgb, var(--band-text) 52%, transparent);
    font-family: var(--font-mono);
    font-size: 9px;
}

.project-body {
    padding-bottom: 80px;
}

.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 65px 0;
    border-bottom: 1px solid var(--line);
}

.project-feature-grid > div {
    padding: 0 22px;
    border-right: 1px solid var(--line);
}

.project-feature-grid > div:first-child {
    padding-left: 0;
}

.project-feature-grid > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.feature-number {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
}

.project-feature-grid h2 {
    margin-top: 10px;
    font-size: 25px;
}

.project-feature-grid p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.project-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(35px, 7vw, 85px);
    align-items: center;
    padding: 65px 0;
    border-bottom: 1px solid var(--line);
}

.project-showcase figure {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.project-showcase img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.project-showcase figcaption {
    padding: 9px 12px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
}

.project-showcase h2 {
    margin-top: 7px;
    font-size: clamp(32px, 4vw, 46px);
}

.project-showcase p:not(.eyebrow) {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 17px;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 7px;
    color: var(--text-soft);
    font-size: 11px;
}

.check-list .icon {
    width: 13px;
    height: 13px;
    margin-top: 2px;
    color: var(--green);
}

.project-showcase .button {
    margin-top: 22px;
}

.project-cta {
    padding: 65px 0 25px;
    text-align: center;
}

.project-cta h2 {
    margin-top: 5px;
    font-size: clamp(34px, 5vw, 55px);
}

.project-cta > p {
    max-width: 500px;
    margin: 11px auto 0;
    color: var(--muted);
    font-size: 13px;
}

.project-cta .hero-actions {
    justify-content: center;
}

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: clamp(45px, 8vw, 120px);
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding-top: 70px;
    padding-bottom: 80px;
}

.contact-copy h1 {
    font-size: clamp(50px, 8vw, 92px);
    letter-spacing: -0.08em;
    line-height: 1.03;
}

.contact-lead {
    max-width: 500px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    margin-top: 33px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

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

.contact-link span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.contact-link span .icon {
    width: 14px;
    height: 14px;
}

.contact-link strong {
    margin-left: auto;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
}

.contact-link > .icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.contact-link:hover strong {
    color: var(--accent);
}

.contact-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.contact-qr {
    width: 100%;
    max-width: 230px;
    margin: 13px auto;
    border-radius: 7px;
}

.contact-card p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.contact-sign {
    display: block;
    margin-top: 14px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
}

/* Error pages ------------------------------------------------------------- */
.error-page {
    min-height: calc(100vh - var(--header-height));
    padding-top: 13vh;
    text-align: center;
}

.error-code {
    display: block;
    color: color-mix(in srgb, var(--text) 11%, transparent);
    font-family: var(--font-serif);
    font-size: clamp(110px, 22vw, 260px);
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 0.7;
}

.error-page h1 {
    margin-top: 25px;
    font-size: clamp(32px, 5vw, 50px);
}

.error-page > p:not(.eyebrow) {
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.error-page .hero-actions {
    justify-content: center;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
    margin-top: 30px;
    background: var(--band-bg);
    color: var(--band-text);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 45px;
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
    padding: 58px 0 45px;
}

.footer-brand .brand-mark {
    background: var(--band-text);
    color: var(--band-bg);
}

.footer-brand .brand-copy strong {
    color: var(--band-text);
}

.footer-brand .brand-copy small {
    color: color-mix(in srgb, var(--band-text) 48%, transparent);
}

.footer-brand > p {
    max-width: 260px;
    margin-top: 20px;
    color: color-mix(in srgb, var(--band-text) 52%, transparent);
    font-size: 11px;
    line-height: 1.8;
}

.footer-label {
    display: block;
    margin-bottom: 13px;
    color: color-mix(in srgb, var(--band-text) 38%, transparent);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.15em;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-column a {
    color: color-mix(in srgb, var(--band-text) 67%, transparent);
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--band-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
    padding: 17px 0 22px;
    border-top: 1px solid rgba(245, 240, 229, 0.13);
    color: color-mix(in srgb, var(--band-text) 35%, transparent);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.03em;
}

.footer-bottom a:hover {
    color: var(--band-text);
}

/* Reveal animation -------------------------------------------------------- */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
        transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

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

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
    .primary-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(245px, 0.75fr);
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(56px, 9vw, 88px);
    }

    .content-split {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 40px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card--wide {
        grid-column: 1 / -1;
    }

    .project-card--wide .project-image {
        height: 250px;
    }

    .article-layout {
        grid-template-columns: minmax(0, 760px);
    }

    .article-side {
        display: none;
    }

    .product-content-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 68px;
    }

    .container,
    .footer-inner,
    .footer-bottom {
        width: min(var(--container), calc(100% - 40px));
    }

    .header-inner {
        width: calc(100% - 30px);
    }

    .brand-copy small {
        display: none;
    }

    .account-link span:last-child,
    .login-link {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .hero-title {
        max-width: 650px;
        font-size: clamp(50px, 13vw, 80px);
    }

    .hero-aside {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
        gap: 15px;
        align-items: center;
    }

    .now-card {
        transform: none;
    }

    .feature-story {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        min-height: 190px;
    }

    .feature-number {
        font-size: 110px;
    }

    .content-split {
        grid-template-columns: 1fr;
    }

    .side-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 0;
    }

    .side-quote {
        grid-column: 1 / -1;
    }

    .project-band {
        padding: 55px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card--wide {
        grid-column: auto;
    }

    .project-card,
    .project-card--wide {
        min-height: 300px;
    }

    .project-card--wide .project-image,
    .project-image {
        height: 200px;
    }

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

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

    .page-header {
        padding-top: 55px;
        padding-bottom: 38px;
    }

    .page-header-mark {
        display: none;
    }

    .archive-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-search {
        width: 100%;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
    }

    .auth-visual {
        max-width: 620px;
    }

    .auth-visual h1 {
        font-size: clamp(42px, 9vw, 64px);
    }

    .auth-quote {
        margin-top: 25px;
    }

    .account-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

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

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-content-grid {
        grid-template-columns: 1fr;
    }

    .purchase-panel {
        position: static;
    }

    .shop-note {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .process-list {
        gap: 15px;
    }

    .order-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 55px;
    }

    .about-portrait {
        align-items: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .work-item,
    .work-item--reverse {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 0;
    }

    .work-item--reverse .work-image {
        order: 0;
    }

    .project-principles {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-hero h1 {
        font-size: clamp(50px, 13vw, 80px);
    }

    .project-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 0;
    }

    .project-feature-grid > div:nth-child(2) {
        border-right: 0;
    }

    .project-feature-grid > div:nth-child(3) {
        padding-left: 0;
    }

    .project-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 45px 0;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 55px;
    }

    .contact-card {
        max-width: 330px;
    }

    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .container,
    .footer-inner,
    .footer-bottom {
        width: calc(100% - 32px);
    }

    .header-inner {
        width: calc(100% - 24px);
        gap: 10px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 20px;
        line-height: 36px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .header-actions {
        gap: 2px;
    }

    .icon-button {
        width: 34px;
        height: 34px;
    }

    .nav-cta {
        padding: 7px 11px;
        font-size: 11px;
    }

    .hero {
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .hero-title {
        font-size: clamp(45px, 15vw, 64px);
        letter-spacing: -0.07em;
    }

    .hero-lead {
        margin-top: 20px;
        font-size: 14px;
    }

    .hero-actions {
        margin-top: 24px;
        gap: 14px;
    }

    .hero-stats {
        margin-top: 33px;
        gap: 22px;
    }

    .hero-stats strong {
        font-size: 22px;
    }

    .hero-aside {
        grid-template-columns: 1fr;
    }

    .now-card {
        padding: 21px;
    }

    .aside-note {
        display: none;
    }

    .section-kicker-row {
        margin-bottom: 14px;
    }

    .section-count {
        display: none;
    }

    .feature-copy {
        padding: 22px;
    }

    .feature-copy h2 {
        margin-top: 18px;
        font-size: 31px;
    }

    .feature-copy > p {
        font-size: 12px;
    }

    .feature-meta {
        gap: 10px;
        padding-top: 24px;
        font-size: 9px;
    }

    .feature-visual {
        min-height: 145px;
    }

    .feature-number {
        top: 0;
        font-size: 80px;
    }

    .feature-word {
        left: 23px;
        bottom: 22px;
        font-size: 10px;
    }

    .post-grid,
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .post-card-link {
        min-height: 210px;
        padding: 20px;
    }

    .post-card h3 {
        font-size: 23px;
    }

    .side-column {
        grid-template-columns: 1fr;
    }

    .side-quote {
        grid-column: auto;
    }

    .project-grid {
        gap: 9px;
    }

    .project-copy {
        padding: 18px;
    }

    .project-copy h2 {
        font-size: 26px;
    }

    .project-card--wide .project-image,
    .project-image {
        height: 160px;
    }

    .product-grid,
    .product-grid--three {
        grid-template-columns: 1fr;
    }

    .product-card-body {
        padding: 15px;
    }

    .page-header {
        padding-top: 42px;
        padding-bottom: 30px;
    }

    .page-header h1 {
        font-size: 45px;
    }

    .page-header-lead {
        margin-top: 11px;
        font-size: 12px;
    }

    .filter-tabs {
        gap: 2px;
    }

    .filter-tab {
        padding: 5px 8px;
        font-size: 10px;
    }

    .archive-item-link {
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 10px;
        padding: 21px 0;
    }

    .archive-arrow {
        display: none;
    }

    .archive-main h2 {
        font-size: 25px;
    }

    .archive-main > p {
        font-size: 11px;
    }

    .archive-meta {
        gap: 8px;
        font-size: 8px;
    }

    .search-page-form {
        gap: 8px;
        padding-left: 12px;
    }

    .search-page-form input {
        font-size: 15px;
    }

    .search-page-form .button {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 11px;
    }

    .search-summary {
        padding-top: 18px;
        font-size: 9px;
    }

    .article-page {
        padding-top: 16px;
    }

    .breadcrumbs {
        padding-bottom: 20px;
    }

    .article-header h1 {
        font-size: 38px;
    }

    .article-deck {
        font-size: 16px;
    }

    .article-meta {
        gap: 7px 12px;
        margin-top: 18px;
        font-size: 9px;
    }

    .prose {
        padding-top: 25px;
        font-size: 16px;
        line-height: 1.9;
    }

    .share-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .author-card {
        flex-wrap: wrap;
        padding: 17px;
    }

    .author-card > .icon {
        display: none;
    }

    .article-pagination {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .article-pagination-next {
        text-align: left;
    }

    .comments {
        margin-top: 45px;
    }

    .comment-header {
        flex-wrap: wrap;
    }

    .comment-header time {
        width: 100%;
        margin-left: 0;
    }

    .comment-form {
        padding: 14px;
    }

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

    .comment-form .button {
        width: 100%;
    }

    .auth-shell {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .auth-visual h1 {
        font-size: 43px;
    }

    .auth-visual > p:not(.eyebrow) {
        margin-top: 16px;
        font-size: 12px;
    }

    .auth-quote {
        display: none;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-card-head h2 {
        font-size: 30px;
    }

    .account-page {
        padding-top: 38px;
    }

    .account-head {
        padding-bottom: 24px;
    }

    .account-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .account-identity h1 {
        font-size: 39px;
    }

    .account-head-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .panel {
        padding: 17px;
    }

    .dashboard {
        padding-top: 35px;
    }

    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 20px;
    }

    .dashboard-head h1 {
        font-size: 42px;
    }

    .stats-grid {
        gap: 7px;
    }

    .stat-card {
        min-height: 100px;
        padding: 13px;
    }

    .stat-card strong {
        font-size: 28px;
    }

    .dashboard-side {
        grid-template-columns: 1fr;
    }

    .editor-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-head h1 {
        font-size: 35px;
    }

    .editor-main {
        padding: 17px;
    }

    .editor-side {
        grid-template-columns: 1fr;
    }

    .product-detail-page {
        padding-top: 17px;
    }

    .product-detail-copy h1 {
        font-size: 39px;
    }

    .product-deck {
        font-size: 12px;
    }

    .product-price--large {
        font-size: 28px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .product-actions {
        gap: 7px;
    }

    .product-actions .button {
        flex: 1;
        min-height: 42px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .payment-area {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .payment-qr {
        max-width: 230px;
    }

    .order-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .order-head h1 {
        font-size: 39px;
    }

    .process-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-hero h1 {
        font-size: 48px;
    }

    .about-lead {
        font-size: 16px;
    }

    .about-side {
        grid-template-columns: 1fr;
    }

    .work-copy h2 {
        font-size: 34px;
    }

    .shop-visual {
        min-height: 280px;
        padding: 22px;
    }

    .shop-visual-number {
        font-size: 90px;
    }

    .project-principles {
        padding-top: 42px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .project-hero-inner {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .project-hero h1 {
        font-size: 50px;
    }

    .project-feature-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 40px 0;
    }

    .project-feature-grid > div,
    .project-feature-grid > div:first-child,
    .project-feature-grid > div:nth-child(3) {
        padding: 0;
        border-right: 0;
    }

    .project-showcase {
        padding: 38px 0;
    }

    .contact-page {
        padding-top: 42px;
    }

    .contact-copy h1 {
        font-size: 48px;
    }

    .contact-card {
        max-width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 45px 0 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding-bottom: 18px;
    }

    .search-dialog {
        padding: 20px;
    }

    .search-form input {
        font-size: 20px;
    }

    .search-hint {
        display: none;
    }

    .flash-stack {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }
}
