:root {
  --ink: #11100e;
  --paper: #f7f1e5;
  --paper-soft: #fffaf0;
  --gold: #9b742e;
  --gold-dark: #6f4e1e;
  --teal: #173c3a;
  --line: rgba(17, 16, 14, 0.16);
  --shadow: 0 20px 50px rgba(17, 16, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 5vw, 4rem);
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-link span,
.footer-brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.site-nav a {
  padding: 0.45rem 0;
  color: #2b2822;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold-dark);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, calc(100svh - 72px));
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 241, 229, 0.96) 0%, rgba(247, 241, 229, 0.78) 39%, rgba(247, 241, 229, 0.16) 72%),
    url("images/cover_wyd_koci_atr.png") center / cover no-repeat;
}

.hero-content {
  width: min(620px, 100%);
}

.hero-logo {
  width: clamp(86px, 16vw, 148px);
  margin-bottom: 1.25rem;
}

.eyebrow,
.section-kicker,
.publication-label {
  margin: 0 0 0.7rem;
  color: var(--gold-dark);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3.1rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1rem;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}

.hero-note {
  display: inline-block;
  margin-bottom: 0;
  color: var(--paper-soft);
  background: var(--teal);
  padding: 0.55rem 0.75rem;
  border-left: 4px solid var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.publications-section,
.about-section,
.shop-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.publications-section {
  background: var(--paper-soft);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.publication-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.publication-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

.publication-content {
  display: grid;
  align-content: start;
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.publication-content p:not(.publication-label) {
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

.button-link {
  justify-self: start;
  min-height: 44px;
  padding: 0.72rem 1rem;
  color: var(--paper-soft);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: var(--ink);
  background: var(--gold);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split-section p {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.shop-section {
  color: var(--paper-soft);
  background: var(--ink);
}

.shop-panel {
  border-left: 5px solid var(--gold);
  padding-left: clamp(1rem, 3vw, 2rem);
}

.shop-panel p:last-child {
  max-width: 58rem;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.shop-panel .section-kicker {
  color: #d9b66a;
}

.site-footer {
  padding: 2rem clamp(1rem, 5vw, 4rem);
  background: #fffaf0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.footer-meta {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-align: right;
}

.footer-meta p {
  margin: 0.1rem 0;
}

.future-links {
  color: #625b50;
}

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 700px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(247, 241, 229, 0.98) 0%, rgba(247, 241, 229, 0.9) 43%, rgba(247, 241, 229, 0.18) 100%),
      url("images/cover_wyd_koci_atr.png") center bottom / cover no-repeat;
  }

  .publication-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .brand-link span {
    font-size: 0.95rem;
  }

  .site-nav {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 660px;
  }
}
