@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('assets/fonts/CormorantGaramond-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('assets/fonts/CormorantGaramond-Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Krasumashi'; src: url('assets/fonts/Krasumashi-Regular.otf') format('opentype'); font-display: swap; }

/* Studio: the dark, precise room. Ink: the hand-drawn world of the main site. */
:root, [data-skin="studio"] {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --line: #26262a;
  --line-strong: #3a3a40;
  --text: #f3f3f4;
  --muted: #9a9aa2;
  --faint: #6c6c74;
  --action: #3d6bff;
  --action-text: #ffffff;
  --live: #3ccf7a;
  --radius: 10px;
  --card-radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Cormorant', Georgia, serif;
  --hand: var(--font);
  --nav-case: none;
  --cover-filter: none;
  color-scheme: dark;
}
[data-skin="ink"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f6f4;
  --line: #111111;
  --line-strong: #111111;
  --text: #111111;
  --muted: #55555a;
  --faint: #8a8a8f;
  --action: #111111;
  --action-text: #ffffff;
  --live: #1c8a4a;
  --radius: 2px;
  --card-radius: 2px;
  --display: 'Krasumashi', var(--font);
  --hand: 'Krasumashi', var(--font);
  --nav-case: uppercase;
  --cover-filter: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-skin="studio"] .on-ink, [data-skin="ink"] .on-studio { display: none !important; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--panel-2); }
.btn .ti { font-size: 16px; }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
.btn-primary:hover { background: var(--action); filter: brightness(1.12); }
[data-skin="ink"] .btn { font-family: var(--hand); text-transform: uppercase; letter-spacing: .04em; font-weight: 400; font-size: 15px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
[data-skin="ink"] .bar { border-bottom: 0; height: 76px; }
.bar-mark img { height: 30px; width: auto; }
[data-skin="ink"] .bar-mark img { height: 40px; }
.bar-nav { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.bar-nav a { color: var(--muted); text-transform: var(--nav-case); }
.bar-nav a[aria-current="page"] { color: var(--text); font-weight: 500; }
.bar-nav .slash { display: none; }
[data-skin="ink"] .bar-nav { font-family: var(--hand); font-size: 19px; letter-spacing: .05em; gap: 10px; }
[data-skin="ink"] .bar-nav a { color: var(--text); }
[data-skin="ink"] .bar-nav a[aria-current="page"] { font-weight: 400; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
[data-skin="ink"] .bar-nav .slash { display: inline; font-size: 24px; }
.bar-search { flex: 1; max-width: 380px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--faint); }
.bar-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; outline: none; }
.skin { display: inline-flex; padding: 3px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.skin button { border: 0; background: transparent; padding: 5px 10px; border-radius: calc(var(--radius) - 3px); font-size: 12px; color: var(--muted); cursor: pointer; }
.skin button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
[data-skin="ink"] .skin button { font-family: var(--hand); text-transform: uppercase; font-size: 14px; }
[data-skin="ink"] .skin button[aria-pressed="true"] { background: #111; color: #fff; }
.bar-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; }
.brush { display: none; height: 14px; margin: -10px 28px 0; background: url('assets/brush-line.png') center / 100% 100% no-repeat; }
[data-skin="ink"] .brush { display: block; }

/* Profile hero */
.hero { position: relative; margin: 20px 28px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.hero-banner { height: 190px; background: url('assets/banner.jpg') center 40% / cover no-repeat; }
.hero-body { padding: 0 32px 26px; position: relative; }
.hero-id { display: flex; align-items: flex-start; gap: 22px; }
.hero-id > div { padding-top: 16px; }
.hero-avatar { width: 112px; height: 112px; margin-top: -56px; border-radius: 18px; object-fit: cover; background: #fff; border: 4px solid var(--panel); flex: none; }
.hero-figure { display: none; }
.hero-name { margin: 0; font: 400 40px/1.05 var(--display); letter-spacing: -.01em; }
.hero-line { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.hero-chips .pill { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.hero-chips .ti { font-size: 15px; vertical-align: -2px; margin-right: 4px; }
.hero-chips .live { color: var(--live); }
.hero-chips .live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.stats { display: flex; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.stats div { padding: 9px 18px; display: flex; align-items: baseline; gap: 7px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { order: 2; color: var(--muted); font-size: 12px; }
.stats dd { margin: 0; font-weight: 500; font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.socials { display: flex; gap: 6px; margin-right: 6px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel-2); font-size: 15px; }
.socials a.empty { color: var(--faint); border-style: dashed; }

[data-skin="ink"] .hero { border: 0; background: transparent; border-radius: 0; margin-top: 8px; }
[data-skin="ink"] .hero-banner { display: none; }
[data-skin="ink"] .hero-body { margin-top: 0; padding: 18px 4px 22px; }
[data-skin="ink"] .hero-avatar { display: none; }
[data-skin="ink"] .hero-figure { display: block; height: 230px; width: auto; margin: 0 4px -8px -12px; }
[data-skin="ink"] .hero-name { font-size: 54px; letter-spacing: .02em; }
[data-skin="ink"] .hero-line { font-family: 'Cormorant', serif; font-style: italic; font-size: 21px; color: var(--text); }
[data-skin="ink"] .hero-chips { font-family: var(--hand); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: var(--text); }
[data-skin="ink"] .hero-chips .pill { border-radius: 2px; border-color: #111; }
[data-skin="ink"] .stats, [data-skin="ink"] .stats div + div { border-color: #111; border-width: 1.5px; }
[data-skin="ink"] .stats dd { font-family: var(--hand); font-size: 22px; font-weight: 400; }
[data-skin="ink"] .socials a { background: transparent; border-color: #111; }

/* Filters and grid */
main { padding: 0 28px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12.5px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
[data-skin="ink"] .chip { border-radius: 2px; border-color: #111; color: #111; font-family: var(--hand); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }
[data-skin="ink"] .chip[aria-pressed="true"] { color: #fff; }
.count { color: var(--faint); font-size: 12px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding-bottom: 40px; }

.card { position: relative; display: flex; flex-direction: column; border-radius: var(--card-radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; text-align: left; padding: 0; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.site { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; max-width: 75%; padding: 3px 8px 3px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; transition: color .15s, border-color .15s; }
.site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .ti { font-size: 14px; flex: none; }
.site .ti-arrow-up-right { font-size: 12px; }
.site:hover { color: var(--text); border-color: var(--line-strong); }
[data-skin="ink"] .site { border-color: #111; border-radius: 2px; color: #111; }
.p-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-link span { color: var(--faint); font-size: 12px; }
.p-link .ti-arrow-up-right { font-size: 13px; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
[data-skin="ink"] .card { border-width: 1.5px; }
.cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--g, #222); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .35s; filter: var(--cover-filter); }
/* Grain stays one pixel at any size, so it sits over the image instead of in it. */
.grain::after { content: ''; position: absolute; inset: 0; background: url('assets/grain.png') 0 0 / 256px 256px; opacity: .12; pointer-events: none; }
.card:hover .cover img, .card:focus-visible .cover img { filter: none; }
.strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 6px; transition: height .25s; }
.strip span { flex: var(--w, 1); background: var(--c); position: relative; }
.strip span b { position: absolute; left: 6px; bottom: 5px; font: 500 10px/1 var(--font); letter-spacing: .02em; color: var(--t); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.card:hover .strip { height: 30px; }
.card:hover .strip span b { opacity: 1; }
.private { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(10,10,11,.72); color: #fff; font-size: 11px; }
.card-body { padding: 12px 14px 4px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.card-meta .spacer { flex: 1; }
.tag { padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 500; background: var(--g); color: var(--a); }
.badge { width: 22px; height: 22px; border-radius: 5px; background: var(--g); display: grid; place-items: center; }
.badge img { width: 14px; height: 14px; object-fit: contain; }
.card-title { margin: 8px 0 2px; font-size: 14.5px; font-weight: 500; }
.card-sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.card-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; color: var(--faint); font-size: 16px; }
.card-foot .spacer { flex: 1; }
.card-foot .n { min-width: 26px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
[data-skin="ink"] .card-title { font-family: var(--hand); font-weight: 400; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
[data-skin="ink"] .tag { background: transparent; color: #111; border: 1px solid #111; border-radius: 2px; font-family: var(--hand); font-weight: 400; font-size: 13px; text-transform: uppercase; }
[data-skin="ink"] .badge { background: #111; border-radius: 2px; }
[data-skin="ink"] .card-foot .n { border-color: #111; border-radius: 2px; color: #111; }

.slot { border: 1px dashed var(--line-strong); border-radius: var(--card-radius); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--faint); min-height: 300px; font-size: 12.5px; }
.slot .ti { font-size: 22px; display: block; margin: 0 auto 8px; }
.slot code { font-size: 11.5px; color: var(--muted); }
[data-skin="ink"] .slot { border-color: #111; border-width: 1.5px; font-family: var(--hand); font-size: 15px; text-transform: uppercase; }
.empty-state { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

/* Project page */
.project { padding-bottom: 48px; }
.back { margin: 22px 0 16px; }
.p-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.p-brand { background: var(--g); color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 340px; }
.p-brand img.lockup { align-self: flex-start; height: 56px; max-width: 70%; width: auto; object-fit: contain; object-position: left center; }
.p-brand .kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.p-brand h1 { margin: 6px 0 0; font: 400 38px/1.1 var(--display); }
.p-info { padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; }
.p-info p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.facts dt { font-size: 11.5px; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; cursor: copy; background: transparent; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(128,128,128,.3); }
.p-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.p-shots .shot { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.p-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.p-section { margin-top: 30px; }
.p-section h2 { font: 500 15px/1.3 var(--font); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.p-section h2 .note { font-weight: 400; color: var(--faint); font-size: 12px; }
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.chapter { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 13px; }
.chapter .num { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.chapter .st { margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.chapter .st.ready { display: none; }
.book-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.book-frame iframe { display: block; width: 100%; height: 82vh; border: 0; }
.book-missing { padding: 36px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); text-align: center; }
[data-skin="ink"] .p-head, [data-skin="ink"] .book-frame, [data-skin="ink"] .chapter, [data-skin="ink"] .swatch { border-radius: 2px; border-width: 1.5px; }
[data-skin="ink"] .p-section h2 { font-family: var(--hand); font-weight: 400; font-size: 21px; text-transform: uppercase; letter-spacing: .04em; }

/* Strategy on the brand page: the public core and the redacted contents */
.strat .lab { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.core { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); margin-bottom: 14px; }
.core-challenge { padding: 24px 26px; background: var(--g); color: #fff; }
.core-challenge .lab { color: rgba(255,255,255,.72); }
.core-challenge p { margin: 0; max-width: 760px; font: 400 23px/1.4 'Cormorant', Georgia, serif; }
/* Two blocks a row; a block alone on its row stretches to fill it. */
.core-grid { display: flex; flex-wrap: wrap; margin-right: -1px; }
.core-block { flex: 1 1 40%; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.core-block.wide { flex-basis: 100%; }
.core-block h3 { margin: 0 0 6px; font: 400 22px/1.2 var(--display); }
.core-block p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.core-block.line p { color: var(--text); font: italic 400 24px/1.3 'Cormorant', Georgia, serif; }
.core-list { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.core-list:last-child { border-bottom: 0; }
.core-list ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; counter-reset: c; }
.core-list li { display: flex; flex-direction: column; gap: 3px; counter-increment: c; }
.core-list li strong { font-weight: 500; font-size: 14px; }
.core-list li strong::before { content: counter(c, decimal-leading-zero) '  '; color: var(--faint); font-weight: 400; font-size: 12px; }
.core-list li span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.redacted { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--panel); }
.red-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 12px; margin-bottom: 8px; }
.red-head .lab { margin: 0; }
.red-list { margin: 0; padding: 0; list-style: none; }
.red-list li { display: grid; grid-template-columns: 30px minmax(140px, 1.1fr) minmax(0, 2fr) 76px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.red-list .num { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.red-list .bars { display: flex; flex-direction: column; gap: 5px; }
.red-list .bars i { display: block; height: 7px; border-radius: 2px; background: var(--text); opacity: .82; }
.red-list .w { text-align: right; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.red-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.red-foot p { margin: 0; color: var(--muted); font-size: 13px; max-width: 520px; }
[data-skin="ink"] .core, [data-skin="ink"] .redacted { border-radius: 2px; border: 1.5px solid #111; }
[data-skin="ink"] .core-block, [data-skin="ink"] .core-grid, [data-skin="ink"] .core-list, [data-skin="ink"] .red-list li, [data-skin="ink"] .red-foot { border-color: #111; }
[data-skin="ink"] .strat .lab { font-family: var(--hand); font-size: 14px; color: #111; }
[data-skin="ink"] .core-challenge .lab { color: #fff; }
[data-skin="ink"] .red-list .bars i { border-radius: 0; opacity: 1; }

/* Method page */
.method { padding-bottom: 56px; max-width: 980px; }
.m-head { padding: 8px 0 26px; border-bottom: 1px solid var(--line); }
.m-intro { margin: 14px 0 0; max-width: 680px; font: 400 21px/1.55 'Cormorant', Georgia, serif; }
.m-note { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.m-steps { margin: 0; padding: 0; list-style: none; }
.m-step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.m-num { font: 400 46px/1 var(--display); color: var(--faint); }
.m-step h2 { margin: 0 0 8px; font: 500 18px/1.3 var(--font); }
.m-step p { margin: 0; max-width: 640px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.m-out { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; }
.m-seen { margin-top: 30px; }
.m-seen h2 { margin: 0 0 6px; font: 500 15px/1.3 var(--font); }
.m-seen p { margin: 0 0 14px; color: var(--muted); }
.m-brands { display: flex; gap: 8px; flex-wrap: wrap; }
[data-skin="ink"] .m-head, [data-skin="ink"] .m-step { border-color: #111; }
[data-skin="ink"] .m-num { color: #111; }
[data-skin="ink"] .m-step h2 { font-family: var(--hand); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
[data-skin="ink"] .m-out { border-radius: 2px; border-color: #111; }
.ed-grid > .wide { grid-column: 1 / -1; }

/* Profile page: a reading page that replaces the PDF */
.profile { padding-bottom: 56px; }
.pr-head { display: flex; align-items: flex-end; gap: 28px; padding: 8px 0 30px; border-bottom: 1px solid var(--line); }
.pr-figure { height: 170px; width: auto; flex: none; background: #fff; border-radius: 14px; padding: 8px; }
.pr-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pr-name { margin: 0; font: 400 52px/1.02 var(--display); letter-spacing: -.01em; }
.pr-aka { margin: 6px 0 0; font: italic 400 21px/1.3 'Cormorant', Georgia, serif; color: var(--muted); }
.pr-titles { margin: 14px 0 0; font-size: 13px; letter-spacing: .04em; color: var(--text); }
.pr-titles span { color: var(--faint); }
.pr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 34px; align-items: start; }
.pr-text { max-width: 680px; }
.pr-text p { margin: 0 0 30px; font: 400 21px/1.62 'Cormorant', Georgia, serif; color: var(--text); }
.pr-text p:first-child::first-letter { float: left; font-size: 66px; line-height: .86; padding: 6px 10px 0 0; }
.pr-close { display: block; margin-top: 14px; padding-left: 18px; border-left: 2px solid var(--line-strong); border-radius: 0; font-style: italic; color: var(--muted); }
.pr-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pr-side section { width: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pr-side h2 { margin: 0 0 12px; font: 500 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pubs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pubs li { display: flex; flex-direction: column; gap: 3px; }
.pub-title { font-size: 13.5px; line-height: 1.45; }
.pub-title a { border-bottom: 1px solid var(--line-strong); }
.pub-title a:hover { border-color: var(--text); }
.pub-title .ti { font-size: 12px; margin-left: 3px; }
.pub-meta { font-size: 12px; color: var(--faint); }
.pr-manuscript p { margin: 0 0 14px; font: italic 400 18px/1.45 'Cormorant', Georgia, serif; }
.pr-ids { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pr-ids dt { font-size: 11.5px; color: var(--faint); }
.pr-ids dd { margin: 2px 0 0; }
.pr-ids a { border-bottom: 1px solid var(--line-strong); }
[data-skin="ink"] .pr-head { border-bottom: 1.5px solid #111; }
[data-skin="ink"] .pr-figure { padding: 0; border-radius: 0; }
[data-skin="ink"] .pr-name { font-size: 64px; letter-spacing: .02em; }
[data-skin="ink"] .pr-titles, [data-skin="ink"] .pr-kicker, [data-skin="ink"] .pr-side h2 { font-family: var(--hand); text-transform: uppercase; font-size: 16px; letter-spacing: .05em; color: #111; }
[data-skin="ink"] .pr-side section { border-radius: 2px; border: 1.5px solid #111; }
[data-skin="ink"] .pr-close { border-left-color: #111; }

/* Editor (#/edit) */
.editor { padding: 26px 0 40px; max-width: 920px; }
.ed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ed-title { margin: 0; font: 400 40px/1.05 var(--display); }
.ed-sub { margin: 8px 0 0; color: var(--muted); }
.ed-head-tools { display: flex; gap: 8px; }
.ed-card { padding: 22px 24px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ed-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 15px/1.3 var(--font); }
.ed-note { font-weight: 400; color: var(--faint); font-size: 12px; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ed-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ed-field.wide { grid-column: 1 / -1; }
.ed-field em { font-style: normal; color: var(--faint); }
.ed-field input, .ed-field textarea, .ed-field select, .ed-unlock input {
  width: 100%; padding: 9px 11px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--panel-2); color: var(--text); font: 400 14px/1.5 var(--font); }
.ed-field textarea { resize: vertical; }
.ed-field input:focus, .ed-field textarea:focus, .ed-field select:focus, .ed-unlock input:focus { outline: 2px solid var(--action); outline-offset: 0; border-color: transparent; }
.ed-field [aria-invalid] { border-color: #e5484d; }
.ed-err { color: #e5484d; font-size: 12px; }
.ed-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; align-self: end; padding-bottom: 8px; }
.ed-toggle input { width: 16px; height: 16px; accent-color: var(--action); }
.ed-row { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ed-row:last-of-type { margin-bottom: 14px; }
.ed-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 500; }
.ed-row-tools { display: flex; gap: 4px; }
.ed-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); }
.ed-icon:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.ed-icon:disabled { opacity: .35; cursor: default; }
.ed-brand { border-top: 1px solid var(--line); }
.ed-brand summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 500; }
.ed-brand summary::-webkit-details-marker { display: none; }
.ed-brand summary .ti { margin-left: auto; transition: transform .2s; }
.ed-brand[open] summary .ti { transform: rotate(180deg); }
.ed-brand .ed-grid { padding-bottom: 18px; }
.ed-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); }
.ed-images { display: grid; gap: 22px; }
.ed-image { display: flex; flex-direction: column; gap: 10px; }
.ed-image + .ed-image { padding-top: 22px; border-top: 1px solid var(--line); }
.ed-image-head { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ed-image-head span { color: var(--faint); font-size: 12px; }
.ed-image-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
.ed-focus { position: relative; justify-self: start; max-width: 100%; cursor: crosshair; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); line-height: 0; }
.ed-focus.fixed { cursor: default; }
.ed-focus img { max-height: 200px; width: auto; max-width: 100%; user-select: none; }
.ed-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.ed-focus.fixed .ed-dot { display: none; }
.ed-crop { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); }
.ed-crop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-crop.avatar { width: 140px; aspect-ratio: 1; border-radius: 18px; }
.ed-crop.banner { aspect-ratio: 1200 / 190; }
.ed-image-note { margin: 0; font-size: 12px; color: var(--faint); }
.ed-image-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-lock { max-width: 480px; }
.ed-lock p { color: var(--muted); margin: 0 0 14px; }
.ed-unlock { display: flex; gap: 8px; }
.ed-lock-err { color: #e5484d !important; margin-top: 12px !important; font-size: 13px; }
.ed-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); }
.ed-status { margin-right: auto; color: var(--muted); font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
[data-skin="ink"] .ed-card, [data-skin="ink"] .ed-bar { border-radius: 2px; border: 1.5px solid #111; }
[data-skin="ink"] .ed-field input, [data-skin="ink"] .ed-field textarea, [data-skin="ink"] .ed-field select, [data-skin="ink"] .ed-unlock input { border-radius: 2px; border-color: #111; background: #fff; }
[data-skin="ink"] .ed-title { font-size: 48px; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.foot img { height: 26px; width: auto; }

@media (max-width: 900px) {
  .bar { gap: 12px; padding: 0 16px; }
  .bar-nav, .bar-contact span { display: none; }
  .hero, main { margin-left: 16px; margin-right: 16px; }
  main { padding: 0; }
  .hero-body { padding: 0 18px 20px; }
  .hero-id { flex-direction: column; align-items: flex-start; gap: 12px; }
  .p-head { grid-template-columns: 1fr; }
  .p-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-layout { grid-template-columns: 1fr; gap: 28px; }
  .pr-side { position: static; }
  .pr-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pr-figure { height: 130px; }
  .pr-name, [data-skin="ink"] .pr-name { font-size: 38px; }
  .pr-text p { font-size: 19px; }
  .ed-grid, .ed-image-row { grid-template-columns: 1fr; }
  .core-block { flex-basis: 100%; }
  .red-list li { grid-template-columns: 26px minmax(0, 1fr) 64px; }
  .red-list .bars { grid-column: 2 / 3; grid-row: 2; }
  .m-step { grid-template-columns: 52px minmax(0, 1fr); }
  .m-num { font-size: 32px; }
  .ed-card { padding: 18px 16px; }
  .ed-bar { flex-wrap: wrap; }
  .ed-status { flex-basis: 100%; }
  .brush { margin: -10px 16px 0; }
}
@media (max-width: 560px) {
  .bar-search, .bar-avatar { display: none; }
  .bar-contact { margin-left: auto; }
  .hero-name { font-size: 32px; }
  [data-skin="ink"] .hero-name { font-size: 42px; }
  [data-skin="ink"] .hero-figure { height: 150px; }
  .stats { width: 100%; }
  .stats div { flex: 1; padding: 9px 10px; flex-direction: column; gap: 0; }
  .stats dt { order: 2; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
