@charset "UTF-8";

/* ============================================================
   Bladedtoys — modern editorial system
   Palette: parchment · ink-navy · gold · ember
   Type:    Fraunces (display, soft serif)  ·  JetBrains Mono
   ============================================================ */

:root {
    --bg: #f1e8d4;
    --bg-soft: #e9dec5;
    --bg-deep: #ddd0b1;
    --paper: #f7f0dd;

    --ink: #07093d;
    --ink-soft: #2a2d5a;
    --ink-muted: #696a80;
    --ink-faded: #9c9aa1;

    --gold: #cf9b3c;
    --gold-deep: #8a6620;
    --gold-light: #f4cf76;
    --ember: #e94c2b;

    --line: rgba(7, 9, 61, 0.14);
    --line-soft: rgba(7, 9, 61, 0.07);

    --display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --maxw: 1240px;
    --gutter: clamp(20px, 4vw, 56px);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80vw 60vh at 95% -10%, rgba(207, 155, 60, 0.30), transparent 60%),
        radial-gradient(ellipse 60vw 50vh at -10% 110%, rgba(233, 76, 43, 0.18), transparent 65%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    padding-bottom: 140px;
}

img { border: 0; max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--ink); color: var(--gold-light); }


/* ---------- Grain overlay ---------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.03  0 0 0 0 0.04  0 0 0 0 0.24  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* ---------- Header ---------- */
.site-header {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px var(--gutter) 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "SOFT" 50, "opsz" 30;
}

.brand__mark {
    display: inline-flex;
    transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-20deg); }

.brand__type::after {
    content: ".com";
    color: var(--ink-faded);
    font-style: italic;
    font-weight: 300;
    margin-left: 1px;
}

.primary-nav__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.primary-nav__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 0 rgba(233, 76, 43, 0.6);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(233, 76, 43, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(233, 76, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 76, 43, 0); }
}


/* ---------- Layout ---------- */
.main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

.meta {
    display: inline-block;
    font-family: var(--mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.meta--mark { color: var(--gold-deep); }


/* ---------- Manifesto / hero ---------- */
.manifesto {
    padding: clamp(48px, 10vh, 120px) 0 clamp(60px, 12vh, 140px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.manifesto::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 1px;
    background: var(--ember);
}

.manifesto__title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(54px, 11vw, 168px);
    line-height: 0.88;
    letter-spacing: -0.035em;
    margin: 0;
    color: var(--ink);
    font-variation-settings: "SOFT" 30, "opsz" 144;
    max-width: 13ch;
}
.manifesto__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold-deep);
    font-variation-settings: "SOFT" 100, "opsz" 144;
}
.manifesto__line {
    display: block;
    padding-left: clamp(40px, 8vw, 140px);
}

.manifesto__lede {
    margin: 0;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 56ch;
    padding-left: clamp(40px, 8vw, 140px);
}
.manifesto__lede-aside {
    color: var(--ink-muted);
}


/* ---------- Release sections ---------- */
.release {
    padding: clamp(60px, 10vh, 120px) 0;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.release--alt {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
}
.release--alt .release__head { order: 2; }
.release--alt .release__media { order: 1; }
.release--alt .release__cta { order: 3; grid-column: 1 / -1; justify-content: flex-end; }

.release__head {
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.release__title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    margin: 6px 0 0;
    color: var(--ink);
    font-variation-settings: "SOFT" 50, "opsz" 144;
}
.release__title-mark { color: var(--ember); }

.release__sub {
    margin: 0;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 32ch;
    line-height: 1.5;
}
.release__sub a {
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
    transition: color 0.2s, border-color 0.2s;
}
.release__sub a:hover { color: var(--gold-deep); border-bottom-color: var(--ember); }

.release__specs {
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
}
.release__specs > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: baseline;
}
.release__specs dt {
    color: var(--ink-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 10px;
}
.release__specs dd {
    margin: 0;
    color: var(--ink);
}


/* ---------- Media frames ---------- */
.release__media {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.release__frame {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow:
        0 30px 60px -28px rgba(7, 9, 61, 0.45),
        0 4px 12px -4px rgba(7, 9, 61, 0.15);
    aspect-ratio: 640 / 360;
}
.release__frame img,
.release__frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}
.release__frame--video iframe {
    background: #000;
}

/* Decorative corner ticks */
.release__corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--gold-light);
    z-index: 2;
    pointer-events: none;
}
.release__corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.release__corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.release__corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.release__corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }


/* ---------- CTAs ---------- */
.release__cta {
    grid-column: 2;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.store-button {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px 18px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    text-decoration: none;
    position: relative;
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
    min-width: 220px;
}
.store-button:hover {
    transform: translateY(-3px);
    background: var(--ink-soft);
}
.store-button__kicker {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.store-button__name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-variation-settings: "SOFT" 30;
}
.store-button__icon {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 18px;
    height: 18px;
    color: var(--gold-light);
    transition: transform 0.3s var(--ease);
}
.store-button:hover .store-button__icon { transform: translate(2px, -2px); }


/* ---------- Rotor (decorative) ---------- */
.rotor {
    margin: clamp(60px, 12vh, 140px) auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: var(--ink-faded);
}
.rotor__svg {
    width: 120px;
    height: 120px;
    overflow: visible;
}
.rotor__inner {
    transform-origin: center;
    animation: rotor 14s linear infinite;
}
@keyframes rotor {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.rotor__caption {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}


/* ---------- Dock (fixed bottom nav) ---------- */
.dock {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    box-shadow: 0 22px 40px -18px rgba(7, 9, 61, 0.55);
    z-index: 100;
}

.dock__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    color: var(--ink-faded);
    transition: color 0.2s;
}
.dock__link:hover { color: var(--gold-light); }
.dock__link--active { color: var(--paper); }

.dock__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 8px var(--gold-light);
}

.dock__divider {
    width: 1px;
    height: 14px;
    background: rgba(244, 207, 118, 0.25);
}


/* ---------- Contact page ---------- */
.release__frame--card {
    aspect-ratio: 640 / 360;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(244, 207, 118, 0.18), transparent 60%),
        linear-gradient(160deg, #0d113f 0%, #07093d 60%, #04062a 100%);
    display: grid;
    place-items: center;
    padding: 36px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    color: var(--paper);
    width: 100%;
}
.contact-card__kicker {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.contact-card__address {
    display: inline-block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 4.2vw, 52px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--paper);
    text-decoration: none;
    padding: 6px 4px 8px;
    border-bottom: 1px solid rgba(244, 207, 118, 0.35);
    font-variation-settings: "SOFT" 60, "opsz" 144;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card__address:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}
.contact-card__mark {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(244, 207, 118, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-card__mark img {
    max-width: 160px;
    filter: invert(1) hue-rotate(180deg) brightness(1.2) saturate(0);
    opacity: 0.9;
}

.creator-card {
    position: relative;
    display: block;
    aspect-ratio: 640 / 360;
    background:
        linear-gradient(140deg, #f7f0dd 0%, #e9dec5 60%, #ddd0b1 100%);
    border: 1px solid var(--line);
    box-shadow:
        0 30px 60px -28px rgba(7, 9, 61, 0.4),
        0 4px 12px -4px rgba(7, 9, 61, 0.12);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.creator-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 80px -28px rgba(7, 9, 61, 0.55),
        0 4px 12px -4px rgba(7, 9, 61, 0.18);
}
.creator-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(7, 9, 61, 0.04) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg, rgba(7, 9, 61, 0.04) 0 1px, transparent 1px 80px);
    pointer-events: none;
}
.creator-card__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 38px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.creator-card__kicker {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.creator-card__name {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-variation-settings: "SOFT" 70, "opsz" 144;
}
.creator-card__tld {
    color: var(--gold-deep);
    font-style: italic;
    font-weight: 300;
}
.creator-card__hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.2s, gap 0.2s var(--ease);
}
.creator-card__hint svg {
    width: 16px;
    height: 16px;
    color: var(--ember);
    transition: transform 0.3s var(--ease);
}
.creator-card:hover .creator-card__hint { color: var(--ink); gap: 14px; }
.creator-card:hover .creator-card__hint svg { transform: translate(2px, -2px); }


/* ---------- Topic/wrap legacy shims (kept harmless) ---------- */
.wrap, .topic, .entry, .content, .bottomcontent,
.boxes, .box, .nav, .clearfix, .ribbon, .shortribbon { all: unset; }


/* ---------- Wishlist (preserved, retuned for parchment bg) ---------- */
.wishlist {
    margin-bottom: 7vh;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    color: #07090c;
    background: linear-gradient(160deg, #f4cf76, #cf9b3c 55%, #8a6620);
    border: 0;
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.wishlist:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}
.wishlist svg {
    width: 22px;
    height: 22px;
    flex: none;
}


/* ---------- Page-load reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
    .site-header, .manifesto, .release, .rotor, .dock {
        animation: rise 0.9s var(--ease) both;
    }
    .site-header { animation-delay: 0.00s; }
    .manifesto   { animation-delay: 0.10s; }
    .release     { animation-delay: 0.20s; }
    .release--alt{ animation-delay: 0.30s; }
    .rotor       { animation-delay: 0.40s; }
    .dock        { animation-delay: 0.50s; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dock { animation-name: dockRise; }
@keyframes dockRise {
    from { opacity: 0; transform: translate(-50%, 24px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}


/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .site-header { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; }
    .release { grid-template-columns: 1fr; gap: 28px; }
    .release--alt { grid-template-columns: 1fr; }
    .release--alt .release__head { order: 1; }
    .release--alt .release__media { order: 2; }
    .release--alt .release__cta { order: 3; justify-content: flex-start; }
    .release__head { position: static; }
    .release__cta { grid-column: 1; margin-top: 18px; }
    .manifesto__line { padding-left: 0; }
    .manifesto__lede { padding-left: 0; }
    .store-button { min-width: 0; flex: 1 1 240px; }
    body { padding-bottom: 110px; }
}

@media (max-width: 520px) {
    .brand { font-size: 22px; }
    .brand__mark img { width: 30px; height: 30px; }
    .release__specs > div { grid-template-columns: 70px 1fr; }
    .dock { font-size: 10px; }
    .dock__link { padding: 8px 12px; }
}
