/* ========================================================================
   ASHMOOR — site styles
   palette: desaturated, foggy, low-poly. one warm light.
   ======================================================================== */

:root {
    --bg-deep: #0e1012;
    --bg: #14171a;
    --bg-soft: #1c2024;
    --panel: #1a1e22;
    --ink: #d6d1c4;
    --ink-soft: #8e8a7e;
    --ink-mute: #5a574f;
    --ember: #c97a3a;
    --ember-glow: #e9a063;
    --moss: #4a5a48;
    --bone: #b8b0a0;
    --line: #2a2e33;

    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(40,46,52,0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30,28,24,0.7) 0%, transparent 60%),
        linear-gradient(180deg, #0a0c0e 0%, #14171a 50%, #0e1012 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Atmospheric layers ----------------------------------------------------- */
.fog-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(180,170,150,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 50%, rgba(120,130,140,0.03) 0%, transparent 70%);
    mix-blend-mode: screen;
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--bone);
    line-height: 1.15;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 0.18em;
    font-weight: 400;
    text-transform: uppercase;
}

h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: 0.04em; }
h3 { font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; }

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

a { color: var(--ember-glow); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ember); }

.kicker {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    color: var(--ink-mute);
    margin-bottom: 1rem;
}

.tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--ink-soft);
    margin-top: 1rem;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.centered { text-align: center; }

/* Layout ----------------------------------------------------------------- */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 5;
}

.section-dark {
    background: linear-gradient(180deg, transparent 0%, rgba(8,10,12,0.6) 50%, transparent 100%);
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 3rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 760px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* Nav -------------------------------------------------------------------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10,12,14,0.85) 0%, rgba(10,12,14,0) 100%);
    backdrop-filter: blur(6px);
}

.brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    color: var(--bone);
    text-decoration: none;
}

.brand:hover { color: var(--ember-glow); }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav ul a {
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
}

.site-nav ul a.active,
.site-nav ul a:hover { color: var(--bone); }

.site-nav ul a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--ember);
}

/* Hero ------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-canopy {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.7;
}

.hero-canopy svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 6;
    max-width: 800px;
}

.hero-content h1 {
    text-shadow:
        0 0 40px rgba(0,0,0,0.8),
        0 0 80px rgba(201,122,58,0.15);
    margin: 0.5rem 0;
}

.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
}

.btn-primary {
    background: var(--ember);
    color: #1a1208;
    border-color: var(--ember);
}

.btn-primary:hover {
    background: var(--ember-glow);
    color: #1a1208;
    box-shadow: 0 0 30px rgba(201,122,58,0.4);
}

.btn-ghost {
    color: var(--bone);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--bone);
    color: var(--bone);
    background: rgba(255,255,255,0.02);
}

.btn-block { width: 100%; }

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ink-mute);
    font-size: 0.8rem;
    animation: bob 2.4s ease-in-out infinite;
    z-index: 6;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
    50% { transform: translate(-50%, 8px); opacity: 0.8; }
}

/* Art card (decorative landscape) --------------------------------------- */
.art-card {
    aspect-ratio: 4/3;
    background: linear-gradient(180deg, #1a1d20 0%, #0c0e10 100%);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.art-card-inner {
    position: absolute;
    inset: 0;
}

.moon {
    position: absolute;
    top: 18%;
    right: 22%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #d4c8a8 0%, #8a7e60 70%, transparent 100%);
    box-shadow: 0 0 60px rgba(212,200,168,0.25);
}

.ridgeline {
    position: absolute;
    bottom: 30%;
    left: 0; right: 0;
    height: 35%;
    background:
        linear-gradient(135deg, transparent 49%, #1f2226 50%, #1f2226 60%, transparent 61%),
        linear-gradient(225deg, transparent 49%, #161a1d 50%, #161a1d 58%, transparent 59%);
    clip-path: polygon(0 100%, 15% 60%, 30% 75%, 50% 30%, 65% 55%, 80% 40%, 100% 70%, 100% 100%);
    background-color: #181b1e;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 30%;
    background: linear-gradient(180deg, #0e1113 0%, #06080a 100%);
    clip-path: polygon(0 30%, 20% 20%, 45% 35%, 70% 15%, 100% 40%, 100% 100%, 0 100%);
}

/* Pillars ---------------------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.pillar {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.pillar:hover {
    border-color: var(--ember);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.pillar-glyph {
    color: var(--ember);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.pillar h3 {
    color: var(--bone);
    margin-bottom: 0.75rem;
}

.pillar p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Gallery ---------------------------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.shot {
    aspect-ratio: 4/3;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.shot:hover {
    border-color: var(--ember);
    transform: scale(1.02);
}

.shot span {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 3;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bone);
    background: rgba(8,10,12,0.7);
    padding: 0.35rem 0.7rem;
}

.shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.shot-1 { background: linear-gradient(135deg, #2a2520 0%, #0e1012 60%, #1a1614 100%); }
.shot-2 { background: linear-gradient(135deg, #1a2220 0%, #0e1113 60%, #14201c 100%); }
.shot-3 { background: linear-gradient(135deg, #2a2a26 0%, #12100e 60%, #1c1814 100%); }
.shot-4 { background: linear-gradient(180deg, #1a1c20 0%, #08090b 100%); }

.shot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(60deg, transparent 48%, rgba(255,255,255,0.02) 50%, transparent 52%),
        linear-gradient(-60deg, transparent 48%, rgba(0,0,0,0.3) 50%, transparent 52%);
    background-size: 80px 80px;
    z-index: 1;
}

/* CTA section ------------------------------------------------------------ */
.cta-section .container {
    text-align: center;
}

.cta-section p {
    max-width: 560px;
    margin: 1rem auto 2.5rem;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 5;
    background: rgba(8,10,12,0.5);
}

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

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.brand-small {
    font-family: var(--font-display);
    letter-spacing: 0.32em;
    color: var(--bone);
    margin-bottom: 0.5rem;
}

.footer-head {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--ink-mute);
    margin-bottom: 0.75rem;
}

.site-footer ul {
    list-style: none;
}

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

.site-footer ul a {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.site-footer ul a:hover { color: var(--bone); }

.copyright {
    text-align: center;
    color: var(--ink-mute);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

/* Blog page -------------------------------------------------------------- */
.blog-header {
    padding: 9rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--line);
}

.blog-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.16em;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (max-width: 880px) {
    .blog-layout { grid-template-columns: 1fr; }
}

.posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post {
    border-bottom: 1px solid var(--line);
    padding-bottom: 3rem;
    transition: opacity 0.3s ease;
}

.post.hidden {
    display: none;
}

.post-head {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.post-head time {
    color: var(--ink-mute);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember-glow);
    border: 1px solid var(--ember);
    padding: 0.15rem 0.6rem;
    background: rgba(201,122,58,0.05);
}

.post h2 {
    margin-bottom: 0.75rem;
}

.post h2 a {
    color: var(--bone);
    text-decoration: none;
}

.post h2 a:hover {
    color: var(--ember-glow);
}

.excerpt {
    color: var(--ink);
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ember-glow);
}

/* Sidebar ---------------------------------------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 6rem;
    align-self: start;
}

.side-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.5rem;
}

.side-card h3 {
    color: var(--bone);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.tag-btn:hover {
    color: var(--bone);
    border-color: var(--ink-soft);
}

.tag-btn.active {
    background: var(--ember);
    color: #1a1208;
    border-color: var(--ember);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.subscribe-form input {
    background: var(--bg-deep);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.65rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-form input:focus {
    border-color: var(--ember);
}

.form-msg {
    font-size: 0.8rem;
    color: var(--ember-glow);
    min-height: 1.2rem;
    margin-top: 0.5rem;
}

.archive-list {
    list-style: none;
}

.archive-list li {
    padding: 0.4rem 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--line);
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list span {
    color: var(--ink-mute);
    font-size: 0.78rem;
}

/* Single post page ------------------------------------------------------ */
.post-page main {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.post-page .post-header {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1.5rem;
}

.post-page .post-header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0.06em;
    text-transform: none;
    margin: 1rem 0;
}

.post-page .post-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    color: var(--ink-mute);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.post-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-body p {
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
}

.post-body p.lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--ink-soft);
    border-left: 2px solid var(--ember);
    padding-left: 1.25rem;
    margin: 2rem 0 2.5rem;
}

.post-body h2 {
    font-size: 1.7rem;
    margin: 3rem 0 1rem;
    color: var(--bone);
}

.post-body figure {
    margin: 2.5rem 0;
}

.post-body figure.wide {
    max-width: 1000px;
    margin-left: calc(50% - 500px);
    margin-right: calc(50% - 500px);
}

@media (max-width: 1040px) {
    .post-body figure.wide {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.post-body figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--line);
    background: var(--bg-deep);
}

.post-body figcaption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--ink-mute);
    font-style: italic;
    text-align: center;
}

.post-body .img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0;
}

@media (max-width: 640px) {
    .post-body .img-pair { grid-template-columns: 1fr; }
}

.post-body .img-pair img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--line);
}

.post-nav {
    max-width: 760px;
    margin: 4rem auto 0;
    padding: 2rem 1.5rem 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.post-nav a:hover { color: var(--ember-glow); }

/* Fade-in animation ----------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
