/* ==========================================================================
   The blog and the six guides — an editorial layer over site.css.

   The landing page sells; these pages are read. So they take a quieter
   dress: a serif for the headlines, hairline rules instead of cards, square
   corners, and a header that is a line of links rather than a bar. This
   sheet is linked after site.css on those fourteen pages only, and owns
   their header outright (.bnav — a new name, so the landing page's .nav
   can change without reaching here); the footer is shared from site.css. The
   article body — prose, tables, figures, cards — still comes from site.css;
   this file only re-dresses the headings and the read-next list.
   ========================================================================== */

/* --- type ---------------------------------------------------------------- */

/* Source Serif 4, served from this origin for the same reason Roboto Flex
   is (see tokens/fonts.css): a request to Google Fonts would hand every
   reader's address to a third party. Two subsets: Latin for the English
   pages and Cyrillic for the Ukrainian ones; each page preloads only the
   one it sets its headline in. Upright only — nothing on these pages is set
   in a serif italic, and the italic files weigh as much again. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/vendor/fonts/source-serif-4-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/vendor/fonts/source-serif-4-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --b-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --b-ink: #2b1c0b;
  --b-muted: #5c4c38;
  --b-soft: #8a7458;
  --b-kicker: #a8907a;
  --b-faint: #b8a288;
  --b-number: #c8b295;
  --b-rule: #e8dcc9;
  --b-underline: #ddcab0;
  --b-hover: #faf3e9;
  --b-accent: #7d5411;
  --b-accent-deep: #582810;
  --b-red: #a8394c;
  --b-ground: #fdf8f2;
  --b-max: 1080px;
}

body { background: var(--b-ground); color: var(--b-ink); }
::selection { background: #f8d088; color: var(--b-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 3px; }

/* One measure for everything on these pages; the article column inside
   it stays at its own 760px from site.css. */
.bwrap { max-width: var(--b-max); margin: 0 auto; padding-inline: 28px; }

.b-serif { font-family: var(--b-serif); font-weight: 400; }

/* --- header -------------------------------------------------------------- */

.bnav { border-bottom: 1px solid var(--b-rule); }
.bnav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 16px;
}
.bnav__brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--b-ink); text-decoration: none; }
.bnav__brand img { width: 26px; height: 26px; display: block; image-rendering: pixelated; }
.bnav__name { font: 700 17px / 1 var(--vetto-font-sans); letter-spacing: -0.01em; }
.bnav__gap { flex: 1 1 auto; }
.bnav__links { display: flex; align-items: center; gap: 22px; }
.bnav__link {
  font: 500 14px / 1 var(--vetto-font-sans);
  color: var(--b-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.bnav__link:hover { color: var(--b-ink); }
.bnav__link[aria-current="page"] { color: var(--b-ink); border-bottom-color: var(--b-ink); }

/* The two languages as one small word pair — the current one carries the
   rule, the other is the link. */
.bnav__lang { display: flex; align-items: baseline; gap: 7px; font: 600 13px / 1 var(--vetto-font-sans); }
.bnav__lang a {
  color: var(--b-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.bnav__lang a:hover { color: var(--b-ink); }
.bnav__lang a[aria-current="page"] { color: var(--b-ink); border-bottom-color: var(--b-ink); }
.bnav__lang-sep { color: #cdbba2; }

/* Outlined, not filled: on a reading page the button should be findable,
   not shouting. It fills on hover. */
.bnav__cta {
  font: 600 14px / 1 var(--vetto-font-sans);
  color: var(--b-ink);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--b-ink);
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--vetto-duration-quick) var(--vetto-ease-standard),
              color var(--vetto-duration-quick) var(--vetto-ease-standard);
}
.bnav__cta:hover { background: var(--b-ink); color: var(--b-ground); }

/* --- blog index: masthead ------------------------------------------------ */

.bhead {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 64px;
  align-items: end;
  padding-block: 64px 40px;
}
.bhead h1 {
  margin: 0;
  font: 400 clamp(44px, 6vw, 82px) / 0.94 var(--b-serif);
  letter-spacing: -0.02em;
  color: var(--b-ink);
}
.bhead p {
  margin: 0;
  max-width: 34em;
  font: 400 16.5px / 1.7 var(--vetto-font-sans);
  color: var(--b-muted);
  text-wrap: pretty;
}

/* A rule in the ink colour opens a section; the sand one closes a row. */
.brule { height: 1px; background: var(--b-ink); }
.brule.-soft { background: var(--b-rule); }

/* --- blog index: featured ------------------------------------------------ */

/* The newest piece, at full width above the list. It is also row 01 of the
   list below — a reader scanning the index by number should find every
   piece there, and the feature is a poster for it, not its only door. */
.bfeat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px 56px;
  padding: 32px 0;
  align-items: start;
  color: inherit;
  text-decoration: none;
  transition: background var(--vetto-duration-quick) var(--vetto-ease-standard);
}
.bfeat:hover { background: var(--b-hover); color: inherit; }
.bfeat__text { display: flex; flex-direction: column; gap: 18px; }
.bfeat__title {
  margin: 0;
  font: 400 clamp(28px, 3.4vw, 42px) / 1.1 var(--b-serif);
  letter-spacing: -0.015em;
  color: var(--b-ink);
  text-wrap: pretty;
}
.bfeat__dek {
  margin: 0;
  max-width: 32em;
  font: 400 16px / 1.7 var(--vetto-font-sans);
  color: var(--b-muted);
  text-wrap: pretty;
}
.bfeat__more {
  align-self: flex-start;
  padding-bottom: 3px;
  font: 600 14px / 1 var(--vetto-font-sans);
  color: var(--b-accent);
  border-bottom: 1px solid var(--b-underline);
}

/* The kicker and the date share a baseline; on the feature the kicker is
   the category's own colour, on the rows it is quiet. */
.bkick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.bkick__cat {
  font: 700 12px / 1 var(--vetto-font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-kicker);
}
.bkick__cat.-comparison { color: var(--b-red); }
.bkick__meta {
  font: 500 12px / 1 var(--vetto-font-sans);
  color: var(--b-kicker);
  font-variant-numeric: var(--vetto-numeric-tabular);
}

/* Covers lose the app's rounded corners here: a plate in a book has a
   hairline and square edges. */
.bcover, .bcover.cover {
  border-radius: 0;
  border: 1px solid var(--b-rule);
  background: var(--b-ground);
}
.bcover svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }

/* --- blog index: filters ------------------------------------------------- */

.bfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 20px;
}
.bfilters__list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.bfilters__list button {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  font: 500 14px / 1 var(--vetto-font-sans);
  color: var(--b-soft);
}
.bfilters__list button:hover { color: var(--b-ink); }
.bfilters__list button[aria-pressed="true"] { font-weight: 700; color: var(--b-ink); border-bottom-color: var(--b-ink); }
.bfilters__count {
  font: 500 12px / 1 var(--vetto-font-sans);
  letter-spacing: 0.1em;
  color: var(--b-kicker);
  font-variant-numeric: var(--vetto-numeric-tabular);
}

/* --- the list (blog index and read-next alike) --------------------------- */

/* Number, words, picture — one row per piece, ruled off from the next.
   The whole row is the link, as before, so a thumb landing on the number
   or the picture still gets there. The row is the same on the index and
   at the foot of a guide so a reader learns it once. */
.blist { display: flex; flex-direction: column; margin: 0; padding: 0; }
.blist .post { display: block; }
.blist .post__link {
  display: grid;
  grid-template-columns: minmax(0, 74px) minmax(0, 1fr) minmax(0, 150px);
  gap: 10px 28px;
  padding: 26px 0;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--b-rule);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.blist .post__link:hover { background: var(--b-hover); color: inherit; }
.blist .post__link:active { transform: none; }
.blist .post[hidden] { display: none; }

.post__num {
  font: 300 26px / 1 var(--b-serif);
  color: var(--b-number);
  font-variant-numeric: var(--vetto-numeric-tabular);
}
.blist .post__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; }
.blist .post__tag {
  display: inline;
  margin: 0;
  font: 700 11.5px / 1 var(--vetto-font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-kicker);
}
.blist .post__meta {
  display: inline;
  font: 500 11.5px / 1 var(--vetto-font-sans);
  color: var(--b-faint);
}
.blist .post__title {
  margin: 0;
  font: 400 clamp(21px, 2.2vw, 27px) / 1.16 var(--b-serif);
  letter-spacing: -0.01em;
  color: var(--b-ink);
  text-wrap: pretty;
}
.blist .post__body {
  margin: 0;
  max-width: 44em;
  font: 400 15px / 1.65 var(--vetto-font-sans);
  color: var(--b-muted);
  text-wrap: pretty;
}
.blist .post__art { border-radius: 0; background: transparent; }
.blist .post__art .cover {
  border-radius: 0;
  border: 1px solid var(--b-rule);
  background: var(--b-ground);
}

/* On a phone the picture would be squeezed to a thumbnail beside the
   words, so it moves under them at the words' width; the number keeps its
   own narrow column. */
@media (max-width: 640px) {
  .blist .post__link { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; padding: 22px 0; }
  .blist .post__art { grid-column: 2; max-width: 260px; }
}

/* --- blog index: closing box --------------------------------------------- */

.bbox {
  border: 1px solid var(--b-ink);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 56px;
  align-items: center;
}
.bbox__text { display: flex; flex-direction: column; gap: 14px; }
.bbox h2 {
  margin: 0;
  font: 400 clamp(28px, 3.2vw, 40px) / 1.08 var(--b-serif);
  letter-spacing: -0.015em;
  color: var(--b-ink);
  text-wrap: balance;
}
.bbox p { margin: 0; max-width: 34em; font: 400 16px / 1.7 var(--vetto-font-sans); color: var(--b-muted); text-wrap: pretty; }
.bbox__cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 4px;
  background: var(--b-ink);
  color: var(--b-ground);
  font: 600 15px / 1 var(--vetto-font-sans);
  text-decoration: none;
  transition: background var(--vetto-duration-quick) var(--vetto-ease-standard);
}
.bbox__cta:hover { background: var(--b-accent-deep); color: var(--b-ground); }
.bbox__art { display: flex; justify-content: flex-end; }
.bbox__art img { width: 132px; height: 132px; image-rendering: pixelated; }
@media (max-width: 640px) {
  .bbox { padding: 32px 24px; }
  .bbox__art { justify-content: flex-start; }
  .bbox__art img { width: 96px; height: 96px; }
}

/* --- guides: headings and the read-next list ----------------------------- */

/* The article's own headline and its section headings go to the serif;
   the small uppercase overline they inherit from site.css is for labels,
   not for a heading that opens a thousand words. The page's kicker line
   above the h1 stays as it was. */
main h1.h2 {
  font: 400 clamp(36px, 5vw, 60px) / 1.02 var(--b-serif);
  letter-spacing: -0.02em;
  color: var(--b-ink);
  margin-bottom: 20px;
}
main h2.overline {
  font: 400 clamp(25px, 2.8vw, 32px) / 1.15 var(--b-serif);
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--b-ink);
}
main .close-cta h2 { font-family: var(--b-serif); font-weight: 400; letter-spacing: -0.015em; }

/* The cover plate at the top of a guide loses the app's rounded corners for
   the same reason the row covers do. */
main .guide-cover { border-radius: 0; border: 1px solid var(--b-rule); }

/* The closing call to action re-dressed as the outlined box the blog index
   ends on — the brown rounded card it inherits belongs to the landing page.
   The markup stays the landing's (a cookie, a heading, a line, a button);
   only the dress changes, so the same box serves fourteen pages. Properties
   are set outright rather than trusted to a cascade the landing sheet may
   reshape under it. */
main .close-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 40px;
  row-gap: 0;
  align-items: center;
  border: 1px solid var(--b-ink);
  border-radius: 0;
  background: transparent;
  color: var(--b-ink);
  padding: 44px 40px;
  text-align: left;
  max-width: calc(var(--b-max) - 56px);
  margin-inline: auto;
  overflow: visible;
}
main .close-cta::before, main .close-cta::after { display: none; }
main .close-cta .cookie {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 132px;
  height: 132px;
  margin: 0;
  background: transparent;
  border-radius: 0;
  align-items: center;
}
main .close-cta .cookie img { width: 132px !important; height: auto; margin: 0 !important; }
main .close-cta .h2, main .close-cta p, main .close-cta .btn, main .close-cta .promises { grid-column: 1; }
main .close-cta .h2 {
  margin: 0 0 14px;
  max-width: 18em;
  font: 400 clamp(28px, 3.2vw, 40px) / 1.08 var(--b-serif);
  letter-spacing: -0.015em;
  color: var(--b-ink);
  text-wrap: balance;
}
main .close-cta p {
  margin: 0 0 22px;
  max-width: 34em;
  font: 400 16px / 1.7 var(--vetto-font-sans);
  color: var(--b-muted);
  opacity: 1;
  text-wrap: pretty;
}
main .close-cta .btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 0;
  height: auto;
  padding: 13px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--b-ink);
  color: var(--b-ground);
  font: 600 15px / 1.3 var(--vetto-font-sans);
  box-shadow: none;
  filter: none;
  transform: none;
}
main .close-cta .btn:hover { background: var(--b-accent-deep); color: var(--b-ground); box-shadow: none; filter: none; transform: none; }
main .close-cta .promises { margin: 18px 0 0; max-width: 40em; color: var(--b-soft); opacity: 1; }
@media (max-width: 640px) {
  main .close-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  main .close-cta .cookie { grid-column: 1; grid-row: auto; order: 10; margin-top: 28px; width: 96px; height: 96px; }
  main .close-cta .cookie img { width: 96px !important; }
}

.read-next { margin-top: 56px; }
.read-next h2.overline { font: 700 11.5px / 1 var(--vetto-font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--b-kicker); }
.read-next .posts { display: flex; flex-direction: column; gap: 0; margin: 0; border-top: 1px solid var(--b-ink); }

/* --- footer -------------------------------------------------------------- */

/* The footer itself is shared and styled in site.css; here it only keeps
   to these pages' narrower measure. */
.bfoot__inner { max-width: var(--b-max); }

/* --- narrow ------------------------------------------------------------- */

@media (max-width: 640px) {
  .bwrap { padding-inline: 20px; }
  .bnav__inner { gap: 12px 16px; }
  .bnav__links { gap: 14px; }
  .bhead { padding-block: 44px 32px; }
  .bfeat { padding: 24px 0; }
}
