:root {
  color-scheme: light;
  --ink: #10141b;
  --ink-soft: #303844;
  --muted: #69727e;
  --paper: #f6f1e7;
  --paper-2: #fff9ed;
  --blue: #0f5c73;
  --green: #2f6a50;
  --wine: #a04752;
  --amber: #d99a3c;
  --aqua: #d7ece9;
  --clay: #e9c7ac;
  --line: rgba(16, 20, 27, 0.13);
  --line-strong: rgba(16, 20, 27, 0.26);
  --shadow: 0 26px 70px rgba(16, 20, 27, 0.18);
  --shadow-soft: 0 14px 34px rgba(16, 20, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 8%, rgba(15, 92, 115, 0.2), transparent 25rem),
    radial-gradient(circle at 92% 4%, rgba(217, 154, 60, 0.22), transparent 24rem),
    linear-gradient(180deg, #fff9ed 0%, #f6f1e7 46%, #eae1d4 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--blue);
  font-size: 0.94em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 249, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 700;
}

.main-nav a {
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--wine);
  border-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
  gap: clamp(34px, 5.5vw, 86px);
  align-items: center;
  min-height: calc(100vh - 71px);
  padding: clamp(46px, 7vw, 104px) clamp(18px, 5vw, 76px) clamp(34px, 5vw, 70px);
}

.hero-text {
  max-width: 1080px;
}

.kicker,
.meta-line {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1050px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.9vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: clamp(28px, 5vw, 54px);
  background: var(--line);
}

.hero-metrics span {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: rgba(255, 249, 237, 0.74);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-metrics strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 850;
}

.button-primary {
  background: linear-gradient(135deg, var(--ink), #243143);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.button-quiet {
  background: rgba(255, 250, 241, 0.7);
}

.editorial-board {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 12px;
  min-height: 570px;
  padding: 12px;
  background: rgba(255, 249, 237, 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.editorial-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.board-main {
  min-height: 330px;
}

.board-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.board-pair img {
  aspect-ratio: 1;
}

.board-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(15, 92, 115, 0.94), rgba(160, 71, 82, 0.92)),
    var(--ink);
  color: #fff;
}

.board-note span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

.routes-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.routes-section article {
  min-height: 270px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 249, 237, 0.86);
}

.routes-section article:nth-child(2) {
  background: var(--aqua);
}

.routes-section article:nth-child(3) {
  background: #f2dfd6;
}

.routes-section span {
  display: block;
  margin-bottom: 44px;
  color: var(--blue);
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.routes-section h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 0.98;
}

.routes-section p {
  max-width: 360px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.question-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: rgba(255, 249, 237, 0.72);
}

.question-strip article {
  min-height: 300px;
  padding: clamp(26px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.question-strip article:nth-child(2) {
  background: rgba(199, 131, 47, 0.08);
}

.question-strip article:last-child {
  border-right: 0;
}

.question-strip span {
  display: block;
  margin-bottom: 68px;
  color: var(--blue);
  font-weight: 900;
}

.question-strip h2,
.feature-copy h2,
.section-intro h2,
.publish-section h2,
.rescue-copy h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding: clamp(58px, 9vw, 130px) clamp(18px, 5vw, 76px);
}

.feature-image img {
  width: 100%;
  height: min(70vh, 720px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-copy {
  max-width: 760px;
}

.feature-copy p,
.section-intro p,
.publish-section p,
.rescue-copy p,
.rescue-card p,
.article-card p,
.featured-article p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.74;
}

.structure-list {
  display: grid;
  gap: 1px;
  margin: 36px 0 0;
  background: var(--line);
}

.structure-list div {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 20px;
  padding: 18px 0;
  background: var(--paper);
}

.structure-list dt {
  color: var(--wine);
  font-weight: 900;
}

.structure-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.library-section {
  padding: clamp(58px, 9vw, 130px) clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 84% 12%, rgba(217, 154, 60, 0.18), transparent 23rem),
    radial-gradient(circle at 18% 0%, rgba(15, 92, 115, 0.3), transparent 22rem),
    #10141b;
  color: #fff;
}

.section-intro {
  max-width: 880px;
  margin-bottom: 44px;
}

.library-section .section-intro p {
  color: rgba(255, 255, 255, 0.68);
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(240px, 2.5fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.library-tools label {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.library-tools input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.library-tools input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.library-tools span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}

.shelf-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
}

.shelf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.shelf.active,
.shelf:hover {
  background: #fffaf1;
  color: var(--ink);
}

.shelf span {
  font-weight: 850;
}

.shelf strong {
  color: var(--amber);
}

.article-area {
  display: grid;
  gap: 18px;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  min-height: 420px;
  background: #fff9ed;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.featured-article img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.featured-article > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.featured-article h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.98;
}

.text-link,
.card-bottom button,
.reader-share button,
.reader-close {
  width: fit-content;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-weight: 900;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.article-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.article-card > div:not(.card-bottom) {
  padding: 24px 24px 0;
}

.article-card h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  line-height: 1.02;
}

.article-card p {
  color: rgba(255, 255, 255, 0.66);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 0 24px 24px;
  color: rgba(255, 255, 255, 0.62);
}

.empty-state {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.reader-section {
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(215, 236, 233, 0.65), transparent 34%),
    var(--paper-2);
}

.reader-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255, 249, 237, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.reader-close {
  margin-bottom: 26px;
}

.reader-header h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.94;
}

.reader-header p {
  max-width: 820px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  line-height: 1.18;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 34px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.reader-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: var(--shadow-soft);
}

.reader-body {
  max-width: 760px;
}

.reader-body p {
  color: #25313a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  line-height: 1.72;
}

.reader-body h3 {
  margin: 2.1em 0 0.6em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.04;
}

.reader-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 760px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.publish-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(58px, 9vw, 130px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(143, 63, 69, 0.1), transparent 42%),
    var(--paper);
}

.publish-steps {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.publish-steps article {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  background: var(--paper);
}

.publish-steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.publish-steps h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.rescue-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 76px);
  background: #fffaf1;
}

.rescue-copy {
  max-width: 850px;
}

.rescue-card {
  padding: 28px;
  border-top: 6px solid var(--amber);
  background: var(--ink);
  color: #fff;
}

.rescue-card strong {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.rescue-card p {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 76px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .feature-block,
  .library-layout,
  .featured-article,
  .publish-section,
  .rescue-section,
  .routes-section {
    grid-template-columns: 1fr;
  }

  .editorial-board {
    min-height: 340px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .question-strip,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .question-strip article {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .question-strip article:last-child {
    border-bottom: 0;
  }

  .shelf-nav {
    position: static;
  }

  .publish-steps article {
    grid-template-columns: 44px 1fr;
  }

  .publish-steps p {
    grid-column: 2;
  }

  .library-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3.05rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .reader-share,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-image img,
  .featured-article img {
    height: 320px;
  }

  .editorial-board {
    padding: 8px;
  }

  .board-main {
    min-height: 250px;
  }

  .routes-section article,
  .question-strip article {
    min-height: 220px;
  }

  .structure-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
