/*
  ARHB Design System — soft & organic
  Shared by all inner pages. The homepage (index.html) carries its own
  copy of the nav/footer styles inline; keep the two in sync if you
  change tokens here.

  Fonts (load in each page's <head>):
  https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@400;500;600;700&display=swap
*/

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

:root {
    --cream:    #FAF7EF;
    --cream-2:  #F2EDE0;
    --seafoam:  #E7F1EC;
    --pine:     #12332E;
    --pine-2:   #0C2723;
    --teal:     #00A7A7;
    --teal-ink: #0A8080;
    --text:     #22322E;
    --muted:    #5F7069;
    --line:     #E2DDCC;
    --serif:    'Fraunces', Georgia, serif;
    --sans:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Film grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.045;
    pointer-events: none;
    z-index: 9999;
}

::selection { background: rgba(0,167,167,0.25); }

/* ── NAV ── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 239, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 221, 204, 0.6);
}
.landing-nav .row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--pine);
}
.brand-mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(0,167,167,0.15);
    flex-shrink: 0;
}
.top-nav { display: flex; gap: 30px; align-items: center; }
.top-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.top-nav a:hover { color: var(--pine); }
.top-nav .nav-cta { color: var(--teal-ink); font-weight: 600; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1.5px solid var(--pine);
    color: var(--pine);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
}

/* Mobile nav */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 51, 46, 0.35);
    z-index: 190;
    opacity: 0;
    transition: opacity 0.25s;
}
.mobile-overlay.open { display: block; opacity: 1; }
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100dvh;
    background: var(--cream);
    z-index: 200;
    padding: 22px 26px;
    transition: right 0.28s ease;
    border-left: 1px solid var(--line);
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--pine);
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-links a {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--pine);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

/* ── PAGE CONTAINERS ── */
.page-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 26px 90px;
}
.page-wrap-wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 72px 26px 90px;
}

/* ── PROSE ── */
.page-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-ink);
    margin-bottom: 14px;
}
.prose h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 450;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--pine);
    margin-bottom: 26px;
}
.prose h1 em { font-style: italic; color: var(--teal-ink); }
.prose h2 {
    font-family: var(--serif);
    font-size: clamp(24px, 3.6vw, 30px);
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--pine);
    margin: 44px 0 14px;
}
.prose h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pine);
    margin: 30px 0 10px;
}
.prose p { font-size: 16.5px; margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 26px; margin-bottom: 18px; }
.prose li { font-size: 16.5px; margin-bottom: 8px; }
.prose strong { color: var(--pine); }
.prose a { color: var(--teal-ink); }
.prose .mono {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 36px;
}

/* Photo */
.photo-frame {
    margin: 36px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px -20px rgba(18, 51, 46, 0.35);
}
.photo-frame img { display: block; width: 100%; height: auto; }

/* Social */
.social-links { display: flex; gap: 14px; margin-top: 18px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--seafoam);
    color: var(--teal-ink);
    transition: transform 0.18s ease, background 0.2s;
}
.social-icon:hover { transform: translateY(-2px); background: #DCEBE3; }

/* ── BLOG LIST ── */
.blog-header { margin-bottom: 44px; }
.blog-header h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 450;
    letter-spacing: -0.02em;
    color: var(--pine);
    margin-bottom: 12px;
}
.blog-header p { font-size: 17px; color: var(--muted); }

.posts-grid { display: flex; flex-direction: column; gap: 16px; }
.post-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px -18px rgba(18, 51, 46, 0.25);
}
.post-card-content { padding: 28px 30px; }
.post-card h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 550;
    line-height: 1.25;
    margin-bottom: 6px;
}
.post-card h3 a { color: var(--pine); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal-ink); }
.post-card .post-date {
    display: block;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.post-card .post-excerpt { font-size: 15px; color: var(--muted); }

/* ── BLOG POST ── */
.post-header { margin-bottom: 36px; }
.post-title {
    font-family: var(--serif);
    font-size: clamp(34px, 5.5vw, 52px);
    font-weight: 450;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pine);
    margin-bottom: 12px;
}
.post-header .post-date {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.post-content p { font-size: 17px; margin-bottom: 20px; }
.post-content h2 {
    font-family: var(--serif);
    font-size: clamp(24px, 3.6vw, 30px);
    font-weight: 550;
    color: var(--pine);
    margin: 44px 0 14px;
}
.post-content strong { color: var(--pine); }
.post-content em { font-style: italic; }
.post-content a { color: var(--teal-ink); }
.post-nav { margin: 48px 0 0; }
.post-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--teal-ink);
    text-decoration: none;
}
.post-nav a:hover { text-decoration: underline; }

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 24px 48px -20px rgba(18, 51, 46, 0.35);
    margin: 32px 0;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── SUBSCRIBE BOX ── */
.newsletter-signup { margin-top: 72px; }
.subscribe-box {
    background: linear-gradient(145deg, var(--pine) 0%, var(--pine-2) 100%);
    border-radius: 28px;
    padding: clamp(36px, 5vw, 52px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.subscribe-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,167,167,0.35), transparent 70%);
    filter: blur(10px);
}
.subscribe-box > * { position: relative; }
.subscribe-box h3 {
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 450;
    letter-spacing: -0.01em;
    color: #F5F8F3;
    margin-bottom: 12px;
}
.subscribe-box > p {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(245, 248, 243, 0.75);
    max-width: 460px;
    margin: 0 auto 28px;
}
.subscribe-box > p strong { color: #F5F8F3; }

.subscribe-fields {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto 16px;
}
.subscribe-fields input[type="email"] {
    flex: 1;
    font-family: var(--sans);
    font-size: 15px;
    padding: 14px 22px;
    border: 1.5px solid rgba(245, 248, 243, 0.25);
    border-radius: 999px;
    background: rgba(245, 248, 243, 0.08);
    color: #F5F8F3;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    min-width: 0;
}
.subscribe-fields input[type="email"]::placeholder { color: rgba(245, 248, 243, 0.45); }
.subscribe-fields input[type="email"]:focus {
    border-color: var(--teal);
    background: rgba(245, 248, 243, 0.12);
}
.subscribe-fields button {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease;
    box-shadow: 0 10px 26px -8px rgba(0, 167, 167, 0.6);
    flex-shrink: 0;
}
.subscribe-fields button:hover { transform: translateY(-1px); }
.subscribe-fields button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.subscribe-consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
    font-size: 12.5px;
    color: rgba(245, 248, 243, 0.6);
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}
.subscribe-consent input { margin-top: 3px; accent-color: var(--teal); }
.subscribe-status { margin-top: 14px; font-size: 14px; color: #F5F8F3; }
.subscribe-status--error { color: #F2B8A0; }
.subscribe-success {
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    color: #F5F8F3;
    padding: 18px 0;
}
.cf-turnstile { margin-top: 16px; display: flex; justify-content: center; }

/* ── FOOTER ── */
.landing-footer { background: var(--pine-2); padding: 44px 28px; margin-top: 90px; }
.landing-footer .row {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.landing-footer p { font-size: 13.5px; color: rgba(245, 248, 243, 0.55); }
.landing-footer a { color: rgba(245, 248, 243, 0.75); text-decoration: none; }
.landing-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; }

/* ── BUTTONS (shared) ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(0, 167, 167, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
    background: rgba(255,255,255,0.5);
    color: var(--pine);
    border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .top-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .page-wrap, .page-wrap-wide { padding: 52px 22px 70px; }
    .subscribe-fields { flex-direction: column; }
    .subscribe-fields button { width: 100%; }
    .landing-footer .row { flex-direction: column; text-align: center; }
}

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