:root {
  --page-background: #fcfdff;
  --page-background-deep: #f7f6f1;
  --panel-background: #f2f1ec;
  --panel-border: rgba(126, 120, 98, 0.18);
  --text-main: #1e241d;
  --text-soft: #4d564c;
  --gold: #b08a45;
  --gold-deep: #7d6030;
  --line: rgba(109, 106, 96, 0.12);
  --shadow: 0 10px 24px rgba(45, 42, 33, 0.08);
  --shadow-soft: 0 16px 36px rgba(45, 42, 33, 0.09);
  --radius-soft: 14px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #4a3a1f;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(180deg, var(--page-background) 0%, var(--page-background-deep) 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  border-top: 6px solid #8e9d64;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  padding: 1.35rem 0 0.4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem;
  color: #4d442f;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-link.is-active,
.language-switcher a[aria-current="page"] {
  color: #8a4c36;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.bkv-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  color: #4d442f;
  text-decoration: none;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(45, 42, 33, 0.04);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bkv-link:hover,
.bkv-link:focus-visible {
  background: rgba(255, 252, 245, 1);
  box-shadow: 0 8px 18px rgba(45, 42, 33, 0.08);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2.35rem;
  color: #403b30;
  flex-wrap: nowrap;
}

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  font: inherit;
  cursor: default;
  white-space: nowrap;
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -0.22rem;
  bottom: -0.16rem;
  width: 0.42rem;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.45rem 0.35rem;
}

.language-switcher span[aria-hidden="true"] {
  display: inline-block;
  padding: 0 0.55rem;
}

.language-switcher a {
  color: inherit;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  padding: 1.2rem 0 2.2rem;
  text-align: center;
}

.hero-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 0.8rem;
  border-radius: var(--radius-soft);
  filter: drop-shadow(0 8px 22px rgba(45, 42, 33, 0.14));
}

.hero-copy {
  width: 100%;
  max-width: 68rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.hero-copy .eyebrow {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: #6e674e;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.86rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  max-width: 12ch;
  color: #2b261f;
  font-size: clamp(1.9rem, 4.8vw, 3.4rem);
}

h2 {
  color: #2b261f;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  color: var(--text-main);
  font-size: 1.55rem;
}

.lead {
  margin: 0.75rem 0 0;
  max-width: none;
  color: #3f3a2d;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

.lead a {
  color: #504936;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.prose-page {
  padding: 1.5rem 0 3.5rem;
}

.prose-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.prose-header h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 3rem);
}

.prose {
  max-width: 68rem;
  margin: 0 auto;
  color: #3f3a2d;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose h2 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.prose p {
  margin: 0 0 1rem;
}

.prose a {
  color: #504936;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.support-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 18rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(115, 104, 72, 0.2);
  border-radius: var(--radius-soft);
  background: rgba(248, 244, 236, 0.96);
  color: #423827;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(45, 42, 33, 0.1);
  backdrop-filter: blur(4px);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.support-float:hover,
.support-float:focus-visible {
  background: rgba(248, 244, 236, 1);
  box-shadow: 0 12px 24px rgba(45, 42, 33, 0.14);
  transform: translateY(-2px);
}

.support-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--radius-pill);
  background: #e8e0de;
  color: #8b5a5a;
  font-size: 0.92rem;
  line-height: 1;
  flex: 0 0 auto;
}

.fathers-section {
  padding: 0 0 3rem;
}

.section-heading {
  margin-bottom: 1.9rem;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.father-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: min(100%, 17rem);
  aspect-ratio: 1 / 1;
  padding: 1.8rem;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18)),
    var(--panel-background);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.father-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18)),
    #e8e0de;
}

.father-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22)),
    #f7f7f5;
}

.father-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18)),
    #eef0e5;
}

.father-card:hover,
.father-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(126, 120, 98, 0.3);
}

.father-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 20ch;
}

.father-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.3rem;
  height: 4.3rem;
  overflow: hidden;
  border: 1px solid rgba(84, 73, 47, 0.4);
  border-radius: var(--radius-pill);
  color: #3f3828;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #c5c0a8 0%, #a8a187 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.father-mark-photo {
  width: 7.6rem;
  height: 7.6rem;
  padding: 0;
  background: #2b261f;
  box-shadow: 0 6px 16px rgba(45, 42, 33, 0.14);
}

.father-mark-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.father-card:nth-child(1) .father-mark-photo img {
  object-position: 50% 22%;
}

.father-card:nth-child(2) .father-mark-photo img {
  object-position: 50% 28%;
}

.father-card:nth-child(3) .father-mark-photo img {
  object-position: 50% 18%;
}

.card-cta {
  margin-top: auto;
  color: #5c533d;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.86;
}

.site-footer {
  border-top: 0;
  background: #8e9d64;
  margin-top: 1rem;
  padding: 1.4rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: #1f2417;
}

.footer-inner a {
  color: #1f2417;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.bkv-link:focus-visible,
.nav-link:focus-visible,
.language-switcher a:focus-visible,
.support-float:focus-visible,
.lead a:focus-visible,
.prose a:focus-visible,
.father-card:focus-visible,
.footer-inner a:focus-visible {
  outline: 2px solid #8e9d64;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    gap: 1.1rem;
    padding-top: 0.8rem;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-copy {
    margin: 0 auto;
  }

  h1 {
    margin: 0 auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav,
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .support-float {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .father-card {
    transition: none;
  }
}
