/* ==========================================================================
   Astronihan - front-end stylesheet
   Palette: Elektrik Civit - light indigo paper, indigo accent, hot pink secondary.
   Layout: single 1140px column, generous vertical rhythm, cards used only
   where an item really is a separate object.
   ========================================================================== */

:root {
    /* --- colour: light (default) --- */
    --bg:          #f0f0ff;  /* acik civit */
    --bg-deep:     #e8e7fb;
    --surface:     #ffffff;
    --surface-2:   #ecebfd;
    --ink:         #120f3a;  /* gece cividi */
    --ink-soft:    #5b5790;
    --ink-faint:   #8b88b8;
    --accent:        #3b35e0;  /* elektrik civit */
    --accent-deep:   #2a25b8;
    --accent-pale:   #e1dffb;
    --accent2:        #ff4d8d;  /* sicak pembe */
    --accent2-deep:   #d6236a;
    --line:        #d8d8f5;
    --line-soft:   #e8e8fb;
    --shadow:      0 1px 2px rgba(18, 15, 58, .04), 0 8px 24px -12px rgba(18, 15, 58, .14);
    --shadow-lift: 0 2px 4px rgba(18, 15, 58, .06), 0 18px 40px -18px rgba(18, 15, 58, .22);

    /* --- type --- */
    --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body:    "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    /* Text-style zodiac glyphs; without this Windows draws them as emoji. */
    --font-symbol:  "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", serif;

    /* --- metrics --- */
    --wrap:    1140px;
    --wrap-sm: 760px;
    --radius:  10px;
    --radius-lg: 18px;
    --gutter: clamp(1rem, 4vw, 2.5rem);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:        #0e0c24;
        --bg-deep:   #08071a;
        --surface:   #1a1746;
        --surface-2: #231f5a;
        --ink:       #e9e8ff;
        --ink-soft:  #a9a6d8;
        --ink-faint: #817db0;
        --accent:      #8b86ff;
        --accent-deep: #b3afff;
        --accent-pale: #221e58;
        --accent2:      #ff7aae;
        --accent2-deep: #ffa3c6;
        --line:      #2c2866;
        --line-soft: #241f52;
        --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
        --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg:        #0e0c24;
    --bg-deep:   #08071a;
    --surface:   #1a1746;
    --surface-2: #231f5a;
    --ink:       #e9e8ff;
    --ink-soft:  #a9a6d8;
    --ink-faint: #817db0;
    --accent:      #8b86ff;
    --accent-deep: #b3afff;
    --accent-pale: #221e58;
    --accent2:      #ff7aae;
    --accent2-deep: #ffa3c6;
    --line:      #2c2866;
    --line-soft: #241f52;
    --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.7 var(--font-body);
    letter-spacing: .005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.03em;
    text-wrap: balance;
    margin: 0 0 .6em;
    color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent-pale); color: var(--ink); }

/* ------------------------------------------------------------- utilities */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-sm); }
/* Narrow reading column that keeps the page's left edge instead of centring,
   so a block under a left-aligned title does not look indented. */
.wrap--column { max-width: var(--wrap); }
.wrap--column > * { max-width: var(--wrap-sm); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent2-deep);
    margin: 0 0 1rem;
}
.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section { padding-block: clamp(2.5rem, 5.5vw, 4.25rem); }
/* The hero already ends in a lot of air, so the first band sits closer. */
.hero + .section { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.section--tint { background: var(--bg-deep); }
.section--paper { background: var(--surface); }
.section__head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.rule {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    margin-block: clamp(2rem, 5vw, 3.5rem);
}

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 .95rem/1 var(--font-body);
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-deep); color: #ffffff; }
.btn--primary:hover { background: var(--accent); color: #ffffff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn--accent2 { background: var(--accent2-deep); color: #ffffff; }
.btn--accent2:hover { background: var(--accent2); color: #ffffff; }
.btn--block { width: 100%; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }

:root[data-theme="dark"] .btn--primary,
:root[data-theme="dark"] .btn--accent2 { color: #0e0c24; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn--primary,
    :root:not([data-theme="light"]) .btn--accent2 { color: #0e0c24; }
}

.linkmore {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    color: var(--accent-deep);
}
.linkmore::after { content: "→"; transition: transform .18s ease; }
.linkmore:hover { color: var(--accent); }
.linkmore:hover::after { transform: translateX(3px); }

/* ----------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 74px;
}
.brand {
    display: inline-flex;
    align-items: baseline;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: -.01em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.brand img { max-height: 46px; width: auto; }
.brand__mark { color: var(--accent-deep); font-size: 1.1em; line-height: 1; }
.brand small {
    display: block;
    font-family: var(--font-body);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
    font-size: .96rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding-block: .35rem;
    border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 620px) {
    .site-header__inner { gap: .5rem; }
    .header-actions .btn { padding-inline: .9rem; font-size: .85rem; }
    /* .brand never wraps, so the strapline under it sets the whole element's
       width and pushes the round buttons past the right edge of a 360px
       screen - which is why the menu button could only be reached by
       scrolling sideways. */
    .brand { font-size: 1.2rem; min-width: 0; }
    .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .brand small { display: none; }
    /* The call to action moves into the menu instead. */
    .header-actions > .btn { display: none; }
}

/* Mirror of the header call to action. Hidden everywhere except inside the
   open menu on the narrow screens where the header drops it. */
.nav__cta { display: none; }

.theme-toggle,
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        inset: 100% 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem var(--gutter) 1.25rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .nav { display: none; }
    .nav.is-open { display: flex; }
    .nav a { padding-block: .8rem; border-bottom: 1px solid var(--line-soft); }
    .nav a:hover { border-bottom-color: var(--line-soft); }
}
@media (max-width: 620px) {
    .nav a.nav__cta {
        display: inline-flex;
        justify-content: center;
        margin-top: 1rem;
        padding-block: .7rem;
        border-bottom: 0;
    }
}

/* ------------------------------------------------------------------- hero */
/* "Merkez" layout: one centred column inside a zodiac ring that turns once
   every three minutes, with two short text columns resting against the ring.
   --ring drives everything: the circle's size, the hero height that has to
   hold it, and where the side columns sit. */
.hero {
    /* One knob for the whole composition: ring, hero height and the text
       block all scale together, so the text never touches the ring. */
    --hero-scale: .9;
    --ring: calc(min(45rem, 94vw) * var(--hero-scale));
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: center;
    min-height: calc(var(--ring) / .95);
    padding-block: clamp(2.6rem, 7vw, 4.5rem);
    text-align: center;
}
/* Browsers without color-mix() simply get no glow, which is acceptable. */
.hero::before {
    content: "";
    position: absolute;
    inset: -34% -12% auto;
    height: 158%;
    background:
        radial-gradient(42% 44% at 50% 26%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
        radial-gradient(38% 40% at 20% 64%, color-mix(in srgb, var(--accent-deep) 30%, transparent), transparent 72%),
        radial-gradient(34% 36% at 80% 58%, color-mix(in srgb, var(--accent2) 24%, transparent), transparent 72%);
    filter: blur(6px);
    pointer-events: none;
}
.hero__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    height: var(--ring);
    width: auto;
    aspect-ratio: 1;
    translate: -50% -50%;
    color: var(--accent);
    opacity: .3;
    pointer-events: none;
    animation: hero-spin 190s linear infinite;
}
@keyframes hero-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
    .hero__ring { animation: none; }
}

/* Narrow enough to stay inside the ring's clear middle (r 160/200). */
.hero__center {
    position: relative;
    z-index: 2;
    max-width: min(calc(27rem * var(--hero-scale)), 100%);
    margin-inline: auto;
}
.hero__center .eyebrow { justify-content: center; }
.hero h1 { margin-bottom: .9rem; font-size: calc(clamp(1.8rem, 3.8vw, 2.5rem) * var(--hero-scale)); }
.hero h1 em { font-style: normal; color: var(--accent-deep); }
.hero__text { font-size: calc(1.04rem * var(--hero-scale)); color: var(--ink-soft); max-width: 42ch; }
.hero__center .hero__text { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__center .hero__actions { justify-content: center; }
.hero__medallion {
    width: calc(clamp(5.5rem, 14vw, 8rem) * var(--hero-scale));
    aspect-ratio: 1;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
    box-shadow: var(--shadow-lift);
}
.hero__medallion img { width: 100%; height: 100%; object-fit: cover; }

/* Under ~900px the text block is wider than the ring can ever be, so the ring
   stops being a frame and becomes a watermark: no inner boundary to cut
   through the text, and a lighter stroke. */
@media (max-width: 900px) {
    .hero { --hero-scale: 1; }
    .hero__center { max-width: min(calc(27rem * var(--hero-scale)), 92%); }
    .hero__ring { opacity: .17; }
    .hero__ring-inner { display: none; }
}

/* Two-column split; the "Hakkimda" band further down the page reuses it. */
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    text-align: left;
}
.hero__portrait {
    position: relative;
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--surface-2);
    box-shadow: var(--shadow-lift);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__portrait { max-width: 22rem; margin-inline: auto; }
}

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card--link:hover { box-shadow: var(--shadow-lift); border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__icon {
    width: 2.75rem; height: 2.75rem;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent-deep);
    margin-bottom: 1.1rem;
}
.card__meta {
    margin-top: auto;
    padding-top: 1.25rem;
    /* One line per label: a flex row wrapped differently in every card. */
    display: grid;
    gap: .35rem;
    font-size: .85rem;
    color: var(--ink-faint);
}
.card__meta strong { color: var(--ink-soft); font-weight: 600; }

/* Lists of links inside cards and helper blocks: the underline a bare <a>
   carries looks like unstyled markup next to the rest of the site. */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.linklist a { color: var(--ink); text-decoration: none; }
.linklist a:hover { color: var(--accent-deep); text-decoration: underline; }

.tag {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent-deep);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
}

/* ------------------------------------------------------------------- posts */
.post-list { display: grid; gap: 0; }
.post-item {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.75rem;
    padding-block: 1.9rem;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
}
.post-item:first-child { padding-top: 0; }
.post-item__thumb {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
}
.post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item h3 { margin-bottom: .4rem; font-size: 1.35rem; }
.post-item h3 a { color: inherit; text-decoration: none; }
.post-item h3 a:hover { color: var(--accent-deep); }
.post-item__meta {
    display: flex; flex-wrap: wrap; gap: .35rem .9rem;
    font-size: .84rem; color: var(--ink-faint);
    margin-bottom: .6rem;
}
@media (max-width: 680px) {
    .post-item { grid-template-columns: 1fr; gap: 1rem; }
    .post-item__thumb { max-width: 14rem; }
}

/* --------------------------------------------------------------- article */
.article { max-width: 70ch; margin-inline: auto; }
.article__header { margin-bottom: 2.5rem; }
.article__cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: var(--surface-2);
}
.prose { font-size: 1.08rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img, .prose figure { border-radius: var(--radius); overflow: hidden; }
.prose figcaption { font-size: .86rem; color: var(--ink-faint); margin-top: .5rem; }
.prose blockquote {
    margin: 2em 0;
    padding: .4em 0 .4em 1.4em;
    border-left: 3px solid var(--accent);
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.prose a { font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------- inner page shell */
/* Inner pages have no hero, so without this they are one flat colour from
   header to footer. The band gives them a top; the cropped ring echoes the
   home page without repeating it. The home page is untouched because its
   first <section> is the hero, which carries no .section class. */
main > article.section:first-of-type,
main > section.section:first-of-type {
    position: relative;
    /* overflow: clip, not hidden: it crops the ring without becoming a scroll
       container, so the sticky portrait rail keeps sticking. */
    overflow: clip;
    background:
        radial-gradient(42rem 20rem at 14% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        radial-gradient(34rem 18rem at 92% 2%, color-mix(in srgb, var(--accent2) 10%, transparent), transparent 72%),
        linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 26rem);
}
/* Same wheel as the hero, same 190s turn, cropped into the corner. A real
   element rather than a background layer, because backgrounds cannot rotate. */
main > article.section:first-of-type::before,
main > section.section:first-of-type::before {
    content: "";
    position: absolute;
    top: -19rem;
    right: -11rem;
    width: 38rem;
    height: 38rem;
    background: url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 400 400%22 fill%3D%22none%22 stroke%3D%22%238b86ff%22 stroke-opacity%3D%22.75%22 stroke-width%3D%221%22%3E%3Ccircle cx%3D%22200%22 cy%3D%22200%22 r%3D%22196%22%2F%3E%3Ccircle cx%3D%22200%22 cy%3D%22200%22 r%3D%22160%22 stroke-dasharray%3D%222 6%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(0 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(30 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(60 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(90 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(120 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(150 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(180 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(210 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(240 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(270 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(300 200 200)%22%2F%3E%3Cline x1%3D%22200%22 y1%3D%224%22 x2%3D%22200%22 y2%3D%2218%22 transform%3D%22rotate(330 200 200)%22%2F%3E%3Cg fill%3D%22%238b86ff%22 fill-opacity%3D%22.75%22 stroke%3D%22none%22 font-size%3D%2216%22 font-family%3D%22Segoe UI Symbol%2CNoto Sans Symbols 2%2CDejaVu Sans%2Cserif%22 text-anchor%3D%22middle%22%3E%3Ctext x%3D%22244.3%22 y%3D%2240.8%22%3E%E2%99%88%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22320.9%22 y%3D%2285.1%22%3E%E2%99%89%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22365.2%22 y%3D%22161.7%22%3E%E2%99%8A%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22365.2%22 y%3D%22250.3%22%3E%E2%99%8B%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22320.9%22 y%3D%22326.9%22%3E%E2%99%8C%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22244.3%22 y%3D%22371.2%22%3E%E2%99%8D%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22155.7%22 y%3D%22371.2%22%3E%E2%99%8E%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%2279.1%22 y%3D%22326.9%22%3E%E2%99%8F%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%2234.8%22 y%3D%22250.3%22%3E%E2%99%90%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%2234.8%22 y%3D%22161.7%22%3E%E2%99%91%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%2279.1%22 y%3D%2285.1%22%3E%E2%99%92%EF%B8%8E%3C%2Ftext%3E%3Ctext x%3D%22155.7%22 y%3D%2240.8%22%3E%E2%99%93%EF%B8%8E%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
    pointer-events: none;
    animation: hero-spin 190s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    main > article.section:first-of-type::before,
    main > section.section:first-of-type::before { animation: none; }
}

/* On a phone the band is narrower than the wheel, so at its desktop size the
   wheel sits behind the whole heading instead of in a corner. Shrunk and
   faded, it reads as a watermark in the top corner and the text stays
   legible over it. */
@media (max-width: 760px) {
    main > article.section:first-of-type::before,
    main > section.section:first-of-type::before {
        top: -17rem;
        right: -7rem;
        width: 22rem;
        height: 22rem;
        opacity: .35;
    }
}

main > article.section:first-of-type > *,
main > section.section:first-of-type > * { position: relative; z-index: 1; }

/* The deck earns its own rule instead of floating under the title. */
.article__header .lead {
    position: relative;
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    font-size: 1.18rem;
    line-height: 1.6;
}
.article__header .lead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent2);
}

/* No card: long-form text sits straight on the page ground. An opening
   paragraph set slightly larger still pulls the reader in. */
.prose.article > p:first-child {
    font-size: 1.16rem;
    color: var(--ink);
}

/* Two columns on article pages: a portrait rail beside the text, so a short
   page fills the width instead of hugging the left edge. */
.page-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.page-head .lead {
    position: relative;
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    font-size: 1.18rem;
    line-height: 1.6;
}
.page-head .lead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent2);
}
.page-cols {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    align-items: start;
}
.page-aside { position: sticky; top: 6rem; }
.page-main > * + * { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
/* Inside the column the card uses the full width; no second centring. */
.page-main .article,
.page-main .closing { max-width: none; margin-inline: 0; }
.page-main .closing { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
@media (max-width: 860px) {
    .page-cols { grid-template-columns: 1fr; }
    .page-aside { position: static; max-width: 20rem; }
}

/* Portrait, or the initials that stand in until a photograph is uploaded. */
.portrait { margin: 0; }
.portrait__frame {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(68% 58% at 32% 26%, color-mix(in srgb, var(--accent2) 70%, transparent), transparent 70%),
        linear-gradient(150deg, var(--accent), var(--accent-deep));
    box-shadow:
        0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent),
        0 32px 60px -44px color-mix(in srgb, var(--ink) 55%, transparent);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initials {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -.04em;
    /* --surface flips with the theme, so this stays readable on both gradients. */
    color: var(--surface);
}
.portrait figcaption { margin-top: .9rem; }
.portrait figcaption b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.02em;
}
.portrait figcaption span { font-size: .85rem; color: var(--ink-soft); }

/* Closing call to action: a panel with a line of copy, not a lone button. */
.closing {
    max-width: 70ch;
    margin: clamp(2rem, 5vw, 3.25rem) auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.75rem;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.4rem, 3.5vw, 2.1rem);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--accent) 13%, var(--surface)),
        color-mix(in srgb, var(--accent2) 11%, var(--surface)));
}
.closing > div { display: grid; gap: .3rem; max-width: 38ch; }
.closing__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    line-height: 1.3;
}
.closing__note { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.closing .btn { flex: none; }

.archive-older { margin-top: 1rem; }
.archive-older summary {
    cursor: pointer;
    font-size: .9rem;
    color: var(--accent-deep);
    width: fit-content;
}

/* Banner on an archived reading, so nobody mistakes it for this month. */
.archive-note {
    margin: 1.5rem 0 0;
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: .92rem;
    color: var(--ink-soft);
}
.archive-note strong { color: var(--ink); }
.archive-note a { margin-left: .35rem; white-space: nowrap; }

/* ------------------------------------------------------------- horoscopes */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .85rem; }
.sign-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1.1rem .5rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.sign-chip:hover { border-color: var(--accent); background: var(--accent-pale); transform: translateY(-2px); }
.sign-chip[aria-current="page"] { border-color: var(--accent-deep); background: var(--accent-pale); }
.sign-chip__glyph { font-family: var(--font-symbol); font-size: 1.7rem; line-height: 1; color: var(--accent-deep); }
.sign-chip__name { font-weight: 600; font-size: .95rem; }
.sign-chip__dates { font-size: .74rem; color: var(--ink-faint); }

.periods { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.periods a {
    padding: .5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
}
.periods a:hover { border-color: var(--accent); color: var(--accent-deep); }
.periods a[aria-current="page"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #ffffff; }

.sign-facts {
    display: grid;
    /* 9rem fitted three columns into the narrow text column and broke the
       sentences into six-word slivers; 15rem keeps a readable measure. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    /* Dividers come from each cell outlining itself, not from a coloured
       container behind 1px gaps: an odd item out would leave a grey hole. */
    gap: 1px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-block: 2rem;
}
.sign-facts div {
    background: var(--surface);
    padding: 1rem 1.1rem;
    box-shadow: 0 0 0 1px var(--line-soft);
}
.sign-facts dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .25rem; }
.sign-facts dd { margin: 0; font-weight: 600; }

.accordion { border-top: 1px solid var(--line-soft); }
.accordion details { border-bottom: 1px solid var(--line-soft); }
.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.2rem;
    list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--accent-deep); font-size: 1.4rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .accordion__body { padding-bottom: 1.5rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field > label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: .82rem; color: var(--ink-faint); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: .72rem .9rem;
    font: 400 1rem/1.5 var(--font-body);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-pale);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.checkbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: start; font-size: .92rem; color: var(--ink-soft); }
.checkbox input { margin-top: .25rem; accent-color: var(--accent-deep); width: 1.05rem; height: 1.05rem; }

.field--error input, .field--error select, .field--error textarea { border-color: #d33a4e; }
.field__error { font-size: .85rem; color: #d33a4e; }
.honeypot { position: absolute; left: -9999px; }

.alert {
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: .96rem;
}
.alert--success { border-color: var(--accent); background: var(--accent-pale); color: var(--accent-deep); }
.alert--error { border-color: #f0a6b0; background: #fdebee; color: #8f1d2c; }
:root[data-theme="dark"] .alert--error { background: #3c1b21; color: #ffb3bd; border-color: #6d2733; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .alert--error { background: #3c1b21; color: #ffb3bd; border-color: #6d2733; }
}

/* -------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
    min-width: 2.5rem;
    padding: .5rem .75rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink-soft);
    font-size: .92rem;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-deep); }
.pagination [aria-current="page"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #ffffff; }

/* ------------------------------------------------------------- breadcrumbs */
.crumbs { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }

/* ------------------------------------------------------------------ footer */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
    margin-top: clamp(3rem, 8vw, 6rem);
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
}
.site-footer h4 {
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); }
.footer-bottom {
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--ink-faint);
}
.social { display: flex; gap: .6rem; }
.social a {
    width: 2.3rem; height: 2.3rem;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
}
.social a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ------------------------------------------------------------ whatsapp fab */
.whatsapp-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: var(--accent-deep);
    color: #ffffff;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: var(--shadow-lift);
}
.whatsapp-fab:hover { background: var(--accent); color: #ffffff; }
.whatsapp-fab span { display: none; }
@media (min-width: 640px) { .whatsapp-fab span { display: inline; } }

/* --------------------------------------------------------------- a11y/misc */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.skip-link {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    top: -3rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--accent-deep);
    color: #ffffff;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
}
.skip-link:focus { top: 0; }

@media print {
    .site-header, .site-footer, .whatsapp-fab, .periods { display: none; }
    body { background: #fff; color: #000; }
}
