:root {
  --bg: #f4f1ea;
  --panel: rgba(255, 255, 255, 0.82);
  --ink: #1b2430;
  --muted: #5e6977;
  --line: rgba(27, 36, 48, 0.12);
  --brand: #9d4f2f;
  --brand-soft: #f3d5c4;
  --shadow: 0 18px 40px rgba(27, 36, 48, 0.08);
  --radius: 18px;
  --max: 1200px;
  --ui-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(157, 79, 47, 0.15), transparent 32%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(244, 241, 234, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0;
}

.brand {
  text-decoration: none;
}

.brand-mark {
  display: block;
  font-family: var(--ui-font);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.brand-name {
  display: block;
  font-family: var(--ui-font);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 22rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
  width: 100%;
}

.site-nav a {
  font-family: var(--ui-font);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--ink);
}

@media (min-width: 960px) {
  .site-header {
    position: static;
  }

  .site-header .shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.45rem 0 0.35rem;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-mark {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .brand-name {
    font-size: 0.8rem;
    line-height: 1.05;
    max-width: 13rem;
  }

  .site-nav {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.18rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 0.22rem 0.48rem;
  }
}

main {
  padding: 2rem 0 4.5rem;
}

.hero,
.page-block,
.status-box {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero {
  padding: 2.25rem;
  margin-bottom: 1.5rem;
}

.hero-home {
  padding: 2.25rem;
}

.publication-hero h1 {
  max-width: 18ch;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.8fr);
  gap: 1.5rem;
  align-items: end;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  font-family: var(--ui-font);
}

.visual-frame {
  margin: 0;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--line);
  background: #fff;
}

.visual-frame figcaption {
  margin-top: 1rem;
  color: var(--muted);
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.asset-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hero-aside {
  padding: 1.4rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-family: var(--ui-font);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.hero-home h1 {
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-section + .content-section,
.content-section + .cta-panel {
  margin-top: 1.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading .lead {
  max-width: 68ch;
}

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

.page-block,
.status-box {
  padding: 1.5rem;
}

.page-block p,
.status-box p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(157, 79, 47, 0.1);
  color: var(--brand);
  font-family: var(--ui-font);
  font-size: 0.84rem;
  font-weight: 700;
}

ul,
ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.compact-list {
  margin-top: 1rem;
}

li + li {
  margin-top: 0.35rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  font-family: var(--ui-font);
}

.link-row a:hover,
.link-row a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(27, 36, 48, 0.08);
}

.link-row a.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.feature-card,
.cta-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.feature-card {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: rgba(157, 79, 47, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(27, 36, 48, 0.1);
}

.cta-panel {
  margin-top: 1.5rem;
  padding: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
  font-family: var(--ui-font);
}

.form-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0.9rem 1rem;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid rgba(157, 79, 47, 0.25);
  outline-offset: 1px;
  border-color: rgba(157, 79, 47, 0.35);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--ui-font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-actions button:hover,
.form-actions button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(27, 36, 48, 0.08);
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--ui-font);
}

.form-status {
  min-height: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-link {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--ui-font);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 2rem 1.4rem;
  }

  .hero-split,
  .feature-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .page-block,
  .status-box,
  .feature-card,
  .cta-panel {
    padding: 1.25rem;
  }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 18px 36px rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .hero-visual {
    margin-top: 12px;
  }

  .hero-visual img {
    max-width: 100%;
  }
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: var(--ui-font);
}

.lang-switcher-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.92rem;
}

.lang-switcher a.is-active,
.lang-switcher a[aria-current="true"] {
  background: var(--brand-soft);
  color: var(--ink);
}

.lang-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.92rem;
}

