@charset "UTF-8";
/* ==========================================================================
   gurcu.org — design system ("Miras")
   A heritage-journal look: warm parchment, a deep burgundy band, charcoal for
   the closing sections and gold hairline ornaments. Headlines are set in a
   light old-style display serif, labels in its letter-spaced capitals, and
   long-form text in Literata. The logo keeps its own colours (crimson #a0110a
   borjgali, ink wordmark).
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* parchment */
  --paper:        #ede5d8;
  --paper-raised: #f6f0e6;
  --stone:        #e4dacb;
  --stone-deep:   #d5c9b6;
  --rule:         #cbbda6;
  --rule-soft:    #dcd1bf;
  --control:      #8d7c64;

  /* ink */
  --ink:      #241d19;
  --ink-soft: #4e433a;
  --ink-mute: #65584a;

  /* burgundy: text accent, and the band it fills */
  --accent:      #6a1726;
  --accent-deep: #4a0f1a;
  --accent-wash: #ecd9d4;
  --band:        #561420;
  --band-deep:   #43101a;
  --band-ink:    #f3eadb;
  --band-rule:   rgb(243 234 219 / .22);

  /* gold: ornaments on dark grounds, and its darker ink for labels on parchment */
  --gold:     #b98f4e;
  --gold-ink: #7a5826;

  /* charcoal: the closing band and the footer */
  --night:      #262422;
  --night-deep: #1d1b1a;
  --night-ink:  #ddd3c3;
  --night-mute: #a89c8a;
  --night-head: #f3eadb;
  --night-rule: #45403a;

  --focus: #0b5bd3;

  /* logo — the brand file's own colours */
  --logo-mark: #a0110a;
  --logo-word: #1d1d1b;
  --logo-tld:  #a39a8c;

  /* type */
  --display: "Cormorant Garamond", "Noto Serif Georgian", "Literata", Georgia, "Times New Roman", serif;
  --serif:   "Literata", "Noto Serif Georgian", Charter, Georgia, "Times New Roman", serif;
  --sans:    var(--serif);           /* the interface is set in the text face */
  --geo:     "Noto Serif Georgian", "Literata", Georgia, serif;
  --caps:    .16em;                  /* tracking of the capital labels */

  /* text sizes (Literata) */
  --t--1: clamp(.8rem, .78rem + .1vw,  .86rem);
  --t-0:  clamp(.94rem, .91rem + .14vw, 1.02rem);
  --t-1:  clamp(1.06rem, 1rem + .28vw,  1.2rem);
  --t-2:  clamp(1.26rem, 1.15rem + .5vw, 1.6rem);
  --t-3:  clamp(1.5rem, 1.3rem + .9vw,  2.1rem);
  --t-4:  clamp(1.85rem, 1.45rem + 1.8vw, 3rem);
  --t-5:  clamp(2.2rem, 1.5rem + 3.2vw, 4.4rem);
  /* display sizes (the display face runs small, so its scale is larger) */
  --d-1: clamp(1.38rem, 1.28rem + .4vw, 1.62rem);
  --d-2: clamp(1.7rem, 1.5rem + .9vw, 2.3rem);
  --d-3: clamp(2.1rem, 1.7rem + 1.7vw, 3.1rem);
  --d-4: clamp(2.5rem, 1.8rem + 3vw, 4.3rem);
  --label: .8rem;

  /* space */
  --s-1: .375rem;
  --s-2: .75rem;
  --s-3: 1.125rem;
  --s-4: 1.75rem;
  --s-5: 2.5rem;
  --s-6: 3.75rem;
  --s-7: 5.5rem;
  --s-8: 7.5rem;

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --wide: 78rem;
  --radius: 1px;
  --radius-lg: 2px;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 10px 28px -14px rgb(60 40 20 / .28);

  /* motion: one set of curves and speeds for the whole site */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.33, 0, .2, 1);
  --t-fast: .16s;
  --t-base: .28s;
  --t-slow: .55s;

  --shell: min(var(--wide), 100% - var(--gutter) * 2);
  --header-h: calc(4.5rem + 1px);      /* the sticky header, with its rule */
}
@media (max-width: 40rem) { :root { --header-h: calc(3.75rem + 1px); } }

/* Georgian pages lead with the Georgian face */
:root:lang(ka), [lang="ka"] {
  --display: "Noto Serif Georgian", "Cormorant Garamond", Georgia, serif;
  --serif:   "Noto Serif Georgian", "Literata", Georgia, serif;
  --caps:    .06em;
}
/* …and Turkish passages inside Georgian pages keep the Latin faces */
:lang(ka) [lang="tr"] {
  --display: "Cormorant Garamond", "Noto Serif Georgian", "Literata", Georgia, serif;
  --serif:   "Literata", "Noto Serif Georgian", Charter, Georgia, serif;
  --caps:    .16em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #1b1917;
    --paper-raised: #25211e;
    --stone:        #211e1b;
    --stone-deep:   #2d2824;
    --rule:         #433b32;
    --rule-soft:    #322d27;
    --control:      #85786a;

    --ink:      #ede5d8;
    --ink-soft: #c5baa9;
    --ink-mute: #a69a88;

    --accent:      #e0b676;
    --accent-deep: #f0cf9b;
    --accent-wash: #35281b;
    --band:        #4a111c;
    --band-deep:   #3a0d16;

    --gold-ink: #d2aa68;

    --night:      #121110;
    --night-deep: #0c0b0a;
    --night-rule: #2f2a25;

    --focus: #8fb8ff;

    --logo-mark: #d02a1f;
    --logo-word: #ede5d8;
    --logo-tld:  #8d8375;

    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  --paper:        #1b1917;
  --paper-raised: #25211e;
  --stone:        #211e1b;
  --stone-deep:   #2d2824;
  --rule:         #433b32;
  --rule-soft:    #322d27;
  --control:      #85786a;
  --ink:      #ede5d8;
  --ink-soft: #c5baa9;
  --ink-mute: #a69a88;
  --accent:      #e0b676;
  --accent-deep: #f0cf9b;
  --accent-wash: #35281b;
  --band:        #4a111c;
  --band-deep:   #3a0d16;
  --gold-ink: #d2aa68;
  --night:      #121110;
  --night-deep: #0c0b0a;
  --night-rule: #2f2a25;
  --focus: #8fb8ff;
  --logo-mark: #d02a1f;
  --logo-word: #ede5d8;
  --logo-tld:  #8d8375;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* The whole site is set a step larger than the browser's own size: every
   measure is in rem, so type, spacing and the page width grow together (and
   still follow a reader's browser setting). */
html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (min-width: 48rem) { html { font-size: 112.5%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* The page opens once — the words rise, the lead picture settles — and after
   that nothing moves on its own: every other movement answers the reader
   (hover, press, open, copy). Readers who ask for less motion get none: the
   rule above shortens every animation to nothing. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise   { from { opacity: 0; translate: 0 .75rem; } }
  @keyframes settle { from { scale: 1.035; } }
  [data-rise] {
    animation: rise var(--t-slow) var(--ease) backwards;
    animation-delay: calc(var(--rise, 0) * 80ms);
  }
  [data-settle] > picture img { animation: settle .9s var(--ease-soft) backwards; }
}
/* Blocks arrive with the scroll. Where the browser can tie an animation to
   the scroll position, the movement follows the reader in both directions —
   it plays backwards on the way up; elsewhere app.js reveals each block once
   as it comes into view. Cards in a row start a few per cent apart so a row
   arrives as a cascade rather than a block. Text the reader is reading, the
   header, the footer and the slider stay still. */
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes reveal { from { opacity: 0; translate: 0 1.25rem; } }
  @supports (animation-timeline: view()) {
    .card, .topic, .video, .band-head, .section-intro, .article__figure, .gallery__row,
    .video--inline, .article-aside, .contact-grid > div, .detail-list, .duo__col, .statement__inner {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
    :is(.card-grid, .topic-grid, .video-grid) > :nth-child(4n + 2) { animation-range: entry 4% entry 54%; }
    :is(.card-grid, .topic-grid, .video-grid) > :nth-child(4n + 3) { animation-range: entry 8% entry 58%; }
    :is(.card-grid, .topic-grid, .video-grid) > :nth-child(4n + 4) { animation-range: entry 12% entry 62%; }
  }
  /* browsers without scroll timelines: one reveal on the way in (app.js) */
  .reveal-js :is(.card, .topic, .video, .band-head, .section-intro, .article__figure, .gallery__row,
                 .video--inline, .article-aside, .contact-grid > div, .detail-list, .duo__col, .statement__inner) {
    opacity: 0; translate: 0 1.25rem;
    transition: opacity var(--t-slow) var(--ease), translate var(--t-slow) var(--ease);
  }
  .reveal-js [data-shown] { opacity: 1; translate: none; }
}

/* the theme change sweeps out from the button that asked for it (app.js) */
::view-transition-old(root) { animation: none; z-index: 0; }
::view-transition-new(root) { animation: none; z-index: 1; }
/* pictures fade in as they arrive instead of snapping into place; the class
   comes from app.js, so without it every picture is simply visible */
.img-fade img[loading="lazy"] { opacity: 0; transition: opacity var(--t-base) var(--ease-soft); }
.img-fade img[loading="lazy"][data-loaded] { opacity: 1; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  font-variant-numeric: lining-nums;     /* the display face defaults to old-style figures */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; background: var(--stone); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.004em;
  text-wrap: balance;
}
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3, :lang(ka) h4 { letter-spacing: 0; line-height: 1.3; font-weight: 500; }
:lang(ka) [lang="tr"]:is(h1, h2, h3, h4) { line-height: 1.14; }

p { text-wrap: pretty; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

button, input, textarea, select { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* --------------------------------------------------------------- utils */
.shell { width: var(--shell); margin-inline: auto; }
/* every page uses the same .shell; long-form text keeps a reading measure in it */
.measure { max-inline-size: 44rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-2); top: -4rem; z-index: 100;
  background: var(--band); color: var(--band-ink);
  padding: var(--s-2) var(--s-3);
  font-size: var(--t--1); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s-2); }

/* the capital labels: the display face, letter-spaced (Georgian has no case,
   so there the tracking is lighter) */
.kicker, .tag, .more-link, .btn, .site-nav a, .lang-switch a, .band-head h2, .crumbs,
.strip__item span, .meta-row, .topic__count, .share__label, .site-footer h2, .search-band h2,
.hero__tagline, .field label, .detail-list dt, .colophon dt, .pagination, .video__badge,
.article-aside h2, .article-aside__meta, .search-status, .slider__count, .statement__by {
  font-family: var(--display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  line-height: 1.5;
}
:lang(ka) :is(.kicker, .tag, .more-link, .btn, .site-nav a, .band-head h2, .crumbs,
.strip__item span, .meta-row, .topic__count, .share__label, .site-footer h2, .search-band h2,
.hero__tagline, .field label, .detail-list dt, .colophon dt, .pagination, .video__badge,
.article-aside h2, .article-aside__meta, .search-status, .slider__count, .statement__by):not([lang="tr"]) {
  font-size: .76rem; font-weight: 500;
}

/* section rhythm */
.band { padding-block: var(--s-7); }
.band--tight { padding-block: var(--s-6); }
.band + .band { padding-block-start: 0; }
.band--stone { background: var(--stone); padding-block: var(--s-7); }
.band--stone + .band { padding-block-start: var(--s-7); }

/* section heading: a capital label on the left (a short rule before it), the
   way on on the right */
.band-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-4);
}
.band-head h2 {
  font-size: .95rem; color: var(--ink);
  border-inline-start: 1px solid var(--gold-ink); padding-inline-start: var(--s-2);
}
:lang(ka) .band-head h2:not([lang="tr"]) { font-size: .9rem; }
.band-head p { color: var(--ink-soft); font-size: var(--t--1); max-width: 46ch; }

/* "discover →": a capital label and a long thin arrow */
.more-link {
  display: inline-flex; align-items: center; gap: .7em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast) var(--ease-soft);
}
.more-link::after {
  content: ""; flex: none; inline-size: 1.9em; block-size: .7em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 6h30M25 1.5 30 6l-5 4.5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 6h30M25 1.5 30 6l-5 4.5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate var(--t-base) var(--ease);
}
.more-link:hover { color: var(--accent); }
.more-link:hover::after { translate: .3em 0; }

.kicker { color: var(--gold-ink); text-decoration: none; }
a.kicker:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }

.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem var(--s-3);
  color: var(--ink-mute); font-weight: 500;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--paper); } }

.site-header__inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 4.5rem;
}
.brand { display: flex; align-items: center; flex: none; }
.logo {
  display: block; block-size: 2.5rem; inline-size: auto;
  aspect-ratio: 337 / 93.7; overflow: visible;
}

.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(var(--s-3), 2.4vw, var(--s-5)); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  padding-block: .45rem; display: block;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.site-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
/* "İletişim" is the button at the right of the bar; its menu entry is for the
   phone panel only */
.site-nav .nav-contact { display: none; }

.header-tools { display: flex; align-items: center; gap: var(--s-1); flex: none; }
.header-cta { margin-inline-start: var(--s-2); }

.icon-btn {
  display: inline-grid; place-items: center;
  inline-size: 2.4rem; block-size: 2.4rem;
  background: transparent; border: 1px solid transparent;
  border-radius: 50%; cursor: pointer; color: var(--ink-soft);
  transition: background-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft),
              border-color var(--t-fast) var(--ease-soft), scale var(--t-fast) var(--ease-soft);
}
.icon-btn:active { scale: .94; }
.icon-btn:hover { color: var(--accent); border-color: var(--rule); }
.icon-btn svg { inline-size: 1.1rem; block-size: 1.1rem; stroke-width: 1.4; }

.lang-switch { display: flex; align-items: center; margin-inline: var(--s-1); }
.lang-switch a {
  padding: .35rem .5rem; text-decoration: none; color: var(--ink-mute);
  font-size: .78rem; letter-spacing: .1em; line-height: 1.5;
}
.lang-switch a[lang="ka"] { font-family: var(--geo); letter-spacing: 0; font-weight: 500; text-transform: none; }
.lang-switch a + a { border-inline-start: 1px solid var(--rule); }
.lang-switch a[aria-current] { color: var(--accent); }
.lang-switch a:not([aria-current]):hover { color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 40rem) {
  .site-header__inner { gap: var(--s-2); min-height: 3.75rem; }
  .logo { block-size: 2rem; }
  .header-tools { gap: 0; }
  .icon-btn { inline-size: 2.2rem; block-size: 2.2rem; }
  .lang-switch a { padding: .3rem .4rem; }
}

@media (max-width: 66rem) {
  .nav-toggle { display: inline-grid; }
  .site-header .header-cta { display: none; }
  .site-nav .nav-contact { display: block; }
  .site-nav { margin-inline-start: auto; margin-inline-end: 0; }
  .header-tools { margin-inline-start: auto; }

  /* Without JavaScript the toggle cannot open the panel, so the menu is
     always shown instead of being unreachable. */
  .no-js .nav-toggle { display: none; }
  .no-js .site-header { position: static; }
  .no-js .site-nav {
    display: block; position: static; inset: auto;
    visibility: visible; opacity: 1; translate: none;
    flex: 0 0 100%; order: 3; margin-inline-start: 0;
    background: transparent; overflow: visible;
    border-bottom: 0; border-top: 1px solid var(--rule-soft);
    padding-block: var(--s-2); max-block-size: none;
  }
  .no-js .site-nav ul {
    flex-direction: row; flex-wrap: wrap;
    gap: var(--s-2) var(--s-4); width: auto;
  }
  .no-js .site-nav li + li { border-top: 0; }
  .no-js .site-nav a { padding: .35rem 0; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-bottom: 0; }

  .site-nav {
    position: fixed; inset: 4.5rem 0 auto; z-index: 49;
    max-block-size: calc(100svh - 4.5rem); overflow-y: auto;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s-2) 0 var(--s-4);
    visibility: hidden; opacity: 0; translate: 0 -.5rem;
    transition: opacity var(--t-base) var(--ease), translate var(--t-base) var(--ease),
                visibility 0s linear var(--t-base);
  }
  .site-nav[data-open] {
    visibility: visible; opacity: 1; translate: 0;
    transition: opacity var(--t-base) var(--ease), translate var(--t-base) var(--ease), visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: var(--shell); margin-inline: auto; }
  .site-nav li + li { border-top: 1px solid var(--rule-soft); }
  .site-nav a { padding: var(--s-3) 0; font-size: .95rem; border-bottom: 0; }
  .site-nav a:hover { border-bottom: 0; }
}
@media (max-width: 40rem) {
  .site-nav { inset-block-start: 3.75rem; max-block-size: calc(100svh - 3.75rem); }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .9em;
  padding: .95rem 1.35rem; border-radius: var(--radius);
  font-size: .82rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft),
              border-color var(--t-fast) var(--ease-soft), translate var(--t-fast) var(--ease-soft);
}
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0; }
.btn--sm { padding: .62rem 1rem; font-size: .76rem; }
.btn--primary { background: var(--band); color: var(--band-ink); }
.btn--primary:hover { background: var(--band-deep); }
/* the small gold ornament that closes a button */
.btn--primary::after {
  content: ""; flex: none; inline-size: 1.05em; block-size: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a464'%3E%3Cpath d='M12 1.5c2.4 3.4 2.4 5.8 0 9-2.4-3.2-2.4-5.6 0-9Zm0 21c-2.4-3.4-2.4-5.8 0-9 2.4 3.2 2.4 5.6 0 9ZM1.5 12c3.4-2.4 5.8-2.4 9 0-3.2 2.4-5.6 2.4-9 0Zm21 0c-3.4 2.4-5.8 2.4-9 0 3.2-2.4 5.6-2.4 9 0Z'/%3E%3Ccircle cx='12' cy='12' r='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--ghost { border-color: var(--control); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ opening */
/* The first screen of the home page: header, hero and the strip of numbers
   fill the window exactly — the hero takes whatever height the strip leaves. */
.opening {
  display: flex; flex-direction: column;
  min-block-size: calc(100vh - var(--header-h));
  min-block-size: calc(100svh - var(--header-h));
}
.opening > .hero { flex: 1 0 auto; display: flex; flex-direction: column; }
.opening .slider { flex: 1 0 auto; grid-template-rows: minmax(0, 1fr) auto; }
.opening > .strip { flex: none; }

/* --------------------------------------------------------------------- hero */
/* The home page opens like the first spread of a journal: the archive's own
   line above, one article at a time — its title, a few lines, the way in — and
   its photograph running off the right edge, washed into the paper on the
   left. The slides are a native horizontal scroller, so swiping works
   everywhere, even without JavaScript; app.js adds the buttons, dots and the
   automatic advance. */
.hero {
  position: relative; container-type: inline-size;
  --edge: max(var(--gutter), (100vw - var(--wide)) / 2);
  --edge: max(var(--gutter), (100cqi - var(--wide)) / 2);
  --text: min(31rem, 38cqi);
}
.hero__head { padding-block: var(--s-4) var(--s-3); }
.hero__tagline { color: var(--gold-ink); max-inline-size: 36rem; font-size: .82rem; }

.slider { display: grid; }
.slider__track {
  position: relative; display: flex;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
html:not(.no-js) .slider__track { scrollbar-width: none; }
html:not(.no-js) .slider__track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%; min-inline-size: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
  /* stacked: the photograph takes the height the text leaves */
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
}
.slide__media {
  position: relative; display: block; overflow: hidden;
  min-block-size: 62.5vw; min-block-size: 62.5cqi;     /* at least 16:10 */
  background: var(--stone-deep);
}
/* a softened copy of the photograph fills the frame behind it */
.slide__backdrop { position: absolute; inset: 0; }
.slide__backdrop picture, .slide__backdrop img { display: block; inline-size: 100%; block-size: 100%; }
.slide__backdrop img { object-fit: cover; filter: blur(22px) saturate(.9); scale: 1.15; opacity: .6; }
.slide__media > picture img {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  inline-size: 100%; block-size: 100%; object-fit: contain; background: transparent;
}
/* a photograph large enough for it fills the frame edge to edge… */
.slide--cover .slide__media > picture img { object-fit: cover; }
/* …a small one is never enlarged (its real size comes with it, --real-w and
   --real-h): it hangs on the softened ground like a framed print */
.slide--framed .slide__media > picture img {
  inline-size: auto; block-size: auto;
  max-inline-size: min(100% - 3rem, var(--real-w, 100%));
  max-block-size: min(100% - 3rem, var(--real-h, 100%));
  border: .45rem solid var(--paper-raised);
  box-shadow: 0 18px 40px -18px rgb(30 18 8 / .55);
}

.slide__body {
  display: grid; gap: var(--s-3); align-content: start; justify-items: start;
  padding: var(--s-4) var(--gutter) var(--s-3);
}
.slide__body h3 { font-size: var(--d-3); font-weight: 400; line-height: 1.08; }
.slide--mid .slide__body h3 { font-size: var(--d-2); line-height: 1.12; }
.slide--long .slide__body h3 { font-size: var(--d-1); font-weight: 500; line-height: 1.18; }
:lang(ka) .slide__body h3:not([lang="tr"]) { font-size: var(--d-2); line-height: 1.28; }
:lang(ka) :is(.slide--mid, .slide--long) .slide__body h3:not([lang="tr"]) { font-size: var(--d-1); }
.slide__body h3 a { text-decoration: none; }
.slide__body h3 a:hover { color: var(--accent); }
.slide__body > p:not([class]) {
  font-size: var(--t-0); line-height: 1.65; color: var(--ink-soft); max-inline-size: 34rem;
  /* a teaser: the whole text is one click away */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
  overflow: hidden;
}

.slider__controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3);
  inline-size: var(--shell); margin-inline: auto; padding-block: var(--s-2) var(--s-4);
}
.slider__dots { display: flex; flex-wrap: wrap; margin-inline-end: auto; }
.slider__dots button {                       /* 24px targets, drawn as hairlines */
  display: grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.slider__dots button::before {
  content: ""; inline-size: 1rem; block-size: 1px;
  background: var(--control); transition: background-color .2s ease, block-size .2s ease;
}
.slider__dots button:hover::before { background: var(--ink); }
.slider__dots button[aria-current="true"]::before { background: var(--accent); block-size: 3px; }
.slider__count { color: var(--ink-mute); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .08em; }
.slider__count b { color: var(--ink); font-weight: 600; }
.slider__buttons { display: flex; }
[data-slider-toggle] svg + svg { display: none; }
[data-slider-toggle][data-paused] svg:first-child { display: none; }
[data-slider-toggle][data-paused] svg + svg { display: block; }
.no-js .slider__controls { display: none; }
@media (max-width: 30rem) {
  .slider__dots { display: none; }           /* the counter shows the position */
  .slider__count { margin-inline-end: auto; }
}

@media (min-width: 60rem) {
  /* the archive's line sits over the text column of every slide; app.js
     measures it (--tag-h) so the slide text always starts below it */
  .hero__head {
    position: absolute; inset: var(--s-4) 0 auto; z-index: 2;
    padding: 0; pointer-events: none;
  }
  .hero__tagline { max-inline-size: calc(var(--text) - var(--s-5)); pointer-events: auto; }
  .slide {
    grid-template-columns: calc(var(--edge) + var(--text)) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-block-size: 27rem;               /* a floor for very low windows; the opening sets the height */
  }
  .slide__body {
    grid-column: 1; grid-row: 1; align-content: center;
    padding: calc(var(--s-4) + var(--tag-h, 4rem) + var(--s-2)) var(--s-5) 4.5rem var(--edge);
  }
  .slide__media {
    grid-column: 2; grid-row: 1; min-block-size: 0; background: transparent;
    /* it starts under the end of the text column and is washed into the paper there */
    margin-inline-start: calc(-1 * var(--s-5));
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / .5) 13%, #000 32%);
            mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / .5) 13%, #000 32%);
  }
  /* a framed print hangs in the clear part of the wall */
  .slide__body > p:not([class]) { -webkit-line-clamp: 3; line-clamp: 3; }
  .slide--framed .slide__media > picture img {
    inset-inline-start: 26%;
    max-inline-size: min(74% - 3rem, var(--real-w, 100%));
  }
  .slider__controls {
    position: absolute; inset-block-end: var(--s-3); inset-inline-start: var(--edge);
    inline-size: calc(var(--text) - var(--s-5)); margin: 0; padding: 0; z-index: 2;
  }
}
@media (min-width: 60rem) and (max-width: 80rem) {
  .slider__dots { display: none; }
  .slider__count { margin-inline-end: auto; }
}

/* ------------------------------------------------------------------- strip */
/* the burgundy band under the hero: the archive in three numbers */
.strip { background: var(--band); color: var(--band-ink); }
.strip__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip__item {
  display: grid; justify-items: center; align-content: center; gap: .3rem;
  padding: var(--s-4) var(--s-2); text-align: center;
  color: inherit; text-decoration: none;
  transition: background-color var(--t-base) var(--ease-soft);
}
.strip__item + .strip__item { border-inline-start: 1px solid var(--band-rule); }
.strip__item:hover { background: var(--band-deep); }
.strip__icon { color: var(--gold); margin-bottom: .2rem; }
.strip__icon svg { inline-size: 2.5rem; block-size: 2.5rem; stroke-width: 1; }
.strip__item b {
  font-family: var(--display); font-size: var(--d-2); font-weight: 500; line-height: 1;
  font-variant-numeric: lining-nums;
}
.strip__item span:not(.strip__icon) { font-size: .86rem; }
@media (max-width: 30rem) {
  .strip__item { padding: var(--s-3) var(--s-1); }
  .strip__icon svg { inline-size: 2rem; block-size: 2rem; }
  .strip__item span:not(.strip__icon) { font-size: .72rem; letter-spacing: .1em; }
}

/* Low windows (a laptop with its toolbars): the opening still fills one screen,
   so the strip lies flat — icon, number and label on one line — and the slide
   text tightens. */
@media (min-width: 60rem) and (max-height: 52rem) {
  .strip__item { display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding-block: var(--s-3); }
  .strip__icon { margin: 0; }
  .strip__icon svg { inline-size: 1.7rem; block-size: 1.7rem; }
  .strip__item b { font-size: var(--d-1); }
  .slide__body { gap: var(--s-2); }
  .slide__body h3 { font-size: var(--d-2); }
  .slide--mid .slide__body h3, .slide--long .slide__body h3 { font-size: var(--d-1); }
  .slide__body > p:not([class]) { -webkit-line-clamp: 2; line-clamp: 2; }
  .slide__body .btn { padding-block: .7rem; }
}
@media (min-width: 60rem) and (max-height: 42rem) {
  .slide { min-block-size: 22rem; }
  .slide__body .meta-row { display: none; }      /* the reading time is on the article itself */
  .slide__body { padding-block-end: 4rem; }
}

/* ---------------------------------------------------------- section intro */
/* a short text column that opens a row of pictures */
.section-intro { display: grid; gap: var(--s-3); align-content: center; justify-items: start; padding-block: var(--s-3); }
.section-intro :is(h2, h3) { font-size: var(--d-3); font-weight: 400; line-height: 1.06; }
:lang(ka) .section-intro :is(h2, h3):not([lang="tr"]) { font-size: var(--d-2); }
.section-intro > p:not([class]) { color: var(--ink-soft); font-size: var(--t--1); line-height: 1.65; max-inline-size: 30ch; }

/* ------------------------------------------------------------------ topics */
/* Topics as tall picture tiles: a photo from the topic's own articles,
   darkened towards the bottom where the name sits. The photo never carries
   meaning, so a tile without one (or before it loads) is simply dark. */
.topic-grid {
  display: grid; gap: var(--s-2);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 36rem) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); } }
.topic {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-block-size: 15rem; aspect-ratio: 4 / 5;
  background: #2a2420; color: #fff; text-decoration: none;
}
/* one column on phones: a fixed height (a ratio plus a minimum height would widen the tile) */
@media (max-width: 35.99rem) { .topic { aspect-ratio: auto; min-block-size: 14.5rem; } }
.topic__media { position: absolute; inset: 0; z-index: -2; }
.topic__media picture { display: block; block-size: 100%; }
.topic__media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  background: transparent; transition: scale var(--t-slow) var(--ease-soft);
}
.topic::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(24 16 12 / .92) 0%, rgb(24 16 12 / .66) 40%,
                                      rgb(24 16 12 / .14) 76%, rgb(24 16 12 / 0) 100%);
}
.topic:hover .topic__media img { scale: 1.045; }
.topic__body { display: grid; gap: .4rem; padding: var(--s-3); }
.topic__icon { display: block; color: #d9b676; margin-bottom: .1rem; }
.topic__icon svg { inline-size: 2rem; block-size: 2rem; stroke-width: 1.1; }
.topic h3 { font-size: var(--d-1); color: #fff; font-weight: 500; }
.topic p {
  font-size: var(--t--1); line-height: 1.5; color: rgb(255 255 255 / .86);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.topic__count { color: #e2c48d; font-size: .74rem; margin-top: .15rem; }
.topic:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (prefers-reduced-motion: reduce) {
  .topic__media img { transition: none; }
  .topic:hover .topic__media img { scale: none; }
}

/* --------------------------------------------------------------- cards */
.card-grid {
  display: grid; gap: var(--s-4) var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
/* at most three columns: 3 picks read 3, 2+1 or 1×3 */
.card-grid--3 {
  grid-template-columns: repeat(auto-fill,
    minmax(max(min(100%, 19rem), calc((100% - 2 * var(--s-3)) / 3)), 1fr));
}
/* at most four: 8 picks read 4+4, 2×4 or 1×8, never with an orphan */
.card-grid--4 {
  grid-template-columns: repeat(auto-fill,
    minmax(max(min(100%, 15.5rem), calc((100% - 3 * var(--s-3)) / 4)), 1fr));
}
@media (min-width: 34rem) and (max-width: 69rem) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--paper-raised); box-shadow: var(--shadow);
}
.card__top { position: relative; }
.card__media { display: block; overflow: hidden; background: var(--stone); }
.card__media img {
  inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: scale var(--t-slow) var(--ease-soft);
}
.card:hover .card__media img { scale: 1.04; }
/* the topic, as a small label on the corner of the picture */
.tag {
  display: inline-block; max-inline-size: calc(100% - 1rem);
  background: var(--band); color: var(--band-ink); text-decoration: none;
  padding: .32rem .7rem; font-size: .68rem; line-height: 1.4;
}
:lang(ka) .tag:not([lang="tr"]) { font-size: .68rem; }
.card__top .tag { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 1; }
.card__top--bare .tag { position: static; }
.tag:hover { background: var(--band-deep); }
.card__body { display: grid; gap: var(--s-2); align-content: start; grid-template-rows: auto 1fr auto; padding: var(--s-3); }
.card :is(h2, h3, h4) { font-size: var(--d-1); line-height: 1.16; font-weight: 500; }
:lang(ka) .card :is(h2, h3, h4):not([lang="tr"]) { font-size: 1.08rem; line-height: 1.4; }
.card :is(h2, h3, h4) a { text-decoration: none; }
.card:hover :is(h2, h3, h4) a { color: var(--accent); }
.card p { font-size: var(--t--1); color: var(--ink-soft); line-height: 1.6; }
.card .more-link { justify-self: start; margin-top: .2rem; font-size: .74rem; }
/* the first article of a list opens it: one wide picture beside more text */
.card--lead { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .card--lead { grid-template-rows: auto; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .card--lead .card__media { block-size: 100%; }
  .card--lead .card__media picture { display: block; block-size: 100%; }
  .card--lead .card__media img { aspect-ratio: 3 / 2; block-size: 100%; }
  .card--lead .card__body { align-content: center; grid-template-rows: none; padding: var(--s-5) clamp(var(--s-4), 3.4vw, var(--s-6)); gap: var(--s-3); }
  .card--lead :is(h2, h3, h4) { font-size: var(--d-2); line-height: 1.1; font-weight: 400; }
  :lang(ka) .card--lead :is(h2, h3, h4):not([lang="tr"]) { font-size: var(--t-2); line-height: 1.35; }
  .card--lead p { font-size: var(--t-0); line-height: 1.65; }
}

/* --------------------------------------------------------------- dark band */
/* the charcoal band before the footer: about the archive, and how to reach it */
.band--dark {
  background: var(--night); color: var(--night-ink); padding-block: var(--s-6);
  --focus: #8fb8ff;
}
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 54rem) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .duo__col + .duo__col { border-inline-start: 1px solid var(--night-rule); padding-inline-start: clamp(var(--s-4), 5vw, var(--s-6)); }
  .duo__col:first-child { padding-inline-end: clamp(var(--s-4), 5vw, var(--s-6)); }
}
.duo__col { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.duo__head { display: flex; align-items: center; gap: var(--s-3); }
.duo__icon { color: var(--gold); flex: none; }
.duo__icon svg { inline-size: 2.4rem; block-size: 2.4rem; stroke-width: 1; }
.duo__col h2 {
  font-size: .95rem; font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase;
  color: var(--night-head); line-height: 1.4;
}
.duo__col > p { max-inline-size: 52ch; line-height: 1.7; }
.band--dark .more-link { color: var(--night-head); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .4em; text-decoration-thickness: 1px; }
.band--dark .more-link:hover { color: #e2c48d; }
.band--dark .detail-list { inline-size: 100%; max-inline-size: 26rem; }
.band--dark .detail-list > div { border-bottom-color: var(--night-rule); }
.band--dark .detail-list dt { color: var(--night-mute); }
.band--dark .detail-list a { color: var(--night-head); }
.band--dark .social-row a { color: var(--night-ink); border-color: var(--night-rule); background: transparent; }
.band--dark .social-row a:hover { color: #e2c48d; border-color: var(--gold); }

/* --------------------------------------------------------------- statement */
/* the archive's own sentence, set large, the borjgali faint behind it */
.statement { position: relative; overflow: hidden; background: var(--stone); }
.statement__inner {
  position: relative; z-index: 1; display: grid; gap: var(--s-2) var(--s-4);
  grid-template-columns: auto minmax(0, 1fr);
  padding-block: var(--s-6); max-inline-size: 58rem;
}
.statement__mark { inline-size: 2.6rem; block-size: 2.6rem; background: none; margin-top: .3rem; }
.statement__text {
  font-family: var(--display); font-size: var(--d-2); font-weight: 400; line-height: 1.3;
  color: var(--ink); text-wrap: balance;
}
:lang(ka) .statement__text { font-size: var(--t-2); line-height: 1.5; }
.statement__by { grid-column: 2; justify-self: start; color: var(--ink-mute); text-decoration: none; text-transform: none; letter-spacing: .08em; }
.statement__by::before { content: "— "; }
a.statement__by:hover { color: var(--accent); }
.statement::after {
  content: ""; position: absolute; inset-block: -18%; inset-inline-end: -4rem; aspect-ratio: 1;
  background: url("../img/favicon.svg") center / contain no-repeat;   /* relative: the site may live in a sub-folder */
  opacity: .07; filter: grayscale(1); pointer-events: none;
}
@media (max-width: 40rem) {
  .statement__inner { grid-template-columns: minmax(0, 1fr); }
  .statement__by { grid-column: 1; }
  .statement::after { inset-inline-end: -40%; }
}

/* --------------------------------------------------------------- page head */
.page-head { padding-block: var(--s-6) var(--s-5); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--d-4); font-weight: 400; line-height: 1.04; max-width: 20ch; }
:lang(ka) .page-head h1:not([lang="tr"]) { font-size: var(--d-3); line-height: 1.24; }
.page-head p { color: var(--ink-soft); max-width: 60ch; margin-top: var(--s-3); font-size: var(--t-1); }

.crumbs { color: var(--ink-mute); margin-bottom: var(--s-4); font-size: .74rem; font-weight: 500; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .6rem; list-style: none; padding: 0; margin: 0; }
.crumbs li { display: flex; gap: .6rem; align-items: center; min-inline-size: 0; }
.crumbs li + li::before { content: ""; inline-size: 1rem; block-size: 1px; background: var(--rule); flex: none; }
.crumbs a { color: var(--gold-ink); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.crumbs span { overflow-wrap: anywhere; }

/* --------------------------------------------------------------- article */
/* the article, and beside it (below it on narrow screens) every title of
   its category — as the old site's article page had in its side column */
.article-layout {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6) clamp(var(--s-5), 5vw, var(--s-7));
  padding-block: var(--s-5) var(--s-7);
}
@media (min-width: 64rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); }
}
.article { min-inline-size: 0; }
.article .prose, .article .notice, .article-aside { max-inline-size: 44rem; }
@media (min-width: 64rem) { .article-aside { max-inline-size: none; } }

.article-aside { border-top: 1px solid var(--ink); padding-top: var(--s-3); }
@media (min-width: 64rem) { .article-aside { margin-top: var(--s-5); } }
.article-aside h2 { font-size: .86rem; }
.article-aside__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .25rem var(--s-3); margin: var(--s-2) 0 var(--s-3);
  color: var(--ink-mute); font-size: .74rem; font-weight: 500;
}
.title-list li { border-top: 1px solid var(--rule-soft); }
.title-list a,
.title-list [aria-current] {
  display: block; padding-block: .6rem;
  font-family: var(--display); font-size: 1.16rem; font-weight: 500; line-height: 1.25;
  color: var(--ink); text-decoration: none;
}
:lang(ka) .title-list :is(a, [aria-current]):not([lang="tr"]) { font-size: .95rem; line-height: 1.45; }
.title-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.title-list [aria-current] {
  color: var(--accent); font-weight: 600;
  border-inline-start: 2px solid var(--accent); padding-inline-start: var(--s-2);
}
.article__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); justify-items: start; }
.article__head h1 { font-size: var(--d-4); font-weight: 400; line-height: 1.05; max-width: 22ch; }
:lang(ka) .article__head h1:not([lang="tr"]) { font-size: var(--d-3); line-height: 1.24; }
.article__standfirst {
  font-size: calc(var(--t-1) * var(--reader, 1)); color: var(--ink-soft); line-height: 1.6; max-width: 60ch;
  border-inline-start: 1px solid var(--gold-ink); padding-inline-start: var(--s-3);
}
/* reading time on the left, the text-size buttons on the right */
.article__tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-2) var(--s-4); inline-size: 100%; max-inline-size: 44rem;
}
/* A− / A+: a small and a large letter; the pair only appears when app.js is
   there to make it work */
.reader-size { display: flex; align-items: center; gap: var(--s-1); }
.reader-size[hidden] { display: none; }
.reader-size__label {
  font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: var(--caps);
  text-transform: uppercase; color: var(--ink-mute); margin-inline-end: var(--s-1);
}
.reader-size button {
  display: inline-grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem;
  border: 1px solid var(--control); border-radius: 50%; background: transparent;
  color: var(--ink); cursor: pointer; font-family: var(--display); font-weight: 600; line-height: 1;
  transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft),
              background-color var(--t-fast) var(--ease-soft), scale var(--t-fast) var(--ease-soft);
}
.reader-size button[data-reader-step="-1"] { font-size: .95rem; }
.reader-size button[data-reader-step="1"] { font-size: 1.45rem; }
.reader-size button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.reader-size button:active:not(:disabled) { scale: .94; }
.reader-size button:disabled { opacity: .38; cursor: default; }

/* The lead photo: never enlarged past its own size, never taller than the
   screen allows (--w and --ratio come from the photo); like every photo in an
   article it lines up with the text on the left. */
.article__figure { margin-block: var(--s-4); }
.article__figure img {
  inline-size: min(100%, var(--w, 100%), calc(min(34rem, 70vh) * var(--ratio, 10)));
  box-shadow: var(--shadow);
}
/* A tall or small lead photo sits at the left and the text flows round it;
   on narrow screens it stays above the text. Lists, quotes and figures next
   to it keep clear of it instead of running underneath. */
@media (min-width: 40rem) {
  .article__figure--side { float: left; margin: .4rem var(--s-4) var(--s-3) 0; }
  .article__figure--side img {
    inline-size: min(18rem, var(--w, 18rem), calc(24rem * var(--ratio, 1)));
  }
  .article__figure--side ~ .prose > :is(ul, ol, blockquote, figure, hr) { display: flow-root; }
  .article .share { clear: both; }
}

/* --reader is the text size the reader chose with the A− / A+ buttons (app.js;
   restored before first paint): the article's text, headings, notes and
   tables all follow it */
.prose { font-family: var(--serif); font-size: calc(var(--t-1) * var(--reader, 1)); line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-block-start: 1.1em; }
/* app.js keeps the reader's place when the text size changes; the browser's
   own scroll anchoring would correct it a second time */
.article { overflow-anchor: none; }
.sizing .article, .sizing .article * { transition: none !important; }
.prose h2 {
  font-size: calc(var(--d-2) * var(--reader, 1)); font-weight: 500; line-height: 1.14;
  margin-block-start: 1.5em; margin-block-end: .5em;
}
.prose h3 { font-size: calc(var(--d-1) * var(--reader, 1)); margin-block-start: 1.5em; margin-block-end: .4em; font-weight: 600; }
.prose h4 { font-size: calc(1.22rem * var(--reader, 1)); margin-block-start: 1.4em; font-weight: 600; }
:lang(ka) .prose h2:not([lang="tr"]) { font-size: calc(var(--t-2) * var(--reader, 1)); }
:lang(ka) .prose h3:not([lang="tr"]) { font-size: calc(var(--t-1) * var(--reader, 1)); }
:lang(ka) .prose h4:not([lang="tr"]) { font-size: calc(var(--t-0) * var(--reader, 1)); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: from-font; overflow-wrap: anywhere; }
.prose a:hover { color: var(--accent-deep); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-block-start: .4em; }
.prose blockquote {
  border-inline-start: 1px solid var(--gold-ink);
  padding-inline-start: var(--s-3);
  color: var(--ink-soft); font-style: italic;
}
.prose figure { margin-block: var(--s-4); }
.prose figure img { inline-size: 100%; }
/* images sit on their own line, as in the original articles */
.prose picture, .prose > img, .prose p > img {
  display: block; margin-block: var(--s-3);
}
.prose picture img, .prose p > img, .prose > img {
  inline-size: auto; max-inline-size: 100%;
}
.prose .video--inline { margin-block: var(--s-4); max-inline-size: 40rem; }
/* bibliography and notes (mark_references in prose.php): smaller than the
   text, the bibliography in italics, the notes upright; long addresses may
   break anywhere */
.prose .references { font-size: .86em; line-height: 1.6; overflow-wrap: anywhere; }
.prose .references > * + * { margin-block-start: .7em; }
.prose .references :is(h2, h3, h4) { font-size: calc(var(--d-1) * var(--reader, 1)); }
.prose .references--sources { font-style: italic; }
.prose .references--sources :is(h2, h3, h4) { font-style: normal; }
/* Photos gathered into rows: the photos of a row share one height and are
   shown whole, each as wide as its shape asks (--r is its width/height, --sum
   the row's total); a row is never taller than 26rem. On phones they stack. */
.prose .gallery { display: grid; gap: .625rem; }
.prose .gallery__row {
  display: flex; gap: .625rem; margin: 0; inline-size: 100%;
  max-inline-size: calc(var(--sum) * 26rem + (var(--n) - 1) * .625rem);
}
.prose .gallery__item { flex: var(--r) 1 0%; min-inline-size: 0; }
.prose .gallery picture { margin: 0; }
.prose .gallery img { inline-size: 100%; max-inline-size: none; }
@media (max-width: 30rem) {
  .prose .gallery__row { display: grid; max-inline-size: none; }
}
/* the title bar YouTube's own player shows over the picture */
.video__title {
  position: absolute; inset: 0 0 auto 0; padding: var(--s-2) var(--s-3) var(--s-4);
  font-size: var(--t--1); font-weight: 600; line-height: 1.35;
  color: #fff; text-align: start;
  background: linear-gradient(rgb(0 0 0 / .62), transparent);
}
.prose figcaption { font-size: .76em; color: var(--ink-mute); margin-top: var(--s-2); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s-5); }
.prose strong { font-weight: 700; }
.prose table {
  inline-size: 100%; border-collapse: collapse;
  font-size: .76em;
  display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--rule); padding: .55rem .7rem; text-align: start; vertical-align: top; }
.prose th { background: var(--stone); font-weight: 600; }
.prose sup { font-size: .72em; line-height: 0; }
.prose .lead { font-family: var(--display); font-size: var(--d-2); font-weight: 400; line-height: 1.3; }
:lang(ka) .prose .lead { font-size: var(--t-2); line-height: 1.5; }

.notice {
  border: 1px solid var(--rule);
  border-inline-start: 2px solid var(--accent);
  background: var(--paper-raised);
  padding: var(--s-3);
  font-size: var(--t--1); color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.colophon {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  display: grid; gap: var(--s-2);
  font-size: var(--t-0); color: var(--ink-soft);
}
.colophon div { display: flex; gap: .4rem var(--s-3); flex-wrap: wrap; align-items: baseline; }
.colophon dt { color: var(--gold-ink); min-inline-size: 6rem; }
.colophon dd { margin: 0; }
.colophon a { color: var(--accent); overflow-wrap: anywhere; }

/* share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.share__label { color: var(--ink-mute); margin-inline-end: var(--s-1); }
.share a, .share button {
  display: inline-grid; place-items: center;
  inline-size: 2.4rem; block-size: 2.4rem;
  border: 1px solid var(--control); border-radius: 50%;
  color: var(--ink-soft); background: transparent; cursor: pointer;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft);
}
.share a:hover, .share button:hover { color: var(--accent); border-color: var(--accent); }
.share button[data-copied] { color: var(--band-ink); background: var(--band); border-color: var(--band); }
.share svg { inline-size: 1rem; block-size: 1rem; }

/* --------------------------------------------------------------- videos */
.video-grid {
  display: grid; gap: var(--s-4) var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.video { display: grid; gap: var(--s-2); align-content: start; }
.video__frame {
  position: relative; aspect-ratio: 16 / 9;
  overflow: hidden; box-shadow: var(--shadow);
  background: var(--stone-deep); border: 0; padding: 0; cursor: pointer;
  inline-size: 100%; display: block;
}
.video__frame img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.video__frame iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, #1a120e 30%, transparent);
  transition: background-color var(--t-fast) var(--ease-soft);
}
.video__play span { transition: scale var(--t-base) var(--ease); }
.video__frame:hover .video__play span { scale: 1.08; }
.video__frame:hover .video__play { background: color-mix(in srgb, #1a120e 14%, transparent); }
.video__play span {
  inline-size: 3.5rem; block-size: 3.5rem; border-radius: 50%;
  background: #561420; color: #f3eadb;
  box-shadow: 0 0 0 1px #c9a464, 0 0 0 5px rgb(86 20 32 / .55);
  display: grid; place-items: center;
}
.video__play svg { inline-size: 1.1rem; block-size: 1.1rem; margin-inline-start: .15rem; }
/* a video that opens on YouTube instead of playing in the page */
.video__frame--link { color: #fff; text-decoration: none; }
.video__frame--link .video__play svg { inline-size: 1.45rem; block-size: 1.45rem; margin: 0; }
.video__badge {
  position: absolute; inset-inline-start: 0; inset-block-end: 0;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem;
  background: #561420; color: #f3eadb;
  font-size: .68rem; line-height: 1.4;
}
.video__badge svg { inline-size: .85rem; block-size: .85rem; }
.video :is(h2, h3, h4) { font-size: 1.3rem; line-height: 1.2; margin-top: .2rem; }
:lang(ka) .video :is(h2, h3, h4):not([lang="tr"]) { font-size: 1rem; line-height: 1.4; }
.video p { font-size: var(--t--1); color: var(--ink-mute); }

/* the player: a video opened large in the middle of the screen (app.js) */
.player {
  inline-size: min(100vw - 2 * var(--s-3), 80rem, (100vh - 9rem) * 16 / 9);
  inline-size: min(100vw - 2 * var(--s-3), 80rem, (100dvh - 9rem) * 16 / 9);
  max-inline-size: none; max-block-size: none;
  margin: auto; padding: 0; border: 0; overflow: visible;
  background: transparent; color: #f3eadb;
}
.player::backdrop { background: rgb(18 12 10 / .88); }
.player__box { display: grid; gap: var(--s-2); }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.player__title {
  font-family: var(--display); font-size: var(--d-1); font-weight: 500; line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.player__title:lang(ka) { font-family: var(--geo); font-size: var(--t-1); }
.player__close {
  flex: none; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem;
  border: 1px solid rgb(243 234 219 / .5); border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft);
}
.player__close:hover { background: #f3eadb; color: #241d19; }
.player__close:focus-visible { outline-color: #ffd9a0; }
.player__close svg { inline-size: 1.2rem; block-size: 1.2rem; }
.player__frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 0 0 1px rgb(201 164 100 / .45), 0 30px 80px -20px #000;
}
.player__frame iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
/* the page behind it does not scroll */
html:has(.player[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes player-in { from { opacity: 0; scale: .97; } }
  @keyframes fade-in { from { opacity: 0; } }
  .player[open] { animation: player-in var(--t-base) var(--ease); }
  .player[open]::backdrop { animation: fade-in var(--t-base) var(--ease-soft); }
}

/* --------------------------------------------------------------- forms */
.form { display: grid; gap: var(--s-3); max-width: 34rem; }
.field { display: grid; gap: .4rem; }
.field label { color: var(--ink-soft); font-size: .76rem; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  background: var(--paper-raised);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  font-size: var(--t-0);
  inline-size: 100%;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-mute); }
.field textarea { min-block-size: 8rem; resize: vertical; }
.form__note { font-size: var(--t--1); color: var(--ink-mute); max-width: 46ch; }
/* what became of the message: received, or why not */
.form__status {
  padding: var(--s-2) var(--s-3); border: 1px solid var(--rule); border-inline-start: 2px solid var(--accent);
  background: var(--paper-raised); color: var(--ink); font-size: var(--t-0);
}
.form__status[hidden] { display: none; }
.form__status.is-ok { border-inline-start-color: #2f6b3f; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.field [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.contact-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 54rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 { font-size: .95rem; font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; margin-top: var(--s-5); }
.contact-social { margin-top: var(--s-3); }

.detail-list { display: grid; gap: var(--s-3); }
.detail-list > div { display: grid; gap: .2rem; padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.detail-list dt { color: var(--gold-ink); font-size: .74rem; }
.detail-list dd { margin: 0; font-family: var(--display); font-size: var(--d-1); font-weight: 500; overflow-wrap: anywhere; }
.detail-list a { color: var(--accent); text-decoration: none; }
.detail-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.social-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social-row a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem .5rem .8rem; border: 1px solid var(--control);
  border-radius: 999px; text-decoration: none;
  font-size: var(--t--1); font-weight: 600; color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft);
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); }
.social-row svg { inline-size: 1rem; block-size: 1rem; }

/* --------------------------------------------------------------- search */
.search-panel { display: grid; gap: var(--s-4); }
.search-box { display: flex; gap: var(--s-2); max-width: 36rem; align-items: stretch; }
.search-box__field { flex: 1; }
.search-box input { block-size: 100%; }
.empty-note { color: var(--ink-soft); }
.search-status { color: var(--ink-mute); font-weight: 500; font-size: .76rem; }
.search-results { display: grid; gap: 0; }
.search-results li { border-top: 1px solid var(--rule); }
.search-results a {
  display: grid; gap: .25rem var(--s-3); padding-block: var(--s-3); text-decoration: none;
  grid-template-columns: 7.5rem minmax(0, 1fr);
}
.search-results a:not(:has(.result__media)) { grid-template-columns: minmax(0, 1fr); }
.search-results .result__media {
  grid-row: 1 / span 3; overflow: hidden; background: var(--stone); align-self: start;
}
.search-results .result__media img {
  inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: scale var(--t-slow) var(--ease-soft);
}
.search-results a:hover .result__media img { scale: 1.04; }
@media (max-width: 30rem) { .search-results a { grid-template-columns: 5rem minmax(0, 1fr); } }
.search-results .kicker { font-size: .7rem; }
.search-results h3 { font-size: var(--d-1); }
:lang(ka) .search-results h3:not([lang="tr"]) { font-size: var(--t-1); }
.search-results a:hover h3 { color: var(--accent); }
.search-results p { font-size: var(--t--1); color: var(--ink-soft); }
mark { background: var(--accent-wash); color: inherit; padding: 0 .1em; }

/* --------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: var(--s-1); justify-content: center; margin-top: var(--s-6); }
.pagination a, .pagination span {
  min-inline-size: 2.5rem; block-size: 2.5rem;
  display: inline-grid; place-items: center; padding-inline: .7rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-soft);
  font-variant-numeric: lining-nums;
  transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination [aria-current] { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.pagination .ellipsis { border-color: transparent; color: var(--ink-mute); }

/* --------------------------------------------------------------- footer */
/* the burgundy band above the footer: search the archive, follow it */
.search-band { margin-top: auto; background: var(--band); color: var(--band-ink); --focus: #ffd9a0; }
.search-band + .site-footer { margin-top: 0; }
.search-band__inner {
  display: grid; align-items: center; gap: var(--s-3) var(--s-5);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--s-4);
}
@media (min-width: 56rem) {
  .search-band__inner { grid-template-columns: minmax(12rem, auto) minmax(0, 1fr) auto; }
}
.search-band h2 { font-size: .95rem; color: var(--band-ink); }
.search-band p { font-size: var(--t--1); color: rgb(243 234 219 / .8); margin-top: .15rem; max-inline-size: 30ch; }
.search-band form { display: flex; max-inline-size: 30rem; inline-size: 100%; border: 1px solid rgb(243 234 219 / .45); }
@media (min-width: 56rem) { .search-band form { justify-self: center; } }
.search-band input {
  flex: 1; min-inline-size: 0; background: transparent; border: 0; color: var(--band-ink);
  padding: .78rem 1rem; font-size: var(--t-0);
}
.search-band input::placeholder { color: rgb(243 234 219 / .72); }
.search-band input:focus-visible { outline-offset: -2px; }
.search-band button {
  background: transparent; border: 0; border-inline-start: 1px solid rgb(243 234 219 / .45); border-radius: 0;
  padding: .78rem 1.2rem; font-size: .78rem;
}
.search-band button:hover { background: var(--band-deep); translate: none; }
.search-band__social { display: flex; gap: var(--s-2); list-style: none; padding: 0; }
.search-band__social a {
  display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem;
  border: 1px solid rgb(243 234 219 / .5); border-radius: 50%; color: var(--band-ink);
  transition: background-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft);
}
.search-band__social a:hover { background: var(--band-ink); color: var(--band); }
.search-band__social svg { inline-size: 1rem; block-size: 1rem; }

.site-footer {
  margin-top: auto;
  background: var(--night);
  color: var(--night-ink);
  padding-block: var(--s-6) var(--s-3);
  --logo-mark: #d02a1f;
  --logo-word: var(--night-head);
  --logo-tld:  var(--night-mute);
  --focus: #8fb8ff;
}
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: #e2c48d; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.footer-grid {
  display: grid; gap: var(--s-5) var(--s-4);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 60rem) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { block-size: 2.8rem; }
.footer-brand p { color: var(--night-mute); font-size: var(--t--1); max-width: 36ch; margin-top: var(--s-3); line-height: 1.65; }
.site-footer h2 { font-size: .82rem; color: var(--night-head); margin-bottom: var(--s-2); }
.site-footer ul { display: grid; gap: .45rem; list-style: none; padding: 0; margin: 0; font-size: var(--t--1); }
.site-footer li { overflow-wrap: anywhere; }
.footer-bottom {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--night-rule);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; align-items: baseline;
  font-size: var(--t--1); color: var(--night-mute);
}
/* the agency's logo, its "ortakfikir" line on the text's baseline: an image
   sits on the baseline with its bottom edge, and the logo's wordmark ends
   12.8% of its height above that (the "AJANS" line hangs below it) */
.agency { display: inline-flex; border-radius: 2px; }
.agency img {
  block-size: 1.8rem; inline-size: auto;
  translate: 0 calc(1.8rem * .128);
  background: none; opacity: .85;
}
.agency:hover img { opacity: 1; }
/* keeps the credit clear of the back-to-top button where the column reaches it */
@media (max-width: 89rem) { .footer-bottom { padding-inline-end: 3.5rem; } }

/* ---------------------------------------------------------- back to top */
.to-top {
  position: fixed; z-index: 40;
  inset-block-end: max(var(--s-3), env(safe-area-inset-bottom));
  inset-inline-end: clamp(var(--s-2), 3vw, var(--s-5));
  display: grid; place-items: center;
  inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%;
  background: #561420; color: #f3eadb; text-decoration: none;
  /* the thin gold ring keeps it visible over the dark footer */
  box-shadow: 0 0 0 1px #c9a464, 0 6px 18px rgb(0 0 0 / .25);
  opacity: 0; visibility: hidden; translate: 0 .5rem;
  transition: opacity var(--t-base) var(--ease), translate var(--t-base) var(--ease), visibility 0s linear var(--t-base),
              background-color .15s ease;
}
.to-top[data-visible], .no-js .to-top {
  opacity: 1; visibility: visible; translate: 0 0;
  transition: opacity var(--t-base) var(--ease), translate var(--t-base) var(--ease), visibility 0s, background-color var(--t-fast) var(--ease-soft);
}
.to-top:hover { background: #43101a; }
.to-top svg { inline-size: 1.2rem; block-size: 1.2rem; stroke-width: 1.3; }

/* --------------------------------------------------------------- 404 */
.nf { padding-block: var(--s-8); text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.nf__code { font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 400; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.nf h1 { font-size: var(--d-3); font-weight: 400; }
.nf p { color: var(--ink-soft); max-width: 44ch; }
.nf__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; margin-top: var(--s-2); }

/* --------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .search-band, .share, .pagination, .skip-link, .band--stone,
  .to-top, .article-aside, .reader-size { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { font-size: 11pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  *, *::before, *::after { animation: none !important; opacity: 1 !important; translate: none !important; }
}
