/* =============================================================================
   TheDean.net  -  SITE STYLES
   -----------------------------------------------------------------------------
   Every page uses this one file. To change the look, start with the THEME
   block right below: colors, fonts, roundness. Save, upload over the old file
   in Azure ($web/css/).
   ============================================================================= */

/* ===== THEME (safe to edit) ===== */
:root{
  --bg:       #0b0a08;   /* page background (near black) */
  --bg-2:     #14120e;   /* cards and panels */
  --ivory:    #f2ebdd;   /* main text */
  --muted:    #9a9284;   /* secondary text */
  --line:     rgba(212,166,74,.18);  /* thin gold lines */
  --gold:     #d4a64a;   /* main accent */
  --gold-hi:  #f7dd94;   /* gold highlight */
  --gold-lo:  #8a6828;   /* gold shadow */
  --ember:    #ff5a1f;   /* hot accent, used sparingly */

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;   /* big headlines */
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Consolas, monospace; /* small labels */

  --radius: 14px;
  --wrap: 1240px;
}

/* ===== BASE ===== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--ivory);
  font-family:var(--font-body); font-size:17px; line-height:1.7;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:var(--gold); text-decoration:none; }
::selection{ background:var(--gold); color:var(--bg); }
h1,h2,h3{ font-family:var(--font-display); font-weight:700; line-height:1.02; margin:0 0 .4em; letter-spacing:-.02em; }
p{ margin:0 0 1em; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 1.5rem; position:relative; z-index:2; }
.mono{ font-family:var(--font-mono); font-size:.75rem; letter-spacing:.18em; text-transform:uppercase; }
.muted{ color:var(--muted); }

/* Gold shimmering text */
.gold{
  background:linear-gradient(100deg, var(--gold-lo) 0%, var(--gold-hi) 25%, var(--gold) 45%, var(--gold-hi) 65%, var(--gold-lo) 100%);
  background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:shine 7s linear infinite;
}
@keyframes shine{ to{ background-position:-250% 0; } }

/* ===== BACKGROUND EFFECTS (added by the script) ===== */
.fx-grain{ position:fixed; inset:-50%; z-index:1; pointer-events:none; opacity:.07;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 1.2s steps(6) infinite; }
@keyframes grain{ 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }
.fx-glow{ position:fixed; width:620px; height:620px; border-radius:50%; pointer-events:none; z-index:0;
  background:radial-gradient(circle, rgba(212,166,74,.16), transparent 62%);
  transform:translate(-50%,-50%); left:50%; top:30%; transition:left .25s ease-out, top .25s ease-out; }
.fx-orb{ position:fixed; border-radius:50%; filter:blur(90px); pointer-events:none; z-index:0; opacity:.35; }
.fx-orb.a{ width:520px; height:520px; background:#5a3d10; top:-160px; right:-140px; animation:float 18s ease-in-out infinite; }
.fx-orb.b{ width:420px; height:420px; background:#3a1608; bottom:-160px; left:-120px; animation:float 22s ease-in-out infinite reverse; }
@keyframes float{ 50%{ transform:translate(-60px,50px) scale(1.12); } }

/* ===== HEADER / NAV ===== */
.site-head{ position:fixed; top:0; left:0; right:0; z-index:50; transition:background .3s, border-color .3s; border-bottom:1px solid transparent; }
.site-head.scrolled{ background:rgba(11,10,8,.78); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom-color:var(--line); }
.site-head .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{ font-family:var(--font-display); font-style:italic; font-size:1.6rem; font-weight:700; color:var(--ivory); letter-spacing:-.01em; }
.brand span{ color:var(--gold); font-style:normal; }
.nav{ display:flex; gap:2.2rem; }
.nav a{ color:var(--ivory); font-family:var(--font-mono); font-size:.75rem; letter-spacing:.18em; text-transform:uppercase; position:relative; padding:.3rem 0; }
.nav a::after{ content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1px; background:var(--gold); transition:right .3s ease; }
.nav a:hover::after, .nav a.active::after{ right:0; }
.nav a.active{ color:var(--gold); }
.menu-btn{ display:none; background:none; border:1px solid var(--line); border-radius:99px; padding:.45rem 1rem; color:var(--gold); cursor:pointer; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; }
@media (max-width:760px){
  .menu-btn{ display:block; }
  .nav{ display:none; position:absolute; top:76px; left:0; right:0; flex-direction:column; gap:0; background:rgba(11,10,8,.97); border-bottom:1px solid var(--line); }
  .nav.open{ display:flex; }
  .nav a{ padding:1.1rem 1.5rem; border-top:1px solid var(--line); }
  .nav a::after{ display:none; }
}

/* ===== HOME HERO ===== */
.hero{ min-height:100vh; display:flex; align-items:center; padding:120px 0 60px; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.35fr 1fr; gap:3rem; align-items:center; width:100%; }
.hero .kicker{ color:var(--gold); margin-bottom:1.5rem; display:flex; align-items:center; gap:.9rem; }
.hero .kicker::before{ content:""; width:48px; height:1px; background:var(--gold); }
.hero-name{ position:relative; font-size:clamp(6rem, 17vw, 15rem); font-style:italic; font-weight:900; line-height:.85; margin:0 0 .25em; letter-spacing:-.04em; }
.hero-name .ghost{ position:absolute; left:.06em; top:.06em; color:transparent; -webkit-text-stroke:1px rgba(212,166,74,.45); z-index:-1; animation:none; background:none; }
.hero .lead{ font-size:clamp(1.15rem, 1.8vw, 1.45rem); color:var(--ivory); max-width:30ch; line-height:1.5; margin-bottom:.6rem; }
.hero .aside{ color:var(--muted); font-style:italic; font-family:var(--font-display); font-size:1.15rem; margin-bottom:2.2rem; }
.cta{ display:flex; flex-wrap:wrap; gap:1rem; }
.btn{ display:inline-flex; align-items:center; gap:.6rem; padding:1rem 1.6rem; border-radius:99px; font-family:var(--font-mono); font-size:.75rem; letter-spacing:.18em; text-transform:uppercase; transition:transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-gold{ background:linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); color:#140f05; font-weight:600; box-shadow:0 10px 40px -10px rgba(212,166,74,.6); }
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 16px 50px -10px rgba(212,166,74,.85); }
.btn-ghost{ border:1px solid var(--line); color:var(--ivory); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }

.stats{ display:flex; gap:2.5rem; margin-top:3rem; padding-top:1.6rem; border-top:1px solid var(--line); flex-wrap:wrap; }
.stat b{ display:block; font-family:var(--font-display); font-size:2.2rem; font-weight:700; line-height:1; color:var(--ivory); }
.stat span{ color:var(--muted); }

/* Arched portrait + spinning seal */
.portrait{ position:relative; justify-self:center; width:min(100%, 420px); }
.arch{ aspect-ratio:3/4; border-radius:999px 999px var(--radius) var(--radius); overflow:hidden; border:1px solid var(--gold); padding:10px; background:var(--bg-2); box-shadow:0 40px 120px -30px rgba(212,166,74,.35); }
.arch img{ width:100%; height:100%; object-fit:cover; border-radius:999px 999px 8px 8px; filter:grayscale(.25) contrast(1.05); }
.seal{ position:absolute; width:150px; height:150px; left:-55px; bottom:40px; animation:spin 22s linear infinite; }
.seal text{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:3px; fill:var(--gold); text-transform:uppercase; }
.seal .core{ fill:var(--bg); stroke:var(--gold); }
.seal-mark{ position:absolute; left:-55px; bottom:40px; width:150px; height:150px; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-style:italic; font-weight:900; font-size:2.6rem; pointer-events:none; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.scroll-cue{ position:absolute; bottom:28px; left:50%; transform:translateX(-50%); color:var(--muted); z-index:2; display:flex; flex-direction:column; align-items:center; gap:.6rem; }
.scroll-cue i{ width:1px; height:46px; background:linear-gradient(var(--gold), transparent); animation:drip 2s ease-in-out infinite; }
@keyframes drip{ 0%{ transform:scaleY(0); transform-origin:top; } 50%{ transform:scaleY(1); transform-origin:top; } 51%{ transform-origin:bottom; } 100%{ transform:scaleY(0); transform-origin:bottom; } }
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .portrait{ order:-1; width:min(70%, 300px); }
  .seal, .seal-mark{ width:110px; height:110px; left:-35px; bottom:20px; }
  .seal-mark{ font-size:2rem; }
  .scroll-cue{ display:none; }
}

/* ===== MARQUEE (gold band of brags) ===== */
.marquee{ position:relative; z-index:2; background:linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-hi), var(--gold), var(--gold-lo)); color:#140f05; transform:rotate(-1.5deg); margin:2rem -2%; overflow:hidden; box-shadow:0 20px 60px -20px rgba(212,166,74,.5); }
.marquee-track{ display:flex; width:max-content; animation:scroll 38s linear infinite; }
.marquee span{ font-family:var(--font-display); font-style:italic; font-weight:700; font-size:clamp(1.3rem, 2.4vw, 2rem); padding:1rem 0; white-space:nowrap; }
.marquee span::after{ content:"\2726"; font-style:normal; margin:0 1.6rem; font-size:.8em; }
@keyframes scroll{ to{ transform:translateX(-50%); } }

/* ===== HOME SECTION BLOCKS ===== */
#home-sections{ padding-top:4rem; }
.block{ padding:5rem 0 3rem; }
.block-head{ display:grid; grid-template-columns:auto 1fr auto; gap:2rem; align-items:end; margin-bottom:2.5rem; padding-bottom:1.5rem; border-bottom:1px solid var(--line); }
.block-num{ font-family:var(--font-display); font-weight:900; font-style:italic; font-size:clamp(4rem, 9vw, 7.5rem); line-height:.8; color:transparent; -webkit-text-stroke:1px var(--gold); }
.block-head h2{ font-size:clamp(2.4rem, 5vw, 4.2rem); margin:0; font-style:italic; }
.block-head p{ margin:.4rem 0 0; color:var(--muted); }
.see-all{ border:1px solid var(--line); border-radius:99px; padding:.75rem 1.3rem; color:var(--gold); white-space:nowrap; transition:background .2s, color .2s; }
.see-all:hover{ background:var(--gold); color:var(--bg); }
@media (max-width:700px){ .block-head{ grid-template-columns:auto 1fr; } .see-all{ grid-column:1 / -1; justify-self:start; } }

/* ===== CARDS ===== */
.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:2rem; }
.card{ position:relative; display:flex; flex-direction:column; background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; color:inherit; transform-style:preserve-3d; transition:border-color .3s, box-shadow .3s, transform .15s ease-out; will-change:transform; }
.card:hover{ border-color:var(--gold); box-shadow:0 30px 80px -30px rgba(212,166,74,.45); }
.card .thumb{ position:relative; aspect-ratio:4/3; overflow:hidden; background:#1b1813; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; filter:grayscale(.7) brightness(.8); transform:scale(1.02); transition:filter .5s, transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img{ filter:none; transform:scale(1.09); }
.card .thumb::after{ content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(11,10,8,.85), transparent 55%); }
.card .thumb.placeholder{ display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-style:italic; font-weight:900; font-size:7rem; color:transparent; -webkit-text-stroke:1px var(--gold); background:radial-gradient(circle at 30% 20%, #2a2215, #12100c 70%); }
.card .no{ position:absolute; top:1rem; left:1rem; z-index:2; color:var(--gold); background:rgba(11,10,8,.65); border:1px solid var(--line); padding:.3rem .65rem; border-radius:99px; backdrop-filter:blur(6px); }
.card .arrow{ position:absolute; top:1rem; right:1rem; z-index:2; width:40px; height:40px; border-radius:50%; background:var(--gold); color:var(--bg); display:flex; align-items:center; justify-content:center; font-size:1.1rem; transform:scale(0) rotate(-45deg); transition:transform .35s cubic-bezier(.3,1.6,.5,1); }
.card:hover .arrow{ transform:scale(1) rotate(0); }
.card .body{ padding:1.3rem 1.4rem 1.6rem; }
.card h3{ font-size:1.7rem; font-style:italic; margin:0 0 .3rem; color:var(--ivory); }
.card .date{ color:var(--gold); margin-bottom:.6rem; }
.card p{ font-size:.95rem; color:var(--muted); margin:0; line-height:1.6; }
.empty{ color:var(--muted); font-family:var(--font-display); font-style:italic; font-size:1.2rem; }

/* Scroll-in animation */
.reveal{ opacity:0; transform:translateY(40px); transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

/* ===== SECTION + ITEM PAGE HEADERS ===== */
.page-head{ padding:150px 0 3rem; margin-bottom:3rem; border-bottom:1px solid var(--line); }
.page-head .kicker{ color:var(--gold); margin-bottom:1rem; }
.page-head h1{ font-size:clamp(3.5rem, 11vw, 9rem); font-style:italic; font-weight:900; margin:0 0 .2em; }
.page-head p{ color:var(--muted); font-size:1.2rem; max-width:55ch; margin:0; }
.page-head .count{ margin-top:1.5rem; color:var(--ivory); }

.back{ display:inline-flex; gap:.5rem; margin:120px 0 0; color:var(--gold); }
.back:hover{ color:var(--gold-hi); }
.item-head{ padding:1.5rem 0 2rem; }
.item-head .kicker{ color:var(--muted); margin-bottom:1rem; }
.item-head h1{ font-size:clamp(3rem, 9vw, 7.5rem); font-style:italic; font-weight:900; margin:0 0 .3em; }
.meta{ display:flex; flex-wrap:wrap; gap:.6rem 1rem; align-items:center; color:var(--gold); }
.tag{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.15em; text-transform:uppercase; padding:.35rem .8rem; border-radius:99px; border:1px solid var(--line); color:var(--ivory); }
.item-body{ max-width:64ch; font-size:1.15rem; line-height:1.8; color:#ddd5c5; }
.item-body p:first-child::first-letter{ float:left; font-family:var(--font-display); font-style:italic; font-weight:900; font-size:4.6em; line-height:.8; padding:.08em .12em 0 0; color:var(--gold); }
.links{ display:flex; flex-wrap:wrap; gap:1rem; margin:2rem 0 0; }
.links .btn{ background:linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); color:#140f05; font-weight:600; }
.links .btn:hover{ transform:translateY(-2px); }

/* Gallery: photo 1 is the big feature tile, the rest fill in left to right */
.gallery{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); grid-auto-flow:dense; gap:1rem; margin:3.5rem 0 5rem; }
.gallery button{ display:block; padding:0; border:1px solid var(--line); background:var(--bg-2); border-radius:10px; overflow:hidden; cursor:zoom-in; aspect-ratio:4/3; transition:border-color .3s; }
.gallery button:first-child{ grid-column:span 2; grid-row:span 2; }
.gallery button:hover{ border-color:var(--gold); }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter:brightness(.9); }
.gallery button:hover img{ transform:scale(1.05); filter:none; }
@media (max-width:560px){ .gallery button:first-child{ grid-column:auto; grid-row:auto; } }

/* ===== LIGHTBOX (photo viewer) ===== */
.lightbox{ position:fixed; inset:0; background:rgba(8,7,6,.96); display:none; align-items:center; justify-content:center; z-index:100; }
.lightbox.open{ display:flex; animation:fade .25s ease; }
@keyframes fade{ from{ opacity:0; } }
.lightbox img{ max-width:92vw; max-height:86vh; object-fit:contain; border-radius:6px; box-shadow:0 30px 100px rgba(0,0,0,.6); }
.lightbox button{ position:absolute; background:none; border:0; color:var(--gold); font-size:2.6rem; cursor:pointer; padding:1rem; line-height:1; opacity:.75; transition:opacity .2s; }
.lightbox button:hover{ opacity:1; }
.lb-close{ top:.5rem; right:.75rem; }
.lb-prev{ left:.5rem; top:50%; transform:translateY(-50%); }
.lb-next{ right:.5rem; top:50%; transform:translateY(-50%); }
.lb-count{ position:absolute; bottom:1.2rem; left:0; right:0; text-align:center; color:var(--muted); font-family:var(--font-mono); font-size:.75rem; letter-spacing:.2em; }

/* ===== FOOTER ===== */
.site-foot{ position:relative; z-index:2; border-top:1px solid var(--line); margin-top:5rem; padding:4rem 0 2.5rem; overflow:hidden; }
.foot-mark{ font-family:var(--font-display); font-style:italic; font-weight:900; font-size:clamp(5rem, 20vw, 16rem); line-height:.8; color:transparent; -webkit-text-stroke:1px rgba(212,166,74,.25); margin-bottom:2rem; user-select:none; }
.foot-row{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; color:var(--muted); }

/* ===== Less motion for people who turn it off ===== */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
}
