/* Amaris Selûnite portfolio theme — hand-ported from the Portfolio.dc.html
   design canvas export into real CSS (the original's inline style +
   style-hover attributes only work inside the Claude Design preview
   runtime, not a real browser). */

:root {
    --bg: #0B0D0C;
    --bg-2: #101412;
    --ink: #A9ADA8;
    --cream: #E7DEC8;
    --green: #1FA774;
    --gold: #C9A96E;
    --wine: #632D45;
    --panel: #121713;
    --panel-2: #0e1210;
    --border: rgba(201, 169, 110, .18);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.portfolio {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.portfolio a { color: var(--green); text-decoration: none; }
.portfolio a:hover { color: var(--gold); }
.portfolio ::selection { background: var(--wine); color: var(--cream); }

.portfolio-bg {
    position: relative;
    background:
        radial-gradient(900px 520px at 78% -8%, rgba(31, 167, 116, .10), transparent 70%),
        radial-gradient(700px 420px at 6% 12%, rgba(99, 45, 69, .16), transparent 72%),
        var(--bg);
}

.serif { font-family: 'Cinzel', serif; }
.lede { font-family: 'Cormorant Garamond', serif; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* Header / nav */
.site-header {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(11, 13, 12, .82);
    border-bottom: 1px solid var(--border);
}
.site-nav {
    max-width: 1180px; margin: 0 auto; padding: 14px clamp(18px, 4vw, 40px);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.portfolio .brand { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.brand-logo { display: block; width: 26px; height: 26px; object-fit: contain; flex: none; }
.brand-mark { font: 500 13px/1 'Cinzel', serif; letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; justify-content: flex-end; }
.portfolio .nav-link { font: 600 10.5px/1 'Manrope', sans-serif; letter-spacing: .2em; color: var(--ink); }
.portfolio .nav-link:hover { color: var(--cream); }
.portfolio .nav-cta {
    font: 600 10.5px/1 'Manrope', sans-serif; letter-spacing: .18em; color: var(--bg);
    background: var(--green); padding: 9px 16px; border-radius: 2px;
}
.portfolio .nav-cta:hover { background: var(--gold); color: var(--bg); }

.nav-toggle {
    display: none; flex: none; width: 34px; height: 34px; padding: 0; margin: 0;
    background: none; border: 1px solid rgba(201, 169, 110, .3); border-radius: 2px; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--cream); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-block; font: 600 11px/1 'Manrope', sans-serif; letter-spacing: .18em;
    padding: 14px 22px; border-radius: 2px; cursor: pointer; border: none; text-align: center;
}
.portfolio .btn-solid { color: var(--bg); background: var(--green); }
.portfolio .btn-solid:hover { background: var(--gold); color: var(--bg); }
.portfolio .btn-outline { color: var(--cream); background: none; border: 1px solid rgba(201, 169, 110, .4); }
.portfolio .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.portfolio .btn-wine { color: var(--cream); background: var(--wine); }
.portfolio .btn-wine:hover { background: #7a3855; }

/* Sections */
.section { border-top: 1px solid var(--border); }
.section-tint { background: linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg)); }
.section-pad { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.kicker { font: 600 10.5px/1 'Manrope', sans-serif; letter-spacing: .3em; color: var(--green); }
.section-title { margin: 14px 0 0; font: 400 clamp(28px, 4.4vw, 44px)/1.08 'Cinzel', serif; letter-spacing: .04em; color: var(--cream); }
.section-lede { margin: 14px 0 0; max-width: 58ch; font: 300 clamp(16px, 1.8vw, 19px)/1.6 'Cormorant Garamond', serif; color: var(--ink); }

/* Cards */
.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: clamp(22px, 3vw, 32px);
}
.card-elevated { background: linear-gradient(180deg, #141B17, #0f1412); border: 1px solid rgba(201, 169, 110, .2); }

.grid { display: grid; gap: 18px; }
.grid-auto-280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-auto-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-auto-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* Badges / tags */
.tag {
    display: inline-block; font: 500 11px/1 'Manrope', sans-serif; letter-spacing: .1em; color: var(--cream);
    background: rgba(31, 167, 116, .1); border: 1px solid rgba(31, 167, 116, .26); padding: 8px 11px; margin: 0 6px 6px 0;
}
.kind-badge { font: 600 9.5px/1 'Manrope', sans-serif; letter-spacing: .24em; padding: 6px 9px; border: 1px solid rgba(201, 169, 110, .42); color: var(--gold); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font: 600 9.5px/1 'Manrope', sans-serif; letter-spacing: .2em; color: var(--green); }
.status-dot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.is-complete { color: var(--ink); }
.status-dot.is-complete .dot { background: var(--wine); box-shadow: none; }

/* Bars */
.bar-track { height: 6px; background: #14201A; border: 1px solid rgba(31, 167, 116, .2); overflow: hidden; }
.bar-fill { height: 100%; transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); background: linear-gradient(90deg, var(--green), var(--gold)); }
.bar-fill.accent-gold { background: linear-gradient(90deg, var(--gold), var(--gold)); }
.bar-fill.accent-wine { background: linear-gradient(90deg, var(--wine), var(--gold)); }
.bar-fill.in-view { transform: scaleX(1); }

/* Quests */
.quest-card { border-left: 3px solid transparent; }
.quest-card.kind-epic { border-color: rgba(31, 167, 116, .5); }
.quest-card.kind-main { border-color: rgba(201, 169, 110, .4); }
.quest-card.kind-side { border-color: rgba(169, 173, 168, .3); }

/* Timeline */
.timeline { position: relative; padding-left: clamp(22px, 4vw, 34px); border-left: 1px solid var(--border); display: grid; gap: clamp(28px, 4vw, 44px); }
.timeline-item { position: relative; }
.timeline-dot { position: absolute; left: calc(clamp(22px, 4vw, 34px) * -1 - 5px); top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(31, 167, 116, .9); }
.timeline-dot.is-complete { width: 7px; height: 7px; left: calc(clamp(22px, 4vw, 34px) * -1 - 4px); background: var(--gold); box-shadow: none; }

/* Forms */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 600 9.5px/1 'Manrope', sans-serif; letter-spacing: .2em; color: var(--ink); }
.field input, .field textarea {
    background: var(--bg); border: 1px solid rgba(169, 173, 168, .22); border-radius: 2px; padding: 13px 14px;
    color: var(--cream); font: 400 14px/1.4 'Manrope', sans-serif; outline: none; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--green); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer.site-footer { border-top: 1px solid var(--border); background: #0a0c0b; }
.footer-inner { padding: 34px clamp(20px, 5vw, 40px); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .7s ease both; }

/* Hero portrait rings — slow decorative rotation, opposite directions */
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes spinBack { to { transform: rotate(-360deg); } }
.hero-ring-outer { animation: spinSlow 90s linear infinite; opacity: .5; }
.hero-ring-inner { animation: spinBack 140s linear infinite; opacity: .4; }
@media (prefers-reduced-motion: reduce) {
    .hero-ring-outer, .hero-ring-inner { animation: none; }
}

/* Dice roll easter egg */
.dice-die { transform-origin: 50% 50%; will-change: transform; }
.dice-die[disabled], .dice-die.is-rolling { cursor: default; }
.dice-die .serif { transition: color .15s ease; }

@keyframes diceTumble {
    0%   { transform: rotate(0deg) translate(0, 0) scale(1); }
    12%  { transform: rotate(110deg) translate(-3px, -5px) scale(1.08); }
    28%  { transform: rotate(230deg) translate(4px, 2px) scale(.93); }
    45%  { transform: rotate(370deg) translate(-4px, 3px) scale(1.07); }
    62%  { transform: rotate(500deg) translate(3px, -2px) scale(.95); }
    78%  { transform: rotate(610deg) translate(-2px, 1px) scale(1.04); }
    92%  { transform: rotate(690deg) translate(1px, -1px) scale(.99); }
    100% { transform: rotate(720deg) translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
    .dice-die.is-rolling { animation: diceTumble .75s cubic-bezier(.34, 1.1, .3, 1) both; }
}

@keyframes diceLand { 0% { transform: scale(1.22); } 55% { transform: scale(.9); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
    .dice-die.is-landed { animation: diceLand .3s ease-out both; }
}

@keyframes rollGlowGood { 0%, 100% { box-shadow: none; } 35% { box-shadow: 0 0 0 1px rgba(31, 167, 116, .5), 0 0 34px rgba(31, 167, 116, .45); } }
@keyframes rollGlowBad { 0%, 100% { box-shadow: none; } 35% { box-shadow: 0 0 0 1px rgba(99, 45, 69, .6), 0 0 34px rgba(99, 45, 69, .55); } }
.roll-card.flash-good { animation: rollGlowGood .7s ease-out; }
.roll-card.flash-bad { animation: rollGlowBad .7s ease-out; }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(11, 13, 12, .97); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 8px clamp(18px, 4vw, 40px) 20px;
    }
    .nav-links.is-open { display: flex; }
    .nav-links .nav-link {
        padding: 14px 0; border-bottom: 1px solid rgba(201, 169, 110, .12);
    }
    .nav-links .nav-cta { margin-top: 16px; text-align: center; }
}
