/* Moran Karny Portfolio Design System — generated from tokens.json */
:root, [data-theme="paper"] {
  --paper: #f1f1ee;
  --ink: #141414;
  --white: #ffffff;
  --periwinkle: #aeb6ff;
  --periwinkle-tint: #dde0ff;
  --stone-300: #e4e4df;
  --stone-400: #dadad5;
  --stone-500: #b6b6b0;
  --stone-700: #5e5e5a;
  --stone-800: #3a3a38;
  --ash-300: #bdbdb8;
  --ash-400: #a9a9a4;
  --ash-800: #2e2e2c;
  --ground: var(--paper);
  --text: var(--ink);
  --text-body: var(--stone-800);
  --text-muted: var(--stone-700);
  --hairline: var(--stone-400);
  --hairline-strong: var(--stone-500);
  --surface-option: var(--stone-300);
  --accent-label: var(--ink);
  --focus-ring: var(--ink);
}
[data-theme="ink"] {
  --ground: var(--ink);
  --text: var(--paper);
  --text-body: var(--ash-300);
  --text-muted: var(--ash-400);
  --hairline: var(--ash-800);
  --hairline-strong: var(--stone-800);
  --surface-option: var(--ash-800);
  --accent-label: var(--periwinkle);
  --focus-ring: var(--periwinkle);
}
:root {
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-44: 44px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-96: 96px;
  --space-104: 104px;
  --space-120: 120px;
  --radius-thumb: 10px;
  --radius-frame: 12px;
  --radius-card: 14px;
  --radius-option: 18px;
  --radius-panel: 20px;
  --radius-bubble-tail: 6px;
  --radius-bubble: 22px;
  --radius-question: 28px;
  --radius-outcome: 32px;
  --radius-pill: 999px;
  --container-max: 1200px;
  --gutter: 120px;
  --measure-heading: 760px;
  --measure-text: 680px;
  --column-side: 360px;
  --column-media: 792px;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
.hero-title { font-family: var(--font-display); font-size: 88px; line-height: 1.02; font-weight: 300; letter-spacing: -1.76px; }
.closing-title { font-family: var(--font-display); font-size: 76px; line-height: 1.02; font-weight: 300; letter-spacing: -1.52px; }
.stat-value { font-family: var(--font-display); font-size: 60px; line-height: 1; font-weight: 300; letter-spacing: -1.2px; }
.section-title { font-family: var(--font-display); font-size: 54px; line-height: 1.08; font-weight: 300; letter-spacing: -0.81px; }
.outcome { font-family: var(--font-display); font-size: 50px; line-height: 1.08; font-weight: 300; letter-spacing: -0.75px; }
.band-title { font-family: var(--font-display); font-size: 40px; line-height: 1.2; font-weight: 300; letter-spacing: -0.4px; }
.decision-title { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 300; letter-spacing: -0.6px; }
.question-lg { font-family: var(--font-display); font-size: 44px; line-height: 1.15; font-weight: 300; letter-spacing: -0.44px; }
.question { font-family: var(--font-display); font-size: 38px; line-height: 1.18; font-weight: 300; letter-spacing: -0.38px; }
.next-title { font-family: var(--font-display); font-size: 38px; line-height: 1.2; font-weight: 300; letter-spacing: -0.38px; }
.statement { font-family: var(--font-display); font-size: 36px; line-height: 1.15; font-weight: 300; letter-spacing: -0.36px; }
.subsection-title { font-family: var(--font-display); font-size: 30px; line-height: 1.2; font-weight: 300; letter-spacing: -0.3px; }
.question-title { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 400; letter-spacing: -0.28px; }
.note-title { font-family: var(--font-display); font-size: 28px; line-height: 1.2; font-weight: 300; letter-spacing: -0.28px; }
.wordmark { font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 400; }
.lede { font-family: var(--font-sans); font-size: 19px; line-height: 1.6; font-weight: 400; }
.body-lg { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 17px; line-height: 1.6; font-weight: 400; }
.body-sm { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; font-weight: 400; }
.card-title { font-family: var(--font-sans); font-size: 17px; line-height: 1.3; font-weight: 600; }
.card-body { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; font-weight: 400; }
.caption { font-family: var(--font-sans); font-size: 14px; line-height: 1.5; font-weight: 400; }
.nav { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 400; }
.eyebrow { font-family: var(--font-sans); font-size: 14px; line-height: 1.2; font-weight: 400; }
.fact-label { font-family: var(--font-sans); font-size: 13px; line-height: 1.2; font-weight: 400; }
.fact-value { font-family: var(--font-sans); font-size: 16px; line-height: 1.2; font-weight: 400; }
.tab { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 500; }
.chip { font-family: var(--font-sans); font-size: 14px; line-height: 1.2; font-weight: 400; }
.badge { font-family: var(--font-sans); font-size: 13px; line-height: 1.2; font-weight: 600; }
.tag { font-family: var(--font-sans); font-size: 12px; line-height: 1.2; font-weight: 500; }
.button { font-family: var(--font-sans); font-size: 17px; line-height: 1.2; font-weight: 600; }



/* Moran Karny Portfolio — component styles. Every value comes from tokens.css. */
.mk, .mk * { box-sizing: border-box; }
.mk { font-family: var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased; }
.mk h1, .mk h2, .mk h3, .mk p, .mk figure { margin: 0; }
.mk :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.mk-balance { text-wrap: wrap; }

/* Section & container */
.mk-section { background: var(--ground); color: var(--text); padding: var(--space-104) var(--gutter); }
.mk-section--hero { padding: var(--space-120) var(--gutter) var(--space-96); }
.mk-section--closing { padding: 112px var(--gutter) var(--space-40); }
.mk-section__inner { max-width: var(--container-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-48); }
.mk-section--hero .mk-section__inner { gap: var(--space-40); }
.mk-section--closing .mk-section__inner { gap: var(--space-104); }
.mk-section--dense .mk-section__inner { gap: var(--space-64); }

/* Header & footer */
.mk-header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-24); padding: 20px var(--gutter); background: var(--ground); color: var(--text); border-bottom: 1px solid var(--hairline); }
.mk-nav { display: flex; gap: var(--space-28); flex-wrap: wrap; }
.mk-link { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; color: var(--text-body); text-decoration: none; border-radius: 4px; transition: color .15s ease; }
.mk-link:hover { color: var(--text); }
.mk-link[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mk-wordmark { color: var(--text); text-decoration: none; }
.mk-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-24); padding-top: var(--space-24); border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.mk-footer .mk-nav { gap: var(--space-24); }

/* Hero */
.mk-hero { display: flex; gap: var(--space-64); align-items: flex-end; }
.mk-hero__intro { display: flex; flex-direction: column; gap: var(--space-28); max-width: var(--measure-heading); min-width: 0; }
.mk-hero__meta { color: var(--text); }
.mk-hero__title { color: var(--text); }
.mk-hero__lede { color: var(--text); max-width: 640px; }
.mk-thread { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-8); }
.mk-thread__label { color: var(--text); }

/* Facts */
.mk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-32); padding: var(--space-24) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.mk-fact { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.mk-fact__label { color: var(--text-muted); }
.mk-fact__value { color: var(--text); }

/* Bubbles — the signature: a message bubble with one small "tail" corner */
.mk-bubble { display: inline-block; max-width: 100%; background: var(--periwinkle); color: var(--ink); }
.mk-bubble--message { padding: 12px 18px; border-radius: var(--radius-bubble) var(--radius-bubble) var(--radius-bubble-tail) var(--radius-bubble); font: 400 17px/1.4 var(--font-sans); max-width: 376px; }
.mk-bubble--question { padding: 20px 26px; border-radius: var(--radius-question) var(--radius-question) var(--radius-question) 8px; max-width: 672px; }
.mk-bubble--outcome { padding: 22px 30px; border-radius: var(--radius-outcome) var(--radius-outcome) var(--radius-outcome) 8px; max-width: 620px; }

/* Pills, chips, tabs, tags, badges */
.mk-pillnav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.mk-pillnav__label { color: var(--text); margin-right: 0; }
.mk-pill { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); color: var(--text); text-decoration: none; background: transparent; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.mk-pill:hover { border-color: var(--text-muted); }
.mk-pill[aria-current="true"] { background: var(--periwinkle); border-color: var(--periwinkle); color: var(--ink); }

.mk-chip { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; }
.mk-chip--muted { border-color: var(--hairline-strong); color: var(--text-muted); }
.mk-chip--strong { background: var(--text); color: var(--ground); font-weight: 500; }
.mk-chip--accent-outline { border-color: var(--periwinkle); color: var(--text); }
.mk-chip--accent { background: var(--periwinkle); color: var(--ink); font-weight: 500; }
.mk-chips { display: flex; flex-wrap: wrap; gap: var(--space-6); }

.mk-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); background: transparent; color: var(--text); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.mk-tab:hover { border-color: var(--text-muted); }
.mk-tab[aria-selected="true"] { background: var(--periwinkle); border-color: var(--periwinkle); color: var(--ink); }
.mk-tabs { display: flex; flex-wrap: wrap; gap: var(--space-8); }

.mk-tag { display: inline-flex; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--periwinkle-tint); color: var(--ink); white-space: nowrap; }

.mk-badge { display: inline-flex; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; align-self: flex-start; }
.mk-badge--neutral { background: var(--surface-option); color: var(--text-body); }
.mk-badge--shipped { background: var(--ink); color: var(--periwinkle); }

.mk-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--periwinkle); color: var(--ink); font: 600 13px/1 var(--font-sans); }

/* Buttons */
.mk-button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: var(--radius-pill); background: var(--periwinkle); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.mk-button:hover { background: var(--periwinkle-tint); }
.mk-button.mk-button--sm { font-size: 15px; padding: 10px 20px; }
.mk-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); background: transparent; color: var(--text); cursor: pointer; transition: border-color .15s ease; }
.mk-iconbtn:hover:not(:disabled) { border-color: var(--text-muted); }
.mk-iconbtn:disabled { opacity: .4; cursor: default; }
.mk-iconrow { display: flex; gap: var(--space-8); }

/* Band */
.mk-band { background: var(--periwinkle); color: var(--ink); padding: 22px var(--gutter); }
.mk-band__inner { max-width: var(--container-max); margin: 0 auto; }

/* Intro & statement */
.mk-intro { display: flex; flex-direction: column; gap: var(--space-20); }
.mk-intro__title { color: var(--text); max-width: var(--measure-heading); }
.mk-intro--wide .mk-intro__title { max-width: 820px; }
.mk-intro__body { color: var(--text-body); max-width: var(--measure-text); display: flex; flex-direction: column; gap: var(--space-20); }
.mk-intro--decision { gap: var(--space-28); }
.mk-eyebrow { color: var(--text-muted); }
.mk-statement { display: flex; flex-direction: column; gap: var(--space-20); }
.mk-statement--ruled { border-top: 2px solid var(--text); padding-top: var(--space-40); gap: var(--space-14); }
.mk-statement__text { color: var(--text); max-width: 900px; }
.mk-text { color: var(--text-body); max-width: var(--measure-text); }
.mk-text strong { color: var(--text); font-weight: 600; }

/* Stats */
.mk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-40); }
.mk-stat { display: flex; flex-direction: column; gap: var(--space-10); padding-top: 18px; border-top: 2px solid var(--text); min-width: 0; }
.mk-stat__value { color: var(--text); }
.mk-stat__label { color: var(--text-muted); font: 400 15px/1.5 var(--font-sans); }
.mk-stat__source { color: var(--text-muted); font: 400 15px/1.5 var(--font-sans); }

/* Cards */
.mk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }
.mk-card { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-24); background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-card); min-width: 0; }
.mk-card__head { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.mk-card__title { color: var(--ink); }
.mk-card__body { color: var(--stone-700); }

.mk-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-32); }
.mk-reason { display: flex; flex-direction: column; gap: var(--space-6); padding-top: var(--space-14); border-top: 2px solid var(--text); min-width: 0; }
.mk-reason__title { color: var(--text); }
.mk-reason__body { color: var(--text-muted); }

/* Panels */
.mk-dq { background: var(--ground); color: var(--text); border-radius: var(--radius-panel); padding: var(--space-56); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-14); }
.mk-callout { background: var(--periwinkle-tint); color: var(--ink); border-radius: var(--radius-panel); padding: var(--space-44); display: grid; grid-template-columns: var(--column-side) minmax(0, 1fr); gap: var(--space-48); }
.mk-callout__body { color: var(--stone-800); max-width: 660px; }
.mk-callout__body strong { color: var(--ink); font-weight: 600; }

/* Research row */
.mk-row { display: grid; grid-template-columns: var(--column-side) minmax(0, 1fr); gap: var(--space-48); align-items: start; }
.mk-row__text { display: flex; flex-direction: column; gap: var(--space-14); }
.mk-row__title { color: var(--text); }
.mk-row__body { color: var(--text-body); }
.mk-row__media { display: flex; flex-direction: column; gap: var(--space-20); min-width: 0; }
.mk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.mk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-20); }

/* Image frame */
.mk-figure { display: flex; flex-direction: column; gap: var(--space-10); min-width: 0; }
.mk-figure__label { color: var(--text-muted); font: 400 14px/1.2 var(--font-sans); }
.mk-figure__label--shipped { color: var(--accent-label); font-weight: 600; }
.mk-frame { position: relative; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-frame); background: var(--white); }
.mk-frame--hero { border-radius: var(--radius-card); }
.mk-frame--ink { border: 2px solid var(--text); }
.mk-frame--accent { border: 2px solid var(--periwinkle); }
.mk-frame--bare { border: 0; }
.mk-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mk-frame__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--surface-option); color: var(--text-muted); font: 400 14px/1.4 var(--font-sans); text-align: center; padding: var(--space-24); }
.mk-caption { color: var(--text-muted); }
.mk-caption b { color: var(--text); font-weight: 600; }

/* Options */
.mk-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.mk-option { display: flex; flex-direction: column; gap: 18px; padding: var(--space-28); border-radius: var(--radius-option); min-width: 0; }
.mk-option--considered { background: var(--surface-option); }
.mk-option--shipped { background: var(--ground); color: var(--text); }
.mk-option__head { font: 400 15px/1.3 var(--font-sans); color: var(--text-muted); }
.mk-option--shipped .mk-option__head { color: var(--text-body); }
.mk-option__head b { font-weight: 600; color: var(--text); margin-right: 8px; }
.mk-option--shipped .mk-option__head b { color: var(--accent-label); }
.mk-option__notes { margin: 0; padding: 0; list-style: none; font: 400 14px/1.6 var(--font-sans); color: var(--text-body); }
.mk-option__notes li::before { content: "•"; margin-right: 8px; }

/* Flow stepper */
.mk-flow { display: flex; flex-direction: column; gap: var(--space-32); }
.mk-flow__body { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: var(--space-48); align-items: start; }
.mk-flow__notes { display: flex; flex-direction: column; gap: var(--space-24); }
.mk-flow__title { color: var(--text); }
.mk-flow__list { display: flex; flex-direction: column; gap: var(--space-20); }
.mk-note { display: flex; gap: var(--space-14); align-items: flex-start; }
.mk-note__text { display: flex; flex-direction: column; gap: var(--space-4); }
.mk-note__title { color: var(--text); }
.mk-note__body { color: var(--text-body); }

/* Before / after */
.mk-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
.mk-ba__col { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; }
.mk-ba__text { color: var(--text-body); }

/* Outcome */
.mk-outcome { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mk-outcome__text { color: var(--text-body); max-width: var(--measure-text); }

/* Versions & concepts */
.mk-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); align-items: start; }
.mk-concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.mk-concept { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-concept__title { color: var(--text); }
.mk-concept__body { color: var(--text-muted); }

/* Next case & CTA */
.mk-next { display: flex; align-items: center; gap: var(--space-32); padding: var(--space-24); border: 1px solid var(--hairline); border-radius: var(--radius-panel); color: var(--text); text-decoration: none; transition: border-color .15s ease; }
.mk-next:hover { border-color: var(--hairline-strong); }
.mk-next:hover .mk-next__arrow { transform: translateX(4px); }
.mk-next__thumb { flex: none; width: 200px; height: 126px; border-radius: var(--radius-thumb); overflow: hidden; background: var(--white); }
.mk-next__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-next__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.mk-next__eyebrow { color: var(--text-muted); }
.mk-next__desc { color: var(--text-body); font: 400 16px/1.5 var(--font-sans); }
.mk-next__arrow { flex: none; color: var(--accent-label); transition: transform .2s ease; }
.mk-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-28); }
.mk-cta__title { color: var(--text); max-width: 720px; }

@media (prefers-reduced-motion: reduce) { .mk * { transition: none !important; } }

/* Phone */
@media (max-width: 820px) {
  .mk-section, .mk-section--hero, .mk-section--closing, .mk-header, .mk-band { padding-left: 24px; padding-right: 24px; }
  .mk-section { padding-top: 64px; padding-bottom: 64px; }
  .mk-hero { flex-direction: column; align-items: stretch; gap: var(--space-40); }
  .mk-thread { align-items: flex-end; }
  .mk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20); }
  .mk-stats, .mk-cards, .mk-reasons, .mk-options, .mk-ba, .mk-versions, .mk-concepts, .mk-grid-2, .mk-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .mk-row, .mk-callout, .mk-flow__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .mk-dq, .mk-callout { padding: var(--space-28); }
  .mk-next { flex-direction: column; align-items: flex-start; }
  .mk .hero-title { font-size: 52px; letter-spacing: -1px; }
  .mk .closing-title { font-size: 48px; letter-spacing: -0.9px; }
  .mk .section-title { font-size: 38px; letter-spacing: -0.5px; }
  .mk .outcome { font-size: 34px; }
  .mk .stat-value { font-size: 48px; }
  .mk .question, .mk .statement { font-size: 28px; }
  .mk .question-lg { font-size: 32px; letter-spacing: -0.32px; }
  .mk .decision-title, .mk .band-title { font-size: 30px; }
}


