:root{
  --ub-bg: #e9d1ac;
  --ub-bg-deep: #d8b486;
  --ub-surface: rgba(246, 233, 212, 0.84);
  --ub-paper: #f4e2c4;
  --ub-paper-2: #ecd2ab;
  --ub-ink: #2f2118;
  --ub-ink-soft: #4c392d;
  --ub-muted: #6d5545;
  --ub-muted-2: #8e7059;
  --ub-border: rgba(47, 33, 24, 0.14);
  --ub-border-strong: rgba(47, 33, 24, 0.24);

  --ub-accent: #7b5740;
  --ub-accent-deep: #5e412f;
  --ub-gold: #b08a56;
  --ub-highlight: rgba(255, 248, 236, 0.45);

  --ub-shadow: 0 20px 55px rgba(44, 25, 14, 0.12);
  --ub-shadow-soft: 0 10px 28px rgba(44, 25, 14, 0.08);

  --ub-radius-lg: 28px;
  --ub-radius-md: 20px;
  --ub-radius-sm: 12px;
}

html{
  scroll-behavior: smooth;
}

body{
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #ead4b0 0%, #e3c297 52%, #e7cfab 100%);
  color: var(--ub-ink);
  font-family: "Source Sans 3", Georgia, serif;
  line-height: 1.7;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Handmade paper texture */
body::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 248, 236, 0.08), rgba(255, 248, 236, 0.08)),
    url('/images/parchment-texture-tile.webp') left top / 720px 720px repeat;
  opacity: .5;
  mix-blend-mode: multiply;
}

/* Soft edge darkening */
body::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at center, transparent 58%, rgba(74, 50, 30, 0.08) 100%);
  opacity: 0.45;
}

body > *{
  position: relative;
  z-index: 1;
}

a{
  color: var(--ub-accent-deep);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

a:hover,
a:focus{
  color: var(--ub-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.eyebrow,
.footer-title{
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ub-ink);
  letter-spacing: 0.01em;
}

h1{
  font-weight: 600;
}

h2, h3{
  font-weight: 600;
}

p{
  color: var(--ub-ink-soft);
}

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

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(239, 221, 194, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ub-border);
  box-shadow: 0 4px 16px rgba(44, 25, 14, 0.04);
}

.navbar{
  padding: 0.95rem 0;
}

.brand-mark{
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ub-ink);
}

.nav-link{
  color: var(--ub-ink);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-link:hover,
.nav-link:focus,
.nav-link[aria-current="page"]{
  color: var(--ub-accent-deep);
}

.hero-shell,
.section-band,
.section-soft,
.page-shell{
  padding: 4.5rem 0;
}

.hero-grid{
  display: grid;
  gap: 2rem;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
}

.hero-copy,
.hero-panel,
.feature-card,
.split-panel,
.narrow-column,
.about-panel{
  background: var(--ub-surface);
  border: 1px solid var(--ub-border);
  box-shadow: var(--ub-shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-panel::before,
.feature-card::before,
.split-panel::before,
.narrow-column::before,
.about-panel::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20), transparent 28%),
    linear-gradient(0deg, rgba(90,60,35,0.03), transparent 30%);
}

.hero-copy,
.hero-card,
.feature-card,
.split-panel,
.narrow-column,
.about-panel{
  border-radius: var(--ub-radius-lg);
}

.hero-copy{
  padding: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(247,236,218,0.95), rgba(236,214,181,0.84));
}

.hero-copy h1{
  font-size: clamp(2.7rem, 5vw, 5.3rem);
  line-height: 0.92;
  margin-bottom: 1.2rem;
  color: var(--ub-ink);
}

.hero-text{
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--ub-muted);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-panel{
  padding: 1rem;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(247,236,218,0.96), rgba(227,193,147,0.74));
}

.hero-card{
  height: 100%;
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(246,236,220,0.96), rgba(231,202,164,0.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='rgba(80,55,38,0.10)' stroke-width='1'%3E%3Cpath d='M18 36c22-14 54-18 82-8 28 10 46 33 56 58'/%3E%3Cpath d='M24 118c30-8 61-5 90 8 19 8 37 20 57 34'/%3E%3Cpath d='M65 22c13 25 15 54 7 82-6 21-18 39-35 58'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
}

.hero-card img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--ub-shadow-soft);
}

.hero-card-label,
.eyebrow{
  margin-bottom: 0.75rem;
  color: var(--ub-accent-deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-list,
.check-list,
.footer-links{
  margin: 0;
  padding-left: 1.25rem;
}

.hero-list li,
.check-list li{
  margin-bottom: 0.6rem;
  color: var(--ub-ink-soft);
}

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

.section-heading h2,
.split-copy h2,
.narrow-column h1{
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.96;
}

.feature-card{
  height: 100%;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(247,236,218,0.94), rgba(234,210,177,0.84));
}

.feature-card p,
.split-copy p,
.footer-copy,
.narrow-column p{
  color: var(--ub-muted);
  font-size: 1.05rem;
}

.section-soft{
  padding-top: 0;
}

.split-panel{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 2rem;
  background: linear-gradient(180deg, rgba(247,236,218,0.92), rgba(231,202,164,0.80));
}

.narrow-column{
  max-width: 52rem;
  padding: 2.25rem;
  background: linear-gradient(180deg, rgba(248,238,222,0.94), rgba(237,214,183,0.84));
}

.btn{
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.btn-primary{
  background: var(--ub-accent);
  border-color: var(--ub-accent);
  color: #f8f1e7;
}

.btn-primary:hover,
.btn-primary:focus{
  background: var(--ub-accent-deep);
  border-color: var(--ub-accent-deep);
  color: #fff8ee;
}

.btn-outline-primary{
  color: var(--ub-accent-deep);
  border-color: rgba(94, 65, 47, 0.34);
  background: rgba(255, 249, 240, 0.34);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus{
  background: rgba(123, 87, 64, 0.08);
  color: var(--ub-accent-deep);
  border-color: var(--ub-accent);
}

.site-footer{
  padding: 2.25rem 0 3rem;
  border-top: 1px solid var(--ub-border);
  background: rgba(239, 221, 194, 0.34);
}

.footer-grid{
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr;
  margin-bottom: 1.5rem;
}

.footer-title{
  margin-bottom: 0.65rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.footer-links li{
  margin-bottom: 0.35rem;
}

.footer-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ub-border);
  color: var(--ub-muted);
}

code{
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(47, 33, 24, 0.08);
  color: var(--ub-accent-deep);
}

.figure-soft img,
.narrow-column img,
.split-panel img,
.feature-card img{
  border-radius: 18px;
  border: 1px solid var(--ub-border);
  box-shadow: var(--ub-shadow-soft);
}

.narrow-column h2{
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.narrow-column h3{
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.narrow-column strong{
  color: var(--ub-ink);
}

.narrow-column blockquote{
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--ub-gold);
  color: var(--ub-ink-soft);
  background: rgba(255, 248, 236, 0.28);
  border-radius: 0 14px 14px 0;
}

.narrow-column hr{
  border: 0;
  border-top: 1px solid var(--ub-border);
  opacity: 1;
  margin: 2rem 0;
}

.text-muted{
  color: var(--ub-muted) !important;
}

.about-shell{
  width: 90%;
  max-width: 90vw;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.about-panel{
  padding: 2.25rem;
}

.about-panel > *{
  position: relative;
  z-index: 1;
}

.about-socials{
  row-gap: 0.75rem;
}

.social-link-ub{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ub-border);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.55);
  box-shadow: var(--ub-shadow-soft);
  overflow: hidden;
}

.social-link-ub:hover,
.social-link-ub:focus{
  text-decoration: none;
  background: rgba(255, 248, 236, 0.78);
  border-color: var(--ub-border-strong);
}

.social-icon-ub{
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* -------------------------------------------------
   Unfeathered Bird home hero
-------------------------------------------------- */

.ub-home-hero{
  position: relative;
  width: 100%;
  min-height: 88vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(28, 18, 12, 0.44), rgba(28, 18, 12, 0.56)),
    url('/images/hero.webp') center center / cover no-repeat;
  color: #f8efe3;
  display: flex;
  align-items: center;
}

.ub-home-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.42) 72%);
  pointer-events: none;
}

.ub-home-hero .container-xl{
  position: relative;
  z-index: 2;
}

.ub-home-hero .hero-inner{
  width: 100%;
  padding: 6rem 1.25rem 5rem;
  text-align: center;
}

.ub-home-hero .hero-kicker{
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 239, 227, 0.82);
}

.ub-home-hero h1{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 248, 238, 0.96);
  max-width: 10em;
  margin: 0 auto 1.25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.ub-home-hero .hero-lead{
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: rgba(248, 239, 227, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.ub-home-hero .hero-btn-group{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.ub-home-hero .btn-home-primary,
.ub-home-hero .btn-home-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ub-home-hero .btn-home-primary{
  background: rgba(252, 244, 232, 0.94);
  color: var(--ub-ink);
  border: 1px solid rgba(252, 244, 232, 0.94);
}

.ub-home-hero .btn-home-primary:hover,
.ub-home-hero .btn-home-primary:focus{
  background: #fff8ee;
  color: var(--ub-ink);
  border-color: #fff8ee;
  text-decoration: none;
  transform: translateY(-1px);
}

.ub-home-hero .btn-home-secondary{
  background: rgba(255, 248, 236, 0.10);
  color: #fff7eb;
  border: 1px solid rgba(255, 248, 236, 0.72);
}

.ub-home-hero .btn-home-secondary:hover,
.ub-home-hero .btn-home-secondary:focus{
  background: rgba(255, 248, 236, 0.18);
  color: #fffaf2;
  border-color: rgba(255, 248, 236, 0.96);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 991.98px){
  .hero-grid,
  .split-panel,
  .footer-grid{
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .section-band,
  .section-soft,
  .page-shell{
    padding: 3rem 0;
  }

  .hero-copy h1{
    line-height: 0.98;
  }

  .about-shell{
    width: 94%;
    max-width: 94vw;
  }

  .about-panel{
    padding: 1.75rem;
  }

  .ub-home-hero{
    min-height: 74vh;
  }

  .ub-home-hero .hero-inner{
    padding: 4.5rem 1rem 4rem;
  }
}

@media (max-width: 767.98px){
  .hero-copy,
  .hero-card,
  .feature-card,
  .split-panel,
  .narrow-column,
  .about-panel{
    border-radius: 22px;
  }

  .narrow-column{
    padding: 1.5rem;
  }

  .brand-mark{
    font-size: 1.65rem;
  }

  .about-shell{
    width: 96%;
    max-width: 96vw;
  }

  .about-panel{
    padding: 1.35rem;
  }

  .social-link-ub{
    width: 40px;
    height: 40px;
  }

  .social-icon-ub{
    width: 18px;
    height: 18px;
  }

  .ub-home-hero{
    min-height: 68vh;
    background-position: center top;
  }

  .ub-home-hero .hero-inner{
    padding: 3.75rem 1rem 3.25rem;
  }

  .ub-home-hero h1{
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    line-height: 0.98;
  }

  .ub-home-hero .hero-lead{
    font-size: 1rem;
    line-height: 1.65;
  }
}