/* columnist.mib.news
 *
 * The world: a printing house, not a SaaS dashboard. Warm paper, ink, one printer's red,
 * and the owner's emblem — the capital of a classical column — shown large enough to read
 * its construction. The neighbour on this domain (pressa.mib.news) is cold blue with a
 * dark pill navbar and a browser-window card; nothing here may echo it.
 *
 * The display voice is Young Serif and it carries LATIN ONLY: publication names arrive in
 * Cyrillic and in five sets of diacritics, so everything that can hold a name — the wall
 * of titles, the composer, the editor — is set in Wix Madefor Text, which has them.
 */

/* --- faces ---------------------------------------------------------------- */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif-400-latin.de140f3124a8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Madefor";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/madefor-text-400-latin.931e31d6e4f0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Madefor";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/madefor-text-400-latin-ext.76f4c0ecd85a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Madefor";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/madefor-text-400-cyrillic.ff0246d038be.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Madefor";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/madefor-text-600-latin.199f88c3d912.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Madefor";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/madefor-text-600-latin-ext.fd865ab4820e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Madefor";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/madefor-text-600-cyrillic.747d40c433df.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* --- world ---------------------------------------------------------------- */

:root {
  --paper: #f7f2e7;
  --card: #fffdf8;
  --sand: #ece2d0;
  --sand-deep: #e0d3bb;
  --ink: #16120e;
  --ink-2: #4c433a;
  --ink-3: #79705f;
  --rule: #ddd2bc;
  --accent: #ce3a26;
  --accent-deep: #a92a1a;
  --accent-ink: #fff7f2;
  --accent-soft: #f7ddd3;
  --good: #1d6a44;
  --good-soft: #e0efe5;
  --bad: #ab2417;
  --bad-soft: #f8dfda;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 18, 14, 0.05), 0 14px 30px -16px rgba(22, 18, 14, 0.22);
  --shadow-lift: 0 2px 4px rgba(22, 18, 14, 0.06), 0 26px 50px -22px rgba(22, 18, 14, 0.28);

  /* Curves by role, not one curve everywhere. */
  --e-display: cubic-bezier(0.16, 1, 0.3, 1);
  --e-ui: cubic-bezier(0.4, 0, 0.2, 1);

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--sand-deep) var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 "Madefor", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  caret-color: var(--accent);
}

::selection { background: var(--accent-soft); color: var(--ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--sand-deep); border: 3px solid var(--paper); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #cdbb9c; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

a { color: var(--accent-deep); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Young Serif", "Madefor", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* --- masthead and footer --------------------------------------------------- */

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brandmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brandmark:hover { text-decoration: none; }
.brandmark svg, .brandmark img { width: 34px; height: 34px; display: block; }
.brandmark span { font-family: "Young Serif", Georgia, serif; font-size: 1.32rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* The call to action in the masthead is a button first and a nav link second. */
.nav a.button, .nav a.button:hover { color: var(--accent-ink); }
.inline { display: inline; margin: 0; }

.main { flex: 1 0 auto; padding: 0 0 84px; }
.page--desk .main, .page--profile .main, .page--new .main, .page--signin .main,
.page--signup .main, .page--plain .main { padding-top: 46px; }

.footer { border-top: 1px solid var(--rule); background: var(--sand); padding: 34px 0; color: var(--ink-2); font-size: 0.94rem; }
.footer__inner { display: grid; gap: 10px; }
.footer__inner p { margin: 0; max-width: 70ch; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-3); }

/* --- controls --------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 "Madefor", sans-serif; cursor: pointer;
  transition: transform 0.16s var(--e-ui), background 0.16s var(--e-ui), box-shadow 0.16s var(--e-ui);
  box-shadow: 0 1px 2px rgba(169, 42, 26, 0.2), 0 12px 24px -14px rgba(169, 42, 26, 0.7);
}
.button:hover { background: var(--accent-deep); text-decoration: none; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.55; cursor: default; transform: none; }
.button--small { padding: 10px 18px; font-size: 0.94rem; }
.button--quiet { background: var(--card); color: var(--ink); border: 1px solid var(--rule); box-shadow: none; }
.button--quiet:hover { background: #fff; border-color: var(--sand-deep); }
.button--bad { background: var(--bad); box-shadow: none; }

.linklike { background: none; border: 0; padding: 0; color: var(--accent-deep); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.linklike--bad { color: var(--bad); }

.field { display: block; margin: 0 0 22px; }
.field__label { display: block; margin-bottom: 7px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.field__input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); font: inherit;
  transition: border-color 0.15s var(--e-ui), box-shadow 0.15s var(--e-ui);
}
.field__input:hover { border-color: var(--sand-deep); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__input--area { resize: vertical; min-height: 104px; }
.field__input--title { font-family: "Young Serif", Georgia, serif; font-size: 1.45rem; line-height: 1.2; }
.field__hint { display: block; margin-top: 7px; font-size: 0.88rem; color: var(--ink-3); }
.field__hint--offer { color: var(--accent-deep); font-weight: 600; }
.field__error { display: block; margin-top: 7px; font-size: 0.9rem; color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 22px; font-size: 0.96rem; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--accent); }

.alert { padding: 14px 16px; border-radius: var(--r-md); background: var(--sand); margin: 0 0 22px; }
.alert--bad { background: var(--bad-soft); color: #7f1a10; }
.alert--good { background: var(--good-soft); color: #14512f; }

.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 68ch; }
.hint { font-size: 0.9rem; color: var(--ink-3); }
.empty { color: var(--ink-3); padding: 40px 0; }

/* --- home: the hero and its one moving thing --------------------------------- */

.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero__glyph { position: absolute; top: -14%; right: -10%; width: 620px; height: 620px; color: var(--sand-deep); pointer-events: none; }
.hero__glyph svg { width: 100%; height: 100%; display: block; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.3rem); line-height: 0.98; letter-spacing: -0.022em; max-width: 15ch; }
.hero__lead { font-size: 1.16rem; color: var(--ink-2); max-width: 54ch; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero__figures { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 0.96rem; margin: 0; }
.hero__figures strong { color: var(--ink); font-weight: 600; }

/* The byline card: the product in one object. The masthead line changes every few
   seconds, so the page shows what the service does instead of describing it. */
.byline-card {
  position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
  padding: 30px 32px 34px; transform: rotate(-1.1deg); max-width: 430px; margin-left: auto;
}
.byline-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.byline-card__title { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.byline-card__host { color: var(--ink-3); font-size: 0.82rem; }
.byline-card__swap { display: inline-block; will-change: transform, opacity; }
.byline-card__swap.is-out { opacity: 0; transform: translateY(-9px); transition: opacity 0.22s var(--e-ui), transform 0.22s var(--e-ui); }
.byline-card__swap.is-in { animation: swap-in 0.5s var(--e-display) both; }
@keyframes swap-in {
  from { opacity: 0; transform: translateY(11px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.byline-card__label { margin: 18px 0 8px; color: var(--accent-deep); font-size: 0.86rem; font-weight: 600; }
.byline-card__headline { font-family: "Young Serif", Georgia, serif; font-size: 1.56rem; line-height: 1.12; margin: 0 0 16px; }
.byline-card__body { color: var(--ink-2); font-size: 0.98rem; margin: 0 0 22px; }
.byline-card__author { display: flex; align-items: center; gap: 12px; }
.byline-card__face { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--ink-3); }
.byline-card__face svg { width: 26px; height: 26px; }
.byline-card__name { font-weight: 600; }
.byline-card__role { color: var(--ink-3); font-size: 0.86rem; }

/* --- home: the network read two ways ------------------------------------------ */

.section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.section-note { color: var(--ink-2); max-width: 62ch; margin-bottom: 30px; }

/* A language is something the person chooses, so it is a measured scale: the eye compares
   the bars before it reads a single number. */
.scale { padding: 34px 0 64px; }
.scale__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 760px; }
.scale__row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) 46px; align-items: center; gap: 18px;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.scale__name { font-weight: 600; }
.scale__bar { height: 12px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.scale__fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.scale__count { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }

/* A country is a place, so it is a plate with its code stamped on it — a different object,
   not the same list in a second colour. */
.plates { background: var(--sand); padding: 62px 0 68px; }
.plates__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plate {
  background: var(--card); border-radius: var(--r-md); padding: 16px 18px 18px;
  display: grid; gap: 2px; box-shadow: 0 1px 2px rgba(22, 18, 14, 0.05);
  transition: transform 0.16s var(--e-ui), box-shadow 0.16s var(--e-ui);
}
.plate:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plate__code {
  font-family: "Young Serif", Georgia, serif; font-size: 1.7rem; line-height: 1;
  color: var(--accent-deep); letter-spacing: 0.01em;
}
.plate__name { font-weight: 600; margin-top: 6px; }
.plate__count { color: var(--ink-3); font-size: 0.88rem; }

/* --- home: what a column is here ---------------------------------------------- */

.house { background: var(--sand); padding: 66px 0 72px; }
.house__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 30px; }
.house__item p { margin: 0; color: var(--ink-2); }
.house__lead { font-family: "Young Serif", Georgia, serif; font-size: 1.3rem; line-height: 1.22; color: var(--ink); margin: 0 0 10px; }

.closer { padding: 74px 0; }
.closer__panel {
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-lg);
  padding: 52px 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 34px; align-items: center;
}
.closer__panel h2 { color: var(--accent-ink); margin: 0 0 10px; }
.closer__panel p { margin: 0; color: #ffe4d9; max-width: 46ch; }
.closer__panel .button { background: var(--accent-ink); color: var(--accent-deep); box-shadow: none; }
.closer__panel .button:hover { background: #fff; }

/* --- reading pages -------------------------------------------------------------- */

.prose { max-width: 68ch; padding-top: 48px; }
.prose h2 { margin-top: 1.7em; font-size: 1.4rem; }
.prose__lead { color: var(--ink-2); font-size: 1.12rem; }

/* --- forms --------------------------------------------------------------------- */

.form-page { max-width: 480px; }
.form-page h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.form-page__aside { margin-top: 22px; color: var(--ink-2); font-size: 0.96rem; display: flex; gap: 9px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; margin: 0 0 26px; }
.facts dt { color: var(--ink-3); font-size: 0.92rem; }
.facts dd { margin: 0; }
.quote { margin: 0 0 26px; padding: 16px 20px; background: var(--sand); border-radius: var(--r-md); color: var(--ink-2); }
.plain-list { list-style: none; padding: 0; }

/* --- desk ------------------------------------------------------------------------ */

.desk__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.desk__head h1 { margin: 0; }
.desk__limit { color: var(--ink-3); font-size: 0.92rem; }

.panel { padding: 22px 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); margin-bottom: 26px; }
.panel--action { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel--action p { margin: 0; }
.panel--bad { background: var(--bad-soft); box-shadow: none; }
.panel--rules { background: var(--sand); box-shadow: none; }
.panel__title { font-size: 1.05rem; margin-bottom: 6px; }

.archives { display: grid; gap: 44px; }
.archive__title { font-size: 1.35rem; display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.archive__count {
  font-family: "Madefor", sans-serif; font-size: 0.86rem; font-weight: 600; color: var(--ink-3);
  background: var(--sand); border-radius: 999px; padding: 2px 10px;
}
.archive .empty { padding: 18px 0 4px; }

.columns { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.columns__row {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 18px 22px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(22, 18, 14, 0.05);
  transition: box-shadow 0.16s var(--e-ui), transform 0.16s var(--e-ui);
}
.columns__row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.columns__title { font-family: "Young Serif", Georgia, serif; font-size: 1.22rem; color: var(--ink); }
.columns__title:hover { text-decoration: none; color: var(--accent-deep); }
.columns__meta { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 7px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.columns__actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }

.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.79rem; font-weight: 600; background: var(--sand); color: var(--ink-2); }
.tag--published { background: var(--good-soft); color: #14512f; }
.tag--queued { background: #f6e6c8; color: #7a5312; }
.tag--withdrawn { background: var(--bad-soft); color: #7f1a10; }

/* --- profile --------------------------------------------------------------------- */

.profile__grid { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.profile__subtitle { font-family: "Madefor", sans-serif; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 30px 0 12px; }
.profile__photo .profile__subtitle { margin-top: 20px; }
.avatar { width: 176px; height: 176px; border-radius: 50%; overflow: hidden; background: var(--sand); display: grid; place-items: center; box-shadow: var(--shadow); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__empty { font-family: "Young Serif", Georgia, serif; font-size: 3.4rem; color: var(--ink-3); }
.profile__photo-actions { display: flex; align-items: center; gap: 16px; }
.profile__form { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 30px; }
.editions { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.editions__host { color: var(--ink-3); font-size: 0.86rem; }

.cropper { position: fixed; inset: 0; background: rgba(22, 18, 14, 0.62); display: grid; place-items: center; z-index: 20; }
[hidden] { display: none !important; }
.cropper__box { background: var(--card); border-radius: var(--r-lg); padding: 26px; width: min(92vw, 400px); text-align: center; box-shadow: var(--shadow-lift); }
.cropper__box canvas { width: 100%; max-width: 320px; border-radius: 50%; touch-action: none; cursor: grab; }
.cropper__actions { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0 0; }
#cropper-zoom { width: 100%; margin: 14px 0 0; accent-color: var(--accent); }

/* --- choosing an edition ----------------------------------------------------------- */

.new { max-width: 860px; }
.editions-pick { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.editions-pick__row { border-radius: var(--r-lg); background: var(--card); box-shadow: 0 1px 2px rgba(22, 18, 14, 0.05); }
.editions-pick__label { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; cursor: pointer; border-radius: var(--r-lg); transition: box-shadow 0.16s var(--e-ui); }
.editions-pick__label:hover { box-shadow: var(--shadow); }
.editions-pick__label input { margin-top: 5px; accent-color: var(--accent); }
.editions-pick__label:has(input:checked) { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.editions-pick__body { display: grid; gap: 4px; }
.editions-pick__name { font-weight: 600; font-size: 1.06rem; }
.editions-pick__host { font-size: 0.85rem; color: var(--ink-3); }
.editions-pick__brief { font-size: 0.95rem; color: var(--ink-2); }

.field__input--pick { font-size: 1.1rem; padding: 15px; }
.brief { background: var(--sand); border-radius: var(--r-lg); padding: 20px 24px; margin: -6px 0 26px; }
.brief.is-in { animation: brief-in 0.4s var(--e-display) both; }
@keyframes brief-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.brief__host { margin: 0 0 6px; color: var(--ink-3); font-size: 0.88rem; }
.brief__text { margin: 0; color: var(--ink-2); }
.new__form { margin-bottom: 34px; }

.rules__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules__list li { color: var(--ink-2); }
.rules__list--tight { grid-template-columns: 1fr; gap: 12px; font-size: 0.93rem; }

/* --- editor ------------------------------------------------------------------------ */

.editor { padding-top: 30px; }
.editor__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.editor__crumbs, .editor__status { margin: 0; display: flex; gap: 11px; align-items: center; color: var(--ink-3); font-size: 0.92rem; }
.editor__saved { color: var(--good); }
.editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }

.toolbar { display: flex; gap: 7px; margin-bottom: 10px; }
.toolbar button {
  padding: 8px 13px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--card);
  font: inherit; font-size: 0.94rem; cursor: pointer; color: var(--ink-2);
  transition: background 0.15s var(--e-ui), color 0.15s var(--e-ui), border-color 0.15s var(--e-ui);
}
.toolbar button:hover { background: #fff; color: var(--ink); border-color: var(--sand-deep); }
.toolbar button { display: inline-flex; align-items: center; gap: 7px; }
.toolbar svg { display: block; }

.composer {
  min-height: 460px; padding: 26px 30px; border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--card); font-size: 1.1rem; line-height: 1.75; max-width: 72ch;
}
.composer:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer:empty::before { content: attr(data-placeholder); color: var(--ink-3); }
.composer h2 { font-family: "Young Serif", Georgia, serif; font-size: 1.35rem; margin: 1.5em 0 0.45em; }
.composer h3 { font-family: "Young Serif", Georgia, serif; font-size: 1.12rem; margin: 1.4em 0 0.4em; }
.ed-photo { position: relative; margin: 1.7em 0; padding: 0; }
.ed-photo img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.ed-photo figcaption { margin-top: 9px; font-size: 0.9rem; color: var(--ink-2); }
.ed-photo__drop {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(22, 18, 14, 0.74); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}

.side-block { padding: 20px 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 1px 2px rgba(22, 18, 14, 0.05); margin-bottom: 18px; }
.side-block--rules { background: var(--sand); box-shadow: none; }
.side-block__title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; font-family: "Madefor", sans-serif; }
.side-block .field { margin-top: 16px; }
.side-block--actions { display: grid; gap: 12px; }
.side-block__brief { margin: 10px 0 4px; font-size: 0.9rem; color: var(--ink-2); }
.cover { border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; background: var(--sand); }
.cover img { display: block; width: 100%; height: auto; }
.cover__empty { padding: 26px 16px; color: var(--ink-3); font-size: 0.9rem; text-align: center; }

.photo-dialog { border: 0; border-radius: var(--r-lg); padding: 28px; width: min(92vw, 430px); box-shadow: var(--shadow-lift); background: var(--card); color: var(--ink); }
.photo-dialog::backdrop { background: rgba(22, 18, 14, 0.55); }

/* --- narrow ---------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 42px; }
  .byline-card { margin-left: 0; max-width: 100%; }
  .hero__glyph { width: 420px; height: 420px; top: auto; bottom: -6%; right: -20%; }
  .editor__grid { grid-template-columns: 1fr; gap: 26px; }
  .profile__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 56px; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .scale__row { grid-template-columns: 96px minmax(0, 1fr) 34px; gap: 12px; }
  .plates__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .house__grid, .rules__list { grid-template-columns: 1fr; gap: 22px; }
  .closer__panel { grid-template-columns: 1fr; padding: 34px 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .columns__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .desk__head { flex-direction: column; align-items: flex-start; }
  .composer { min-height: 340px; padding: 18px 18px; }
  .masthead .bar { min-height: 64px; flex-wrap: wrap; padding: 10px 0; }
  .nav { gap: 16px; font-size: 0.96rem; }
  .avatar { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
