:root {
  --bg: #f7f5f2;
  --surface: #fffdfa;
  --text: #1f2933;
  --muted: #5b6670;
  --accent: #7c3f3f;
  --accent-2: #274c5e;
  --line: #e6dfd7;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
}

/* Base */

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Hide clipped Hydure brand title on medium and small screens */

@media (max-width: 1400px) {
  .brand-title {
    display: none !important;
  }
}

/* Remove empty page-title spacing on the homepage */

.page-title:empty,
h1.page-title:empty,
.post-title:empty,
h1.post-title:empty {
  display: none;
  margin: 0;
  padding: 0;
}

/* Reduce excessive top spacing from the theme */

.page-content,
.post-content,
.content {
  margin-top: 0;
  padding-top: 0;
}

/* Header / title typography */

.site-title,
.brand-title,
.sidebar-about h1,
.sidebar-about .site-title {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}

/* Homepage hero with floated portrait */

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  margin: 0.25rem 0 1.25rem;
  box-shadow: var(--shadow);
  overflow: auto;
}

.hero-card {
  float: right;
  width: min(26%, 220px);
  min-width: 165px;
  margin: 0.15rem 0 0.8rem 1.15rem;

  background: linear-gradient(180deg, #fffdfa 0%, #f5efe7 100%);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.5rem;
}

.hero-card img {
  display: block;
  width: 100%;
  max-height: 285px;
  object-fit: cover;
  border-radius: 11px;
  margin: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;

  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
}

.hero p {
  font-size: 0.9rem;
  line-height: 1.52;
  margin: 0 0 0.64rem;
}

.hero a {
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.button-primary,
.button-secondary {
  display: inline-block;
  border-radius: 999px;
  padding: 0.46rem 0.68rem;
  font-size: 0.8rem;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary {
  background: var(--accent-2);
  color: white;
}

.button-primary:hover {
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--line);
}

/* Regular homepage sections */

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0 1.05rem;
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 0.5rem;
  color: var(--accent-2);
  font-size: 1rem;
  line-height: 1.25;
}

.section p {
  font-size: 0.9rem;
  line-height: 1.52;
  margin: 0 0 0.68rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Name pronunciation */

.pronounce {
  font-size: 0.9rem;
  color: var(--muted);
}

.pronunciation-section audio {
  width: 100%;
  max-width: 340px;
}

/* Small laptop */

@media (max-width: 1180px) {
  .hero {
    padding: 1rem;
    margin-top: 0;
  }

  .hero-card {
    width: 190px;
    min-width: 150px;
    margin-top: 0.25rem;
    margin-left: 1rem;
    margin-bottom: 0.6rem;
  }

  .hero-card img {
    max-height: 240px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
  }

  .hero p,
  .section p {
    font-size: 0.87rem;
    line-height: 1.48;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
  }

  .button-primary,
  .button-secondary {
    padding: 0.42rem 0.62rem;
    font-size: 0.78rem;
  }
}

/* Tablet and mobile */

@media (max-width: 760px) {
  .hero {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .hero-card {
    float: none;
    width: 220px;
    max-width: 70%;
    min-width: 0;
    margin: 0 0 0.85rem 0;
  }

  .hero-card img {
    max-height: none;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero p,
  .section p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .section {
    padding: 0.9rem;
  }
}

/* Very small screens */

@media (max-width: 520px) {
  .hero {
    padding: 0.8rem;
  }

  .hero-card {
    width: 200px;
    max-width: 80%;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .hero-eyebrow {
    font-size: 0.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Compact styling for regular content pages */

.post,
.page,
.post-content,
.page-content {
  font-size: 0.94rem;
  line-height: 1.58;
}

.post-content h1,
.page-content h1 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.post-content h2,
.page-content h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.post-content h3,
.page-content h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 1.2rem;
  margin-bottom: 0.45rem;
}

.post-content p,
.page-content p,
.post-content li,
.page-content li {
  font-size: 0.94rem;
  line-height: 1.58;
}

.post-content ul,
.page-content ul,
.post-content ol,
.page-content ol {
  padding-left: 1.25rem;
}

.post-content li,
.page-content li {
  margin-bottom: 0.45rem;
}

.post-content blockquote,
.page-content blockquote {
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .post,
  .page,
  .post-content,
  .page-content {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .post-content h1,
  .page-content h1 {
    font-size: 1.45rem;
  }

  .post-content h2,
  .page-content h2 {
    font-size: 1.12rem;
  }

  .post-content h3,
  .page-content h3 {
    font-size: 1rem;
  }

  .post-content p,
  .page-content p,
  .post-content li,
  .page-content li {
    font-size: 0.9rem;
    line-height: 1.52;
  }
}
/* Russian about page */

.about-ru-hero {
  margin-top: 0.25rem;
}

.about-ru-hero p {
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .about-ru-hero p {
    font-size: 0.87rem;
    line-height: 1.5;
  }
}

@media (max-width: 760px) {
  .about-ru-hero p {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}