/*
Theme Name: Bearded Dragon Hub Organic
Theme URI: https://beardeddragonhub.com/
Author: Bearded Dragon Hub
Description: A warm, editorial WordPress theme for bearded dragon care guides.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: beardeddragonhub-organic
*/

:root {
    --sand: #e8dcc7;
    --sand-deep: #d4b895;
    --sand-soft: #e3ceb0;
    --clay: #b08b6e;
    --terracotta: #c66b3d;
    --terracotta-deep: #9a4d2c;
    --ochre: #c08e3a;
    --sage: #8b9d83;
    --moss: #606c38;
    --moss-deep: #46502a;
    --ink: #352a22;
    --ink-soft: #665345;
    --line: rgba(96, 108, 56, 0.27);
    --line-clay: rgba(154, 77, 44, 0.28);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Epilogue", system-ui, sans-serif;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --shadow-soft: 0 24px 70px rgba(96, 66, 42, 0.13);
    --ease: 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: 9999;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

body.menu-is-open {
    overflow: hidden;
}

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

a {
    color: var(--moss-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--terracotta-deep);
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 4.25rem);
}

h3 {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

p {
    margin-top: 0;
}

.bdh-container {
    width: min(100% - 40px, 1240px);
    margin-inline: auto;
}

.bdh-narrow {
    width: min(100% - 40px, 860px);
}

.bdh-prose {
    width: min(100% - 40px, 820px);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    background: var(--moss-deep);
    color: var(--sand);
    border-radius: var(--radius-sm);
}

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

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(232, 220, 199, 0.93);
    backdrop-filter: blur(18px);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--terracotta-deep);
}

.site-brand__name {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 600;
    line-height: 1;
}

.site-brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 2px;
    transform: rotate(-5deg);
}

.site-brand__mark span {
    display: block;
    height: 70%;
    border-radius: 70% 30% 58% 42%;
    background: var(--terracotta);
}

.site-brand__mark span:nth-child(2) {
    height: 100%;
    background: var(--ochre);
}

.site-brand__mark span:nth-child(3) {
    height: 58%;
    background: var(--moss);
}

.primary-navigation {
    margin-left: auto;
}

.bdh-menu {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 28px);
    padding: 0;
    margin: 0;
    list-style: none;
}

.bdh-menu a {
    position: relative;
    display: block;
    padding-block: 10px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.bdh-menu a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.bdh-menu a:hover,
.bdh-menu .current-menu-item > a,
.bdh-menu .current-menu-ancestor > a {
    color: var(--terracotta-deep);
}

.bdh-menu a:hover::after,
.bdh-menu .current-menu-item > a::after,
.bdh-menu .current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.menu-toggle__label {
    font-size: 0.82rem;
    font-weight: 600;
}

.menu-toggle__icon {
    display: grid;
    width: 18px;
    gap: 5px;
}

.menu-toggle__icon span {
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 132px) 0 clamp(78px, 11vw, 144px);
}

.home-hero::before {
    position: absolute;
    top: -240px;
    left: -220px;
    width: 560px;
    height: 560px;
    content: "";
    border: 1px solid var(--line-clay);
    border-radius: 48% 52% 35% 65%;
    transform: rotate(22deg);
}

.home-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 0.9fr);
    align-items: center;
    gap: clamp(48px, 7vw, 98px);
}

.home-hero__content {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    max-width: 750px;
    margin-bottom: 30px;
}

.home-hero__intro {
    max-width: 650px;
    margin-bottom: 34px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
    line-height: 1.75;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--terracotta-deep);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: var(--terracotta);
    color: var(--sand);
}

.button--primary:hover {
    background: var(--terracotta-deep);
    color: var(--sand);
}

.button--secondary {
    border-color: var(--moss);
    color: var(--moss-deep);
}

.button--secondary:hover {
    background: var(--moss);
    color: var(--sand);
}

.button--light {
    background: var(--sand);
    color: var(--moss-deep);
}

.button--light:hover {
    background: var(--sand-deep);
    color: var(--ink);
}

.home-hero__visual {
    position: relative;
    isolation: isolate;
}

.home-hero__visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 42% center;
    border-radius: 42% 58% 44% 56% / 38% 40% 60% 62%;
    box-shadow: var(--shadow-soft);
}

.scale-halo {
    position: absolute;
    z-index: 1;
    inset: -34px -30px 28px 40px;
    border-radius: 45% 55% 52% 48%;
    background-color: var(--ochre);
    background-image: radial-gradient(circle at 50% 115%, transparent 39%, rgba(232, 220, 199, 0.38) 41%, rgba(232, 220, 199, 0.38) 51%, transparent 53%);
    background-size: 34px 25px;
    transform: rotate(5deg);
}

.home-hero__caption {
    position: absolute;
    z-index: 3;
    right: -20px;
    bottom: 38px;
    display: flex;
    min-width: 148px;
    flex-direction: column;
    padding: 20px 22px;
    background: var(--moss);
    color: var(--sand);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.home-hero__caption span {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.home-hero__caption small {
    margin-top: 7px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.care-strip {
    position: relative;
    z-index: 3;
    border-block: 1px solid rgba(232, 220, 199, 0.22);
    background: var(--moss);
    color: var(--sand);
}

.care-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.care-strip__grid > div {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: center;
    padding: 26px clamp(18px, 3vw, 34px);
    border-left: 1px solid rgba(232, 220, 199, 0.24);
}

.care-strip__grid > div:last-child {
    border-right: 1px solid rgba(232, 220, 199, 0.24);
}

.care-strip strong {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.5vw, 2.3rem);
    font-weight: 600;
    line-height: 1.1;
}

.care-strip span {
    margin-top: 8px;
    color: rgba(232, 220, 199, 0.78);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-section {
    padding: clamp(84px, 10vw, 138px) 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.58fr);
    align-items: end;
    gap: 40px;
    margin-bottom: clamp(46px, 6vw, 72px);
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 470px;
    margin-bottom: 5px;
    color: var(--ink-soft);
    font-size: 1rem;
}

.section-heading--inline {
    grid-template-columns: 1fr auto;
}

.text-link {
    color: var(--moss-deep);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link span {
    display: inline-block;
    transition: transform var(--ease);
}

.text-link:hover span {
    transform: translateX(5px);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.topic-card {
    position: relative;
    display: grid;
    min-height: 290px;
    grid-template-columns: 74px minmax(0, 1fr);
    align-content: space-between;
    gap: 24px;
    padding: clamp(30px, 4vw, 52px);
    overflow: hidden;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
}

.topic-card::after {
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 180px;
    height: 180px;
    content: "";
    border: 1px solid var(--line-clay);
    border-radius: 55% 45% 62% 38%;
    transition: transform var(--ease), background var(--ease);
}

.topic-card:hover {
    background: var(--sand-soft);
    color: var(--ink);
}

.topic-card:hover::after {
    background: rgba(192, 142, 58, 0.22);
    transform: rotate(18deg) scale(1.08);
}

.topic-card__number {
    color: var(--terracotta-deep);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
}

.topic-card h3 {
    margin-bottom: 16px;
}

.topic-card p {
    max-width: 460px;
    margin-bottom: 0;
    color: var(--ink-soft);
}

.topic-card__count {
    grid-column: 2;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-section {
    padding: clamp(72px, 9vw, 120px) 0;
    background: var(--sand-deep);
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

.feature-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.feature-visual::before {
    position: absolute;
    z-index: 3;
    inset: 0;
    content: "";
    border: 1px solid var(--moss);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.feature-visual img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.13);
}

.feature-content h2 {
    margin-bottom: 26px;
    font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.feature-content > p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.feature-meta {
    display: grid;
    gap: 10px;
    padding-block: 24px;
    margin-block: 24px 30px;
    border-block: 1px solid rgba(96, 108, 56, 0.32);
    color: var(--moss-deep);
    font-size: 0.78rem;
    font-weight: 600;
}

.latest-section {
    background: var(--sand);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.guide-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
    margin: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.guide-card__link {
    display: flex;
    min-height: 340px;
    height: 100%;
    flex-direction: column;
    padding: clamp(30px, 4vw, 48px);
    color: var(--ink);
    text-decoration: none;
    transition: background var(--ease);
}

.guide-card__link:hover {
    background: var(--sand-soft);
    color: var(--ink);
}

.guide-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
    color: var(--terracotta-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guide-card__title {
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.guide-card p {
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.guide-card .text-link {
    margin-top: auto;
}

.home-cta {
    padding: clamp(64px, 8vw, 96px) 0;
    background: var(--terracotta-deep);
    color: var(--sand);
}

.home-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 42px;
}

.home-cta .eyebrow {
    color: var(--sand-deep);
}

.home-cta h2 {
    max-width: 790px;
    margin-bottom: 0;
    color: var(--sand);
}

.archive-hero,
.page-hero,
.article-header {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 10vw, 132px) 0;
    border-bottom: 1px solid var(--line);
}

.archive-hero::after,
.page-hero::after,
.article-header::after {
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    content: "";
    border: 1px solid var(--line-clay);
    border-radius: 54% 46% 43% 57%;
    background-image: radial-gradient(circle at 50% 108%, transparent 39%, rgba(192, 142, 58, 0.12) 41%, rgba(192, 142, 58, 0.12) 51%, transparent 53%);
    background-size: 38px 28px;
    transform: rotate(12deg);
}

.archive-hero h1,
.page-hero h1 {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 6rem);
}

.archive-hero p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.archive-description {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.pagination-wrap {
    margin-top: 48px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--moss);
    color: var(--sand);
}

.article-header {
    padding-bottom: clamp(64px, 8vw, 100px);
}

.article-header__inner {
    position: relative;
    z-index: 2;
    width: min(100% - 40px, 1040px);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 58px;
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.breadcrumbs a {
    color: var(--moss-deep);
    text-decoration: none;
}

.breadcrumbs span[aria-current="page"] {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-header h1 {
    max-width: 1000px;
    margin-bottom: 34px;
    font-size: clamp(3rem, 6.5vw, 6rem);
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
}

.article-byline span:not(:last-child)::after {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 28px;
    content: "";
    vertical-align: middle;
    background: var(--terracotta);
    border-radius: 50%;
}

.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 790px);
    justify-content: center;
    gap: clamp(54px, 8vw, 104px);
    padding-block: clamp(68px, 9vw, 118px);
}

.article-layout > *,
.article-content {
    min-width: 0;
}

.article-rail__card {
    position: sticky;
    top: 118px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.article-rail__mark {
    display: block;
    width: 54px;
    height: 24px;
    margin-bottom: 24px;
    background-image: radial-gradient(circle at 50% 112%, transparent 39%, var(--terracotta) 41%, var(--terracotta) 50%, transparent 52%);
    background-size: 19px 14px;
}

.article-rail strong {
    font-family: var(--font-display);
    font-size: 1.18rem;
}

.article-rail p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.65;
}

.entry-content {
    color: var(--ink);
    font-size: 1.02rem;
}

.article-content > p:first-of-type::first-letter {
    float: left;
    padding: 0.1em 0.11em 0 0;
    color: var(--terracotta-deep);
    font-family: var(--font-display);
    font-size: 4.7em;
    font-weight: 600;
    line-height: 0.72;
}

.entry-content h2 {
    padding-top: 34px;
    margin: 54px 0 22px;
    border-top: 1px solid var(--line);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.entry-content h3 {
    margin: 42px 0 18px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 24px;
}

.entry-content li + li {
    margin-top: 8px;
}

.entry-content a {
    color: var(--terracotta-deep);
    font-weight: 600;
}

.entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 34px 0;
    overflow-x: auto;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.entry-content th,
.entry-content td {
    min-width: 150px;
    padding: 15px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background: var(--sand-deep);
    color: var(--moss-deep);
    font-size: 0.8rem;
}

.entry-content tr:last-child td {
    border-bottom: 0;
}

.entry-content th:last-child,
.entry-content td:last-child {
    border-right: 0;
}

.entry-content blockquote {
    padding: 28px 30px;
    margin: 36px 0;
    border-left: 5px solid var(--terracotta);
    background: var(--sand-deep);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.related-guides {
    padding: clamp(72px, 9vw, 112px) 0;
    background: var(--sand-deep);
}

.standard-page .bdh-prose {
    padding-block: clamp(64px, 9vw, 110px);
}

.about-hero {
    overflow: hidden;
    padding: clamp(76px, 10vw, 132px) 0;
    background: var(--sand-deep);
}

.about-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.about-hero h1 {
    margin-bottom: 28px;
}

.about-hero p:not(.eyebrow) {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.about-hero__visual {
    position: relative;
}

.about-hero__visual::after {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 180px;
    height: 180px;
    content: "";
    border-radius: 50%;
    background-color: var(--ochre);
    background-image: radial-gradient(circle at 50% 110%, transparent 39%, rgba(232, 220, 199, 0.38) 41%, rgba(232, 220, 199, 0.38) 51%, transparent 53%);
    background-size: 28px 20px;
}

.about-hero__visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 42%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.about-content {
    display: grid;
    grid-template-columns: 230px minmax(0, 780px);
    justify-content: center;
    gap: clamp(52px, 8vw, 105px);
    padding-block: clamp(72px, 10vw, 124px);
}

.about-content__label span {
    position: sticky;
    top: 120px;
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--moss);
    color: var(--moss-deep);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.error-page .page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.site-footer {
    padding: 76px 0 28px;
    background: var(--moss-deep);
    color: var(--sand);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
}

.site-brand--footer {
    color: var(--sand);
}

.site-brand--footer:hover {
    color: var(--sand-deep);
}

.site-footer__brand p {
    max-width: 470px;
    margin: 18px 0 0;
    color: rgba(232, 220, 199, 0.72);
    font-size: 0.86rem;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 28px;
}

.site-footer__nav a {
    color: var(--sand);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__legal {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    margin-top: 54px;
    border-top: 1px solid rgba(232, 220, 199, 0.18);
    color: rgba(232, 220, 199, 0.62);
    font-size: 0.68rem;
}

.site-footer__legal p {
    margin: 0;
}

@media (max-width: 1080px) {
    .home-hero__grid,
    .feature-grid,
    .about-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
        gap: 54px;
    }

    .guide-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: 180px minmax(0, 760px);
        gap: 55px;
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-navigation {
        position: fixed;
        top: 82px;
        right: 0;
        left: 0;
        max-height: calc(100vh - 82px);
        padding: 18px 20px 28px;
        overflow-y: auto;
        visibility: hidden;
        border-bottom: 1px solid var(--line);
        background: var(--sand);
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
    }

    .primary-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .bdh-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .bdh-menu a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-display);
        font-size: 1.25rem;
    }

    .home-hero__grid,
    .feature-grid,
    .about-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        width: min(82%, 610px);
        margin-inline: auto;
    }

    .section-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .article-layout,
    .about-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .article-rail__card {
        position: static;
    }

    .article-rail__mark {
        float: left;
        margin: 0 22px 8px 0;
    }
}

@media (max-width: 760px) {
    .bdh-container,
    .bdh-narrow,
    .bdh-prose,
    .article-header__inner {
        width: min(100% - 28px, 1240px);
    }

    .site-header__inner {
        min-height: 72px;
    }

    .admin-bar .site-header {
        top: 46px;
    }

    .primary-navigation {
        top: 72px;
        max-height: calc(100vh - 72px);
    }

    .site-brand__mark {
        width: 28px;
        height: 28px;
    }

    .home-hero {
        padding-top: 58px;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .home-hero__visual {
        width: calc(100% - 26px);
        margin-top: 12px;
    }

    .home-hero__caption {
        right: -13px;
        bottom: 24px;
    }

    .care-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .care-strip__grid > div:nth-child(3) {
        border-top: 1px solid rgba(232, 220, 199, 0.24);
    }

    .care-strip__grid > div:nth-child(4) {
        border-top: 1px solid rgba(232, 220, 199, 0.24);
        border-right: 1px solid rgba(232, 220, 199, 0.24);
    }

    .topic-grid,
    .guide-grid,
    .guide-grid--three {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 250px;
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 30px 24px;
    }

    .feature-content h2 {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }

    .guide-card__link {
        min-height: 300px;
        padding: 30px 24px;
    }

    .home-cta__inner,
    .site-footer__grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .site-footer__legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .breadcrumbs {
        margin-bottom: 38px;
    }

    .article-header h1,
    .archive-hero h1,
    .page-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4.4rem);
    }

    .article-byline span::after {
        display: none !important;
    }

    .article-content > p:first-of-type::first-letter {
        font-size: 3.9em;
    }
}

@media (max-width: 460px) {
    .site-brand__name {
        max-width: 190px;
        font-size: 1rem;
    }

    .menu-toggle__label {
        display: none;
    }

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

    .care-strip__grid > div {
        min-height: 106px;
        border-top: 1px solid rgba(232, 220, 199, 0.24);
        border-right: 1px solid rgba(232, 220, 199, 0.24);
    }

    .care-strip__grid > div:first-child {
        border-top: 0;
    }

    .button-row .button {
        width: 100%;
    }

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

    .topic-card__count {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
