@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;700;800&family=Tajawal:wght@400;500;700;800&display=swap");

:root {
    --bg-body: #f6f0e7;
    --bg-body-deep: #efe6da;
    --panel: rgba(255, 252, 246, 0.82);
    --panel-strong: #fffaf3;
    --panel-soft: rgba(241, 247, 243, 0.9);
    --primary: #0e6a58;
    --primary-strong: #0b4f42;
    --primary-soft: rgba(14, 106, 88, 0.1);
    --secondary: #c97757;
    --secondary-strong: #9e583e;
    --text-main: #1f2724;
    --text-muted: #66706d;
    --border: rgba(83, 97, 93, 0.16);
    --shadow-soft: 0 28px 70px rgba(46, 43, 37, 0.12);
    --shadow-subtle: 0 14px 32px rgba(46, 43, 37, 0.08);
    --success: #216846;
    --error: #a33f32;
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Tajawal", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(214, 231, 221, 0.9), transparent 34%),
        radial-gradient(circle at bottom right, rgba(225, 201, 182, 0.72), transparent 28%),
        linear-gradient(180deg, var(--bg-body) 0%, var(--bg-body-deep) 100%);
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 0.65s ease-out forwards;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(18px);
}

body::before {
    inset-block-start: -12rem;
    inset-inline-start: -10rem;
    background: radial-gradient(circle, rgba(14, 106, 88, 0.16) 0%, rgba(14, 106, 88, 0) 68%);
}

body::after {
    inset-block-end: -14rem;
    inset-inline-end: -8rem;
    background: radial-gradient(circle, rgba(201, 119, 87, 0.2) 0%, rgba(201, 119, 87, 0) 65%);
}

html[dir="rtl"] body {
    direction: rtl;
}

body.is-ltr {
    direction: ltr;
}

img {
    max-width: 100%;
    display: block;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
.brand-title,
.brand-subtitle,
.hero-kicker,
.page-kicker,
.section-kicker,
.signal-label,
.focus-kicker,
.focus-note-title,
.about-accent-kicker,
.path-step {
    font-family: "Noto Kufi Arabic", "Tajawal", sans-serif;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinGlow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    55% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes langSwap {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    45% {
        opacity: 0.32;
        transform: translateY(5px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.card-animate {
    opacity: 0;
    transform: translateY(10px);
    animation: cardRise 0.55s ease-out forwards;
}

.card-animate-delay {
    animation-delay: 0.14s;
}

body.lang-switching main,
body.lang-switching header {
    animation: langSwap 0.55s ease;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(246, 240, 231, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(83, 97, 93, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(227, 238, 232, 0.88));
    border: 1px solid rgba(83, 97, 93, 0.12);
    box-shadow: var(--shadow-subtle);
    flex-shrink: 0;
}

.brand-icon {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.brand-subtitle {
    font-size: 0.76rem;
    color: var(--primary);
    line-height: 1.45;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-muted);
    background: transparent;
    transition:
        transform 0.15s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(83, 97, 93, 0.12);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fffdfa;
    box-shadow: 0 18px 40px rgba(11, 79, 66, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 22px 45px rgba(11, 79, 66, 0.28);
}

.btn-primary:disabled {
    transform: none;
    opacity: 0.7;
    cursor: default;
    box-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(83, 97, 93, 0.16);
    color: var(--primary-strong);
}

.btn-outline:hover {
    background: rgba(239, 247, 243, 0.94);
    box-shadow: var(--shadow-subtle);
}

.btn-full {
    width: 100%;
}

.btn-lang {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(14, 106, 88, 0.18);
    color: var(--primary-strong);
}

.btn-lang::before {
    content: "";
    position: absolute;
    inset: -42%;
    background: conic-gradient(
        from 180deg,
        rgba(14, 106, 88, 0),
        rgba(14, 106, 88, 0.35),
        rgba(14, 106, 88, 0)
    );
    animation: spinGlow 4.5s linear infinite;
    opacity: 0.65;
}

.btn-lang::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: var(--radius-pill);
    background: rgba(255, 252, 246, 0.94);
}

.btn-lang .lang-pill {
    position: relative;
    z-index: 1;
}

.btn-lang.pop {
    animation: pop 0.32s ease-out;
}

.hero {
    padding: 42px 0 16px;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.92fr);
    gap: 24px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(239, 247, 243, 0.96));
    border: 1px solid rgba(83, 97, 93, 0.12);
    box-shadow: 0 35px 80px rgba(46, 43, 37, 0.13);
    overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-shell::before {
    width: 22rem;
    height: 22rem;
    inset-block-start: -9rem;
    inset-inline-end: -7rem;
    background: radial-gradient(circle, rgba(14, 106, 88, 0.12) 0%, rgba(14, 106, 88, 0) 70%);
}

.hero-shell::after {
    width: 18rem;
    height: 18rem;
    inset-block-end: -9rem;
    inset-inline-start: -5rem;
    background: radial-gradient(circle, rgba(201, 119, 87, 0.16) 0%, rgba(201, 119, 87, 0) 70%);
}

.hero-copy,
.focus-board {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(14, 106, 88, 0.08);
    color: var(--primary-strong);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0 0 16px;
    max-width: 11ch;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.18;
}

.hero-lead {
    margin: 0;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.signal-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(83, 97, 93, 0.12);
    box-shadow: var(--shadow-subtle);
}

.signal-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--primary-strong);
}

.signal-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.focus-board {
    display: grid;
    gap: 16px;
}

.focus-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(11, 79, 66, 0.96), rgba(14, 106, 88, 0.94));
    color: #f8f4ec;
    box-shadow: 0 24px 56px rgba(11, 79, 66, 0.24);
}

.focus-kicker {
    margin: 0 0 12px;
    color: rgba(248, 244, 236, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.focus-card h2 {
    margin: 0 0 10px;
    font-size: 1.32rem;
    color: #ffffff;
}

.focus-card p {
    margin: 0 0 16px;
    color: rgba(248, 244, 236, 0.86);
    line-height: 1.8;
}

.focus-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.focus-pillars li {
    position: relative;
    padding-inline-start: 20px;
    line-height: 1.7;
}

.focus-pillars li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(201, 119, 87, 0.18);
}

.focus-note {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(83, 97, 93, 0.12);
    box-shadow: var(--shadow-subtle);
}

.focus-note-title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--primary-strong);
}

.focus-note p:last-child {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.home-section {
    padding-top: 18px;
}

.home-section-last {
    padding-bottom: 64px;
}

.section-shell,
.about-intro-card,
.about-panel,
.about-side-card,
.review-card,
.post-card,
.post-detail-card,
.page-header .container {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.section-shell {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.section-shell-accent {
    background: linear-gradient(135deg, rgba(247, 241, 232, 0.96), rgba(255, 250, 245, 0.96));
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-kicker,
.page-kicker {
    margin: 0 0 10px;
    color: var(--secondary-strong);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.section-text {
    margin: 0 0 22px;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-strong);
    font-weight: 700;
}

.section-link::after {
    content: "↗";
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.path-card {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(83, 97, 93, 0.12);
    box-shadow: var(--shadow-subtle);
}

.path-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(14, 106, 88, 0.1);
    color: var(--primary-strong);
    font-size: 0.86rem;
}

.path-card h3 {
    margin: 0 0 10px;
    font-size: 1.04rem;
}

.path-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.home-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    background: rgba(14, 106, 88, 0.08);
    border: 1px solid rgba(14, 106, 88, 0.15);
    color: var(--primary-strong);
    font-weight: 700;
}

.page-header {
    padding: 38px 0 14px;
}

.page-header .container {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(239, 247, 243, 0.84));
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.page-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--text-muted);
    line-height: 1.8;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.about-section {
    padding: 18px 0 64px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.92fr);
    gap: 24px;
}

.about-main {
    display: grid;
    gap: 20px;
}

.about-intro-card,
.about-panel,
.about-side-card {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.about-statement {
    margin: 0 0 24px;
    max-width: 52rem;
    font-size: 1.16rem;
    line-height: 1.9;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.72fr);
    gap: 20px;
    align-items: start;
}

.about-story-grid h2 {
    margin: 0 0 12px;
    font-size: 1.56rem;
}

.about-story-grid p {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.85;
}

.about-accent-card {
    padding: 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(14, 106, 88, 0.08), rgba(255, 255, 255, 0.64));
    border: 1px solid rgba(83, 97, 93, 0.12);
}

.about-accent-kicker {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: var(--primary-strong);
}

.about-accent-card p:last-child {
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.about-panel h3,
.about-side-card h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.bullet-list li {
    position: relative;
    padding-inline-start: 18px;
    line-height: 1.75;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(83, 97, 93, 0.12);
    line-height: 1.7;
}

.info-list li:last-child {
    border-bottom: 0;
}

.info-list strong {
    color: var(--primary-strong);
    margin-inline-end: 6px;
}

.about-note {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(14, 106, 88, 0.07);
    border: 1px solid rgba(14, 106, 88, 0.14);
}

.about-note p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.review-page {
    padding-bottom: 24px;
}

.review-section {
    padding: 18px 0 64px;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 24px;
}

.review-card {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.review-card h2 {
    margin: 0 0 10px;
    font-size: 1.24rem;
}

.review-intro {
    margin: 0 0 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.review-form {
    margin-top: 4px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.field-group {
    flex: 1 1 220px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-control,
.select-control,
.textarea-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(83, 97, 93, 0.16);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-main);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease,
        background 0.2s ease;
}

.form-control:focus,
.select-control:focus,
.textarea-control:focus {
    outline: none;
    border-color: rgba(14, 106, 88, 0.42);
    box-shadow: 0 0 0 4px rgba(14, 106, 88, 0.1);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.98);
}

.textarea-control {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.status-message {
    font-size: 0.9rem;
    color: var(--success);
}

.status-message.error {
    color: var(--error);
}

.reviews-list-card {
    max-height: 640px;
    overflow-y: auto;
}

.reviews-list-card::-webkit-scrollbar {
    width: 10px;
}

.reviews-list-card::-webkit-scrollbar-thumb {
    background: rgba(83, 97, 93, 0.18);
    border-radius: var(--radius-pill);
}

.reviews-list {
    margin-top: 12px;
}

.review-item {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(83, 97, 93, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-subtle);
}

.review-item + .review-item {
    margin-top: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.review-name {
    font-weight: 700;
}

.rating-stars {
    color: #d08747;
    letter-spacing: 0.08em;
}

.review-comment,
.empty-state {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.posts-section {
    padding: 18px 0 64px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.post-card {
    overflow: hidden;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: rgba(239, 247, 243, 0.9);
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    flex: 1;
}

.post-date {
    margin: 0;
    color: var(--secondary-strong);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.post-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.post-link,
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    background: rgba(14, 106, 88, 0.08);
    border: 1px solid rgba(14, 106, 88, 0.14);
    color: var(--primary-strong);
    font-weight: 700;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.post-link::after {
    content: "↗";
}

.post-back::after {
    content: "↩";
}

.post-link:hover,
.post-back:hover {
    transform: translateY(-1px);
    background: rgba(239, 247, 243, 0.94);
    box-shadow: var(--shadow-subtle);
}

.post-detail {
    padding: 24px 0 64px;
}

.post-back {
    margin-bottom: 18px;
}

.post-detail-card {
    overflow: hidden;
    border-radius: 30px;
}

.post-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    background: rgba(239, 247, 243, 0.9);
}

.post-detail-body {
    padding: clamp(22px, 3vw, 34px);
}

.post-detail-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.post-detail-meta {
    margin: 14px 0 0;
    color: var(--secondary-strong);
    font-weight: 700;
}

.post-detail-content {
    margin-top: 24px;
    line-height: 1.95;
}

.post-detail-content p {
    margin: 0 0 16px;
}

.post-detail-content h3 {
    margin: 24px 0 10px;
    font-size: 1.12rem;
}

.post-detail-content ul {
    margin: 0 0 16px;
    padding-inline-start: 20px;
}

.post-detail-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.post-detail-content strong {
    color: var(--text-main);
}

.powered-by {
    position: fixed;
    inset-block-end: 16px;
    inset-inline-start: 16px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: #4f5855;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(83, 97, 93, 0.16);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 32px rgba(46, 43, 37, 0.16);
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.powered-by:hover {
    transform: translateY(-1px);
    background: rgba(31, 39, 36, 0.94);
    color: #fffaf3;
    box-shadow: 0 20px 40px rgba(31, 39, 36, 0.22);
}

.powered-logo {
    height: 18px;
    width: auto;
    border-radius: 5px;
    opacity: 0.92;
}

@media (max-width: 1100px) {
    .hero-shell,
    .about-layout,
    .review-layout,
    .home-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy h1 {
        max-width: none;
    }

    .about-story-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-signals,
    .about-grid,
    .path-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .site-header {
        position: static;
    }

    .header-content {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 12px;
        padding: 14px 0;
    }

    .brand {
        width: 100%;
    }

    .main-nav {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .header-ctas {
        order: 3;
        width: 100%;
        margin-inline-start: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .header-ctas .btn,
    .header-ctas a.btn {
        width: 100%;
        min-width: 0;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 12px;
        text-align: center;
        white-space: normal;
    }

    .page-header .container,
    .section-shell,
    .about-intro-card,
    .about-panel,
    .about-side-card,
    .review-card,
    .post-detail-body {
        padding: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-lead,
    .about-statement,
    .section-text,
    .page-subtitle,
    .review-intro,
    .post-text,
    .post-detail-content {
        line-height: 1.75;
    }

    .post-detail-image {
        max-height: 320px;
    }

    .posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        background: rgba(246, 240, 231, 0.9);
    }

    .hero {
        padding-top: 24px;
    }

    .hero-shell {
        padding: 20px;
    }

    .hero-shell::before {
        width: 16rem;
        height: 16rem;
        inset-inline-end: -6rem;
        inset-block-start: -7rem;
    }

    .hero-shell::after {
        width: 13rem;
        height: 13rem;
        inset-inline-start: -4rem;
        inset-block-end: -6rem;
    }

    .hero-actions,
    .page-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-ctas {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-ctas .btn {
        min-height: 46px;
    }

    .nav-link {
        min-height: 42px;
        padding: 10px 12px;
    }

    .brand {
        width: 100%;
        gap: 10px;
    }

    .brand-icon-badge {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .brand-icon {
        height: 24px;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .btn {
        min-height: 44px;
        padding: 0 14px;
    }

    .page-header {
        padding-top: 24px;
    }

    .page-header .container,
    .section-shell,
    .about-intro-card,
    .about-panel,
    .about-side-card,
    .review-card,
    .post-body,
    .post-detail-body {
        padding: 18px;
    }

    .page-header h1 {
        font-size: clamp(1.7rem, 9vw, 2.3rem);
    }

    .section-title,
    .post-detail-title {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }

    .hero-copy h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        line-height: 1.22;
    }

    .hero-lead,
    .about-statement,
    .post-text,
    .review-comment,
    .empty-state {
        font-size: 0.96rem;
    }

    .signal-card,
    .focus-card,
    .focus-note,
    .path-card,
    .about-accent-card,
    .about-note,
    .review-item {
        padding: 16px;
    }

    .tag-cloud {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tag-pill {
        width: 100%;
        justify-content: center;
        padding: 11px 12px;
        text-align: center;
    }

    .post-image {
        aspect-ratio: 4 / 3;
    }

    .post-link,
    .post-back {
        width: 100%;
        justify-content: center;
    }

    .reviews-list-card {
        max-height: none;
    }

    .post-detail-image {
        max-height: 240px;
    }

    .powered-by {
        display: none;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 16px, 1180px);
    }

    body::before,
    body::after {
        width: 18rem;
        height: 18rem;
    }

    .header-content {
        gap: 12px;
        padding: 14px 0;
    }

    .main-nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .nav-link {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .header-ctas {
        gap: 8px;
    }

    .hero-shell,
    .page-header .container,
    .section-shell,
    .about-intro-card,
    .about-panel,
    .about-side-card,
    .review-card,
    .post-body,
    .post-detail-body {
        padding: 16px;
        border-radius: 22px;
    }

    .hero-kicker,
    .section-kicker,
    .page-kicker {
        font-size: 0.72rem;
    }

    .hero-signals,
    .path-grid,
    .about-grid,
    .tag-cloud {
        gap: 12px;
    }

    .signal-card,
    .focus-card,
    .focus-note,
    .path-card,
    .review-item {
        border-radius: 18px;
    }

    .post-date {
        font-size: 0.74rem;
    }

    .post-title {
        font-size: 1rem;
    }

    .post-detail-content {
        margin-top: 18px;
        line-height: 1.8;
    }

    .post-detail-content h3 {
        font-size: 1rem;
    }

    .powered-by {
        font-size: 0.66rem;
        gap: 6px;
    }

    .powered-logo {
        height: 16px;
    }
}
