/* Waternut — modernised Blogus/Blogier magazine list.
   Colours follow the live default theme (magenta–coral gradient, dark footer).
   Fonts: Josefin Sans + Open Sans, self-hosted, SIL OFL. */

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/josefinsans-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/josefinsans-variable-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: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/opensans-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/opensans-variable-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;
}

:root {
  --magenta: #89216b;
  --coral: #da4453;
  --grad: linear-gradient(90deg, #89216b 0%, #da4453 100%);
  --ink: #212121;
  --text: #002050;
  --muted: #5b5b5b;
  --soft: #718096;
  --page: #ffffff;
  --wash: #eff2f7;
  --line: #e2e8f0;
  --foot: #0f1012;
  --foot-dim: #9b9ea8;
  --max: 1080px;
  --sans: "Open Sans", system-ui, sans-serif;
  --display: "Josefin Sans", "Open Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* Header — clean magazine bar, white like the current site */
.site-head {
  background: var(--page);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.6rem;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand:hover { color: var(--magenta); }
.head-end { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; }
.lang a, .lang span {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}
.lang span {
  color: #fff;
  background: var(--grad);
}
.lang a:hover { color: var(--magenta); border-color: var(--line); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  background: var(--page);
}
.nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--magenta); }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 0 var(--magenta);
}

/* Home intro + article list */
.mast-intro { padding: 2.4rem 0 1.2rem; }
.mast-intro .kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.5rem;
}
.mast-intro h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.7rem;
}
.mast-intro .lede { max-width: 42rem; color: var(--muted); margin: 0; }

.feed { display: grid; gap: 1.15rem; padding: 0 0 3rem; }
.entry {
  display: grid;
  grid-template-columns: minmax(16rem, 38%) 1fr;
  gap: 0;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 16, 18, 0.04);
}
.entry:hover { border-color: #d5c2ce; box-shadow: 0 8px 24px rgba(137, 33, 107, 0.08); }
.entry .thumb { display: block; background: #d7dde8; min-height: 100%; }
.entry .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.entry:hover .thumb img { transform: scale(1.03); transition: transform 0.4s ease; }
.entry .body { padding: 1.25rem 1.4rem 1.35rem; display: flex; flex-direction: column; align-items: flex-start; }
.pill {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.2;
}
.entry h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0.7rem 0 0.45rem;
}
.entry h2 a { color: inherit; text-decoration: none; }
.entry h2 a:hover { color: var(--magenta); }
.entry .excerpt { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.btn-more {
  display: inline-block;
  border: 1.5px solid var(--magenta);
  color: var(--magenta);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: transparent;
}
.btn-more:hover, .entry:hover .btn-more {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* Article pages */
.crumbs { font-size: 0.88rem; color: var(--soft); margin: 1.4rem 0 0.8rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--magenta); }
.article-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0.55rem 0 0.6rem;
}
.meta { color: var(--soft); font-size: 0.92rem; margin: 0 0 1.2rem; }
.hero-fig { margin: 0 0 1.5rem; background: var(--page); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.hero-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-fig figcaption, .credit {
  font-size: 0.82rem;
  color: var(--soft);
  padding: 0.55rem 0.85rem 0.7rem;
  line-height: 1.45;
}
.prose { max-width: 42.5rem; }
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.7rem;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.35rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.stage { padding-bottom: 3rem; }
.plain { padding-bottom: 3rem; }
.plain h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.plain .lede { color: var(--muted); max-width: 42rem; }

.related { margin: 2.4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
@media (min-width: 720px) {
  .related ul { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.related a {
  display: block;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}
.related a:hover { border-color: #d5c2ce; color: var(--magenta); }
.related img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.related span { display: block; padding: 0.7rem 0.8rem 0.9rem; font-weight: 650; font-size: 0.95rem; line-height: 1.3; }

/* Footer — dark, like the current site, privacy only */
.site-foot {
  background: var(--foot);
  color: var(--foot-dim);
  padding: 2.4rem 0 2.2rem;
  margin-top: auto;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}
.site-foot .fm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.site-foot p { margin: 0; max-width: 36rem; font-size: 0.92rem; }
.site-foot nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.site-foot nav a:hover { color: #f4b8c4; }

.err { padding: 3.5rem 0 4rem; }
.err h1, .err h2 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.03em;
}
.err .btn { margin-right: 0.6rem; }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

@media (max-width: 800px) {
  .entry { grid-template-columns: 1fr; }
  .entry .thumb img { aspect-ratio: 16 / 9; }
  .nav-btn { display: inline-block; }
  .head-end { position: relative; }
  .nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 16, 18, 0.08);
    min-width: 12rem;
  }
  .nav ul { flex-direction: column; gap: 0.55rem; }
  .nav-toggle:checked ~ .nav { display: block; }
  .site-head .bar { min-height: 3.8rem; }
  .brand { font-size: 1.6rem; }
}
