:root {
  --paper: #F7F2E9;
  --paper-2: #FDFBF6;
  --ink: #16333A;
  --ink-60: rgba(22, 51, 58, .6);
  --ink-20: rgba(22, 51, 58, .2);
  --teal: #175E63;
  --teal-deep: #0E3F45;
  --petrol: #0C2F35;
  --petrol-2: #0B262B;
  --sage: #7FA080;
  --sage-soft: #DCE5D6;
  --coral: #E06A4E;
  --blush: #F3E0D5;
  --slot: #EDE4D6;
  --disp: "Unbounded", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --wrap: min(1180px, 92vw);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3 { font-family: var(--disp); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90;
  background: var(--coral);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- header ---------- */
.topbar { padding: clamp(14px, 2.4vw, 26px) 0 clamp(12px, 1.8vw, 18px); }

.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }

.brand img { height: clamp(34px, 4.6vw, 46px); width: auto; }

.topbar__mail {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: clamp(.85rem, 1.4vw, 1rem);
  text-decoration: none; color: var(--teal);
  border-bottom: 1px solid var(--ink-20);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.topbar__mail svg { width: 1.1em; height: 1.1em; fill: var(--coral); transition: transform .3s; }
.topbar__mail:hover { color: var(--coral); border-color: var(--coral); }
.topbar__mail:hover svg { transform: scale(1.2) rotate(-8deg); }

.menu {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-block: 1px solid var(--ink);
  transition: box-shadow .3s;
}
.menu.is-stuck { box-shadow: 0 10px 30px -18px rgba(12, 47, 53, .5); }

.menu__in { display: flex; flex-wrap: wrap; }

.menu a {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
  padding: clamp(.7rem, 1.6vw, 1rem) clamp(.6rem, 1.5vw, 1.4rem);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(.72rem, 1.1vw, .85rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
}
.menu a + a { border-left: 1px solid var(--ink-20); }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--coral);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.menu a:hover { color: var(--teal); }
.menu a:hover::after { transform: scaleX(1); }

/* ---------- media slots ---------- */
.media-slot {
  position: relative;
  background: var(--slot);
  border: 1px solid var(--ink-20);
  overflow: hidden;
  isolation: isolate;
}
.media-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot:has(img) .slot-note { display: none; }

.slot-note {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: .35rem;
  color: rgba(22, 51, 58, .5);
  font-family: var(--hand);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  text-align: center;
  padding: 1rem;
}
.slot-note svg { width: clamp(28px, 4vw, 44px); height: auto; fill: none; stroke: rgba(22, 51, 58, .35); stroke-width: 1.4; stroke-dasharray: 4 4; }

/* ---------- hero ---------- */
.hero-media { height: clamp(300px, 52vw, 620px); border-left: 0; border-right: 0; }

.hero__head { position: relative; margin-top: clamp(-96px, -9vw, -48px); z-index: 2; }

.hero h1 {
  display: inline-block;
  background: var(--paper);
  padding: clamp(.5rem, 1.6vw, .9rem) clamp(1rem, 3vw, 2rem) clamp(.7rem, 2vw, 1.1rem) 0;
  font-size: clamp(1.9rem, 6.2vw, 4.4rem);
  font-weight: 700;
  max-width: 22ch;
}

.u-scribble { position: relative; white-space: nowrap; color: var(--teal); }
.u-scribble::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c20-6 38 4 58-2s40-2 58 0' fill='none' stroke='%23E06A4E' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero__sub { max-width: 52ch; margin-top: clamp(.8rem, 2vw, 1.4rem); font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-60); }
.hero__sub strong { color: var(--ink); }

.hero__note {
  display: inline-block; margin-top: .8rem;
  font-family: var(--hand); font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--coral); transform: rotate(-2.5deg);
}

/* ---------- ticker ---------- */
.ticker {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--teal);
  color: var(--paper);
  overflow: hidden;
  border-block: 1px solid var(--petrol);
}
.ticker__track {
  display: flex; gap: 2.2rem; align-items: center;
  width: max-content;
  padding: .8rem 0;
  animation: tick 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--disp); font-size: clamp(.72rem, 1.3vw, .95rem); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker i { font-style: normal; color: var(--coral); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 6.5rem); }

.sec-head { display: flex; align-items: baseline; gap: clamp(.8rem, 2vw, 1.6rem); flex-wrap: wrap; }
.sec-num { font-family: var(--hand); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--coral); line-height: 1; }
.sec-head h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 700; }
.sec-link { margin-left: auto; font-weight: 600; font-size: .9rem; color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .25s; }
.sec-link:hover { color: var(--coral); }

/* ---------- actual ---------- */
.actual-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.6rem, 4vw, 3.4rem); margin-top: clamp(1.6rem, 4vw, 3rem); }

.card-featured {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--sage-soft);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  display: grid; gap: 1rem; align-content: start;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.card-featured:hover { transform: translate(-4px, -4px); box-shadow: 16px 16px 0 var(--sage-soft); }

.card-featured__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.chip {
  background: var(--coral); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .3em .9em; border-radius: 999px;
}
.card-featured time, .news-row time { color: var(--ink-60); font-size: .85rem; }

.card-featured h3 { font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.card-featured h3 a { text-decoration: none; background-image: linear-gradient(var(--coral), var(--coral)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s cubic-bezier(.2, .7, .2, 1); }
.card-featured h3 a:hover { background-size: 100% 2px; }
.card-featured p { color: var(--ink-60); }

.lnk { font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; width: fit-content; transition: color .25s, letter-spacing .25s; }
.lnk:hover { color: var(--coral); letter-spacing: .02em; }

.news-list { display: grid; align-content: start; }
.news-row { padding: clamp(1rem, 2.4vw, 1.5rem) 0; border-top: 1px dashed var(--ink-20); display: grid; gap: .45rem; }
.news-row:first-child { border-top: 0; padding-top: 0; }
.news-row h3 { font-family: var(--body); font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.15rem); line-height: 1.4; }
.news-row h3 a { text-decoration: none; transition: color .25s; }
.news-row:hover h3 a { color: var(--teal); }
.news-row p { color: var(--ink-60); font-size: .95rem; }

/* ---------- quote ---------- */
.quote-band { background: var(--blush); padding-block: clamp(2.6rem, 7vw, 5rem); border-block: 1px solid var(--ink-20); }
.quote-band blockquote p {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 2rem); line-height: 1.35;
  max-width: 34ch;
  position: relative; padding-left: clamp(1.6rem, 4vw, 3rem);
}
.quote-band blockquote p::before { content: "«"; position: absolute; left: 0; top: -.1em; color: var(--coral); font-size: 1.6em; line-height: 1; }
.quote-band__who { display: block; margin-top: 1.2rem; margin-left: clamp(1.6rem, 4vw, 3rem); font-family: var(--hand); font-size: 1.3rem; color: var(--teal); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.hand-note { display: inline-block; margin: .9rem 0 .4rem; font-family: var(--hand); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--coral); transform: rotate(-1.5deg); }

.about__text p + p { margin-top: 1rem; }
.about__text p { color: var(--ink-60); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(1.6rem, 3.5vw, 2.6rem); border-top: 1px solid var(--ink); padding-top: clamp(1.2rem, 2.5vw, 1.8rem); }
.stat b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 4.4vw, 3rem); color: var(--teal); line-height: 1; }
.stat b::after { content: "+"; color: var(--coral); }
.stat span { display: block; margin-top: .5rem; font-size: .85rem; color: var(--ink-60); }

.about__media { position: relative; padding: 0 clamp(1rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2.4rem) 0; }
.about__media::before {
  content: ""; position: absolute; inset: 8% -2% -3% 10%;
  background: var(--coral); opacity: .9; transform: rotate(2deg); z-index: 0;
}
.media-slot--portrait { aspect-ratio: 4 / 5; z-index: 1; }
.about__caption { position: absolute; right: 0; bottom: 0; z-index: 2; background: var(--paper); padding: .2rem .8rem; font-family: var(--hand); font-size: 1.2rem; color: var(--teal); transform: rotate(-2deg); }

/* ---------- useful ---------- */
.useful { background: var(--petrol); color: var(--paper); padding-block: clamp(3rem, 8vw, 6.5rem); }

.useful__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.sec-head--dark h2 { color: var(--paper); }
.useful__lead { margin-top: 1.1rem; color: rgba(247, 242, 233, .72); max-width: 40ch; }

.useful__side { position: sticky; top: clamp(64px, 9vw, 92px); display: grid; gap: 1.4rem; }
.media-slot--square { aspect-ratio: 1; border-color: rgba(247, 242, 233, .3); background: var(--teal-deep); }
.media-slot--square .slot-note { color: rgba(247, 242, 233, .6); }
.media-slot--square .slot-note svg { stroke: rgba(247, 242, 233, .4); }

.useful__list { display: grid; }

.topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: clamp(.8rem, 2vw, 1.6rem);
  align-items: center;
  padding: clamp(1.1rem, 2.6vw, 1.7rem) clamp(.4rem, 1vw, .9rem);
  border-top: 1px solid rgba(247, 242, 233, .22);
  text-decoration: none;
  transition: background .3s, padding-left .3s;
}
.topic:last-child { border-bottom: 1px solid rgba(247, 242, 233, .22); }
.topic:hover { background: var(--teal-deep); padding-left: clamp(1rem, 2.4vw, 1.8rem); }

.topic__num { font-family: var(--hand); font-size: 1.5rem; color: var(--coral); }
.topic h3 { font-size: clamp(1rem, 2vw, 1.3rem); }
.topic p { margin-top: .4rem; color: rgba(247, 242, 233, .68); font-size: .93rem; }
.topic__tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(247, 242, 233, .4); border-radius: 999px; padding: .3em .9em; white-space: nowrap; }
.topic__arrow { font-size: 1.4rem; color: var(--coral); transition: transform .3s; }
.topic:hover .topic__arrow { transform: translateX(6px) rotate(-45deg); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__lead p { margin-top: 1rem; color: var(--ink-60); max-width: 40ch; }
.contact__mail { margin-top: 1.4rem; font-size: clamp(1rem, 2vw, 1.25rem); }

.form { display: grid; gap: 1.3rem; background: var(--paper-2); border: 1px solid var(--ink); padding: clamp(1.4rem, 3.4vw, 2.6rem); box-shadow: 10px 10px 0 var(--blush); }

.field { display: grid; gap: .35rem; }
.field span { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-20);
  padding: .5rem 0; resize: vertical;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--coral); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.agree { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--ink-60); }
.agree input { appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin-top: .15rem; border: 1px solid var(--ink); background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.agree input::before { content: "♥"; font-size: 13px; line-height: 1; color: #fff; transform: scale(0); transition: transform .2s; }
.agree input:checked { background: var(--teal); border-color: var(--teal); }
.agree input:checked::before { transform: scale(1); }

.btn {
  justify-self: start;
  font: inherit; font-weight: 600; letter-spacing: .06em;
  background: var(--coral); color: #fff; border: 0; cursor: pointer;
  padding: .85em 2.2em; border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(224, 106, 78, .8); background: #cf5a3f; }
.btn:active { transform: translateY(0); }

.form__ok { font-family: var(--hand); font-size: 1.35rem; color: var(--teal); }
.form.is-sent .field, .form.is-sent .agree, .form.is-sent .btn { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--petrol-2); color: rgba(247, 242, 233, .8); padding-top: clamp(2.6rem, 6vw, 4.5rem); }

.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2.4fr) minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.6rem, 4vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3.4rem); }

.footer__logo { display: inline-block; background: var(--paper); padding: .5rem .9rem; border-radius: 6px; }
.footer__logo img { height: 30px; width: auto; }
.footer__brand p { margin-top: 1rem; font-size: .9rem; max-width: 34ch; }

.footer h3 { font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: .9rem; }
.footer__col { display: grid; gap: .5rem; justify-items: start; align-content: start; }
.footer__col a { text-decoration: none; font-size: .95rem; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; width: fit-content; }
.footer__col a:hover { color: var(--coral); border-color: var(--coral); }
.footer__small { font-size: .8rem; color: rgba(247, 242, 233, .5); }

.footer__heart { justify-items: center; text-align: center; gap: .6rem; }
.footer__heart svg { width: 34px; height: 34px; fill: var(--coral); animation: beat 2.6s ease-in-out infinite; }
.footer__heart span { font-family: var(--hand); font-size: 1.25rem; line-height: 1.3; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } 48% { transform: scale(1); } }

.footer__bottom { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.2rem; border-top: 1px solid rgba(247, 242, 233, .16); font-size: .8rem; color: rgba(247, 242, 233, .5); }

/* ---------- reveals ---------- */
.js [data-rv] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), clip-path .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js [data-rv="up"] { transform: translateY(34px); }
.js [data-rv="left"] { transform: translateX(46px); }
.js [data-rv="zoom"] { transform: scale(.96); }
.js [data-rv="mask"] { clip-path: inset(0 0 100% 0); transform: translateY(14px); }
.js .rv-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .ticker__track, .footer__heart svg { animation: none; }
}

/* ---------- article & stubs ---------- */
.article { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem); max-width: min(860px, 92vw); }

.crumbs { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-60); margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--ink-20); transition: color .25s, border-color .25s; }
.crumbs a:hover { color: var(--coral); border-color: var(--coral); }

.article h1 { font-size: clamp(1.6rem, 4.6vw, 3rem); font-weight: 700; margin-top: 1rem; max-width: 26ch; }
.article__read { color: var(--ink-60); font-size: .85rem; }
.article__lead { margin-top: clamp(1rem, 2.5vw, 1.6rem); font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--teal); font-weight: 500; max-width: 56ch; }

.article__body { margin-top: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1.1rem; }
.article__body p { color: var(--ink-60); }
.article__body h2 { font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-top: .8rem; color: var(--ink); }

.disclaimer { border-left: 3px solid var(--coral); background: var(--blush); padding: .9rem 1.2rem; color: var(--ink) !important; font-size: .92rem; }

.article__more { margin-top: clamp(2rem, 5vw, 3.4rem); border-top: 1px solid var(--ink); padding-top: 1.4rem; display: grid; gap: .8rem; justify-items: start; }
.article__more h2 { font-size: 1rem; font-family: var(--body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }

.stub { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(4rem, 12vw, 8rem); display: grid; gap: 1.2rem; justify-items: start; }
.stub__num { font-family: var(--hand); font-size: clamp(2rem, 5vw, 3.4rem); color: var(--coral); line-height: 1; }
.stub h1 { font-size: clamp(1.8rem, 5.4vw, 3.4rem); font-weight: 700; }
.stub p { max-width: 46ch; color: var(--ink-60); }
.stub .lnk { margin-top: .6rem; }

/* ---------- rubber breakpoints ---------- */
@media (max-width: 960px) {
  .actual-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .useful__grid { grid-template-columns: 1fr; }
  .useful__side { position: static; }
  .media-slot--square { max-width: 420px; aspect-ratio: 16 / 10; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .menu a { flex: 1 1 50%; border-left: 0 !important; border-top: 1px solid var(--ink-20); }
  .menu a:nth-child(-n+2) { border-top: 0; }
  .stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .topic { grid-template-columns: auto minmax(0, 1fr) auto; }
  .topic__tag { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__head { margin-top: -8vw; }
}
