/* ==========================================================================
   olehtsumbek.com
   Serif type, light-gray bands, thin black rules, one dark feature block.
   No animation.
   ========================================================================== */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --band: #eeeeee;
  --hero: #e4e4e4;
  --feature: #161616;
  --muted: #5c5c5c;
  --serif: "Literata", "Noto Serif", "PT Serif", Georgia, "DejaVu Serif", serif;

  --fs-body: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-small: 0.9375rem;
  --fs-nav: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-h1: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.1vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
  --fs-feature: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);

  --gutter: clamp(20px, 5vw, 50px);
  --content: 760px;
  --wide: 1280px;
  --gap: 1.2rem;
  --space: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.has-modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
:where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }
strong { font-weight: 700; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 6px; top: 7px; z-index: 1000; padding: 15px 23px 14px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700;
  text-decoration: none; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header__inner {
  max-width: var(--wide); margin-inline: auto; min-height: 84px; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover .brand__name { text-decoration: underline; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 1.75rem; row-gap: 0.4rem;
  font-size: var(--fs-nav);
}
.nav__link { text-decoration: none; }
.nav__link:hover, .nav__link[aria-current="page"] { text-decoration: underline; }
.nav__open, .nav__close {
  display: none; align-items: center; justify-content: center;
  padding: 12px; margin: -12px; border: 0; background: none; color: inherit; cursor: pointer;
}
.nav__open svg, .nav__close svg { width: 26px; height: 26px; }

@media (max-width: 959px) {
  .site-header__inner { min-height: 68px; }
  .js .nav__open { display: inline-flex; }
  .js .nav__panel { display: none; }
  .js .nav__panel.is-open {
    display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    background: var(--paper); color: var(--ink); padding: 20px var(--gutter) 48px;
  }
  .js .nav__panel.is-open .nav__close { display: inline-flex; position: absolute; top: 20px; right: calc(var(--gutter) - 12px); margin: 0; }
  .js .nav__panel.is-open .nav__list { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-top: 84px; font-size: 1.5rem; }
}

/* -------------------------------------------------------------- blocks */
.rule {
  width: calc(100% - 2 * var(--gutter)); max-width: var(--wide); height: 0;
  margin: var(--space) auto; border: 0; border-top: 1px solid var(--ink);
}
.rule--flush { display: none; }

.hero { background: var(--hero); padding: clamp(56px, 7vw, 112px) var(--gutter); text-align: center; }
.hero__mark { width: clamp(44px, 4vw, 60px); height: auto; margin: 0 auto 1.4rem; }
.hero__title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.015em; }
.hero__meta { margin-top: 1rem; font-style: italic; }

.feature-wrap, .split-wrap { padding-inline: var(--gutter); }
.feature {
  max-width: var(--wide); margin-inline: auto; background: var(--feature); color: #ffffff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.25rem clamp(2rem, 4vw, 4rem); padding: clamp(32px, 5vw, 72px);
}
.feature__label { font-style: italic; }
.feature__date { margin-top: 0.35rem; font-style: normal; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.7); }
.feature__body > * + * { margin-top: 1.25rem; }
.feature__title { font-size: var(--fs-feature); line-height: 1.1; letter-spacing: -0.01em; }
.feature__title a { text-decoration: none; }
.feature__title a:hover { text-decoration: underline; }
.feature__body p { color: rgba(255, 255, 255, 0.88); }

.band { background: var(--band); padding: clamp(40px, 5vw, 72px) var(--gutter); }
.split {
  max-width: var(--wide); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1rem clamp(2rem, 4vw, 4rem);
}
.split__body { max-width: 46rem; }
.split__body > * + * { margin-top: var(--gap); }

@media (max-width: 799px) {
  .feature, .split { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- inner pages */
.site-main { padding-bottom: clamp(56px, 7vw, 96px); }
.container { max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page-head { padding-top: clamp(40px, 5vw, 64px); }
.page-head > * + * { margin-top: 1rem; }
.subtitle, .byline { font-style: italic; }
.section > * + * { margin-top: var(--gap); }

.entries > * + * { margin-top: 1.75rem; }
.entry > * + * { margin-top: 0.25rem; }
.entry__label { font-weight: 700; }
.entry__meta { font-size: var(--fs-small); font-style: italic; color: var(--muted); }

.post-item > * + * { margin-top: 0.6rem; }
.post-meta { font-size: var(--fs-small); color: var(--muted); }

.org-list { list-style: none; padding: 0; }
.org-list > li + li { margin-top: 2.5rem; }
.org-list > li > * + * { margin-top: 0.5rem; }
.org-list h2 { font-size: var(--fs-h3); font-weight: 700; }
.org-list .buttons { margin-top: 1rem; }

.article-body > * + * { margin-top: var(--gap); }
.article-body h2 { font-size: var(--fs-h3); font-weight: 700; margin-top: 2.25rem; }
.article-body ul { padding-left: 1.3em; }
.article-body li + li { margin-top: 0.5rem; }
.disclaimer { font-size: var(--fs-small); font-style: italic; color: var(--muted); }

/* ------------------------------------------------------------- buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; border: 0; border-radius: 9999px;
  background: var(--ink); color: #ffffff;
  font: inherit; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer;
}
.button:hover { background: #3a3a3a; color: #ffffff; text-decoration: none; }
.button--outline { background: transparent; color: var(--ink); border: 1px solid currentColor; padding: calc(0.85rem - 1px) calc(2rem - 1px); }
.button--outline:hover { background: rgba(17, 17, 17, 0.06); color: var(--ink); }
.button--light { background: #ffffff; color: var(--ink); }
.button--light:hover { background: #e6e6e6; color: var(--ink); }
.button--ghost { background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.7); padding: calc(0.85rem - 1px) calc(2rem - 1px); }
.button--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.button[disabled] { opacity: 0.6; cursor: default; }

/* --------------------------------------------------------------- forms */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 1rem; }
.optional { color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; margin: 0; padding: 0.8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #ffffff; border: 1px solid #767676; border-radius: 0;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
::placeholder { color: #767676; opacity: 1; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.subscribe-form input { flex: 1 1 16rem; max-width: 26rem; }
.form-status { font-size: var(--fs-small); min-height: 1.4em; }
.form-status:empty { min-height: 0; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #1e6b3c; }
.honey { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--band); padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(32px, 4vw, 48px); }
.site-footer__inner {
  max-width: var(--wide); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start;
}
.site-footer__name { font-size: 1.25rem; font-weight: 700; }
.site-footer__note { margin-top: 0.6rem; max-width: 40rem; font-size: var(--fs-small); color: #333333; }
.site-footer__side { text-align: right; }
.social { list-style: none; margin: -10px; padding: 0; display: flex; justify-content: flex-end; gap: 0.25rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.social svg { width: 24px; height: 24px; }
.site-footer__credit { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 799px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__side { text-align: left; }
  .social { justify-content: flex-start; }
}

@media print {
  .nav, .social, .buttons, form, .skip-link { display: none !important; }
  .feature { background: none; color: #000; }
  .feature__body p, .feature__date { color: #000; }
}

/* ---- brand: black circle logo with a "Personal Journal" tagline under the name ---- */
.brand { gap: 0.7rem; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: grid; gap: 2px; }
.brand__name { line-height: 1.1; }
.brand__tagline { font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem); font-style: italic; line-height: 1.2; color: var(--muted); }
.hero__mark { width: clamp(56px, 5vw, 76px); }
@media (max-width: 799px) { .brand__mark { width: 38px; height: 38px; } }

/* ---- Mariupol paper ---- */
.feature__title--long { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.75rem); }
.kicker { font-style: italic; color: var(--muted); }
.page-head .buttons { margin-top: 1.6rem; }
.paper-summary > * + *, .paper-author > * + *, .notes > * + * { margin-top: var(--gap); }
.paper-body > * + * { margin-top: var(--gap); }
.paper-body h2 { margin-top: 3rem; }
.paper-body h3 { font-size: var(--fs-h3); font-weight: 700; margin-top: 2.2rem; }
.paper-body > h2:first-child { margin-top: 0; }
.paper-body h2 + p, .paper-body h3 + p { margin-top: 0.9rem; }
sup { line-height: 0; }
.fnref { font-size: 0.72em; vertical-align: super; }
.fnref a { text-decoration: none; padding-inline: 0.12em; }
.fnref a:hover { text-decoration: underline; }
.notes__list { padding-left: 2em; font-size: 0.9375rem; line-height: 1.5; }
.notes__list li { overflow-wrap: anywhere; }
.notes__list li + li { margin-top: 0.65rem; }
.notes__back { text-decoration: none; margin-left: 0.25rem; }
.notes__list li:target, .fnref:target { background: var(--band); }
[id^="fn"] { scroll-margin-top: 1.5rem; }
