/* =========================================================================
   Diana aka MoonAce — site styles
   Rebuilt to match the original Wix design.

   Palette and type are set here, once. Change a value in :root below and it
   updates everywhere on every page. You should not need to touch anything else.
   ========================================================================= */

:root{
  /* --- colours (sampled from the original site) --- */
  --navy-deep:  #0a1622;
  --navy:       #0d1b2a;
  --navy-mid:   #16293c;
  --steel:      #3e5a72;
  --steel-lift: #4d6a83;
  --olive:      #6b6350;
  --cream:      #f0e6d2;
  --cream-dim:  #cdc1a6;
  --ink:        #22303c;
  --frame:      #11121a;

  --shell: 1180px;

  --fs-title: clamp(2rem, 5.2vw, 3.4rem);
  --fs-h2:    clamp(1.5rem, 3.4vw, 2.25rem);
  --fs-body:  clamp(0.94rem, 1.15vw, 1.02rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--navy);
  color:var(--cream);
  font-family:'Cinzel',Georgia,'Times New Roman',serif;
  font-size:var(--fs-body);
  line-height:1.75;
  letter-spacing:.015em;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}

.shell{width:min(100% - 2.5rem, var(--shell));margin-inline:auto}

/* Visible only to screen readers, until focused. */
.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--cream);color:var(--ink);padding:.7rem 1.2rem;
}
.skip:focus{left:.5rem;top:.5rem}

/* =========================================================================
   Header — logo, wordmark, nav tabs, social icons
   ========================================================================= */
.masthead{
  background:linear-gradient(180deg,var(--navy-deep) 0%,var(--navy) 55%,var(--navy-mid) 100%);
  padding:2.2rem 0 0;
  text-align:center;
}
.masthead__logo{width:clamp(96px,13vw,150px);margin:0 auto .9rem}

.wordmark{
  font-family:'Limelight',Copperplate,fantasy;
  font-size:var(--fs-title);
  line-height:1.15;
  letter-spacing:.11em;
  margin:0 0 1.5rem;
  color:var(--cream);
  text-shadow:0 2px 14px rgba(0,0,0,.55);
}
.wordmark span{display:block}

/* --- nav --- */
.nav{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:.35rem 0;padding-bottom:1.4rem;
}
.nav__list{
  display:flex;flex-wrap:wrap;justify-content:center;
  list-style:none;margin:0;padding:0;gap:2px;
}
.nav__list a{
  display:block;
  padding:.42rem 1.15rem;
  background:var(--cream);
  color:var(--ink);
  text-decoration:none;
  font-size:.76rem;
  letter-spacing:.08em;
  border:1px solid rgba(0,0,0,.35);
  transition:background .18s ease,color .18s ease;
  white-space:nowrap;
}
.nav__list a:hover,
.nav__list a:focus-visible{background:var(--olive);color:var(--cream)}
/* The page you are currently on. */
.nav__list a[aria-current="page"]{background:var(--olive);color:var(--cream)}

.socials{display:flex;gap:.55rem;margin-left:1rem}
.socials a{
  width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(240,230,210,.16);
  transition:background .18s ease,transform .18s ease;
}
.socials a:hover{background:var(--cream);transform:translateY(-2px)}
.socials svg{width:14px;height:14px;fill:var(--cream)}
.socials a:hover svg{fill:var(--ink)}

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.band{padding:clamp(3rem,7vw,5.5rem) 0}
.band--about{background:linear-gradient(180deg,var(--navy-mid) 0%,var(--steel) 100%)}
.band--peek{background:linear-gradient(180deg,var(--steel) 0%,var(--steel-lift) 42%,var(--cream) 100%)}
.band--cream{background:linear-gradient(180deg,var(--cream) 0%,#ded0b4 100%);color:var(--ink)}
.band--navy{background:linear-gradient(180deg,var(--navy) 0%,var(--navy-mid) 100%)}
.band--steel{background:linear-gradient(180deg,var(--navy-mid) 0%,var(--steel) 100%)}
.band--olive{background:var(--olive);padding:clamp(2rem,4.5vw,3.4rem) 0}

/* Section heading + the dashed rule that sits under it. */
.head{text-align:center;margin:0 0 clamp(2rem,4vw,3rem)}
.head h2{
  font-size:var(--fs-h2);font-weight:600;letter-spacing:.09em;
  margin:0 0 1.1rem;
}
.head p{margin:.3rem 0 0;opacity:.85;font-size:.9rem;letter-spacing:.06em}
.rule{
  width:min(340px,60%);height:0;margin:0 auto;
  border-top:2px dashed currentColor;opacity:.5;
}

/* =========================================================================
   Framed image — the heavy dark border used all over the original
   ========================================================================= */
.frame{
  border:7px solid var(--frame);
  background:var(--frame);
  box-shadow:0 10px 30px rgba(0,0,0,.42);
  overflow:hidden;
}
.frame img{width:100%;height:100%;object-fit:cover}

/* =========================================================================
   About Me
   ========================================================================= */
.about{
  display:grid;gap:clamp(1.8rem,4vw,3.2rem);
  grid-template-columns:1fr;align-items:center;
}
@media (min-width:820px){
  .about{grid-template-columns:1fr minmax(200px,268px)}
}
.about p{margin:0 0 1.1rem;max-width:62ch}
.about p:last-child{margin-bottom:0}
.about__portrait{justify-self:center;max-width:268px;width:100%}

/* =========================================================================
   Sneak Peek — three cards
   ========================================================================= */
.peek{
  display:grid;gap:clamp(1.6rem,3.5vw,2.6rem);
  grid-template-columns:1fr;
}
@media (min-width:700px){.peek{grid-template-columns:repeat(3,1fr)}}
/* Cards sit on the pale end of the band's gradient, so their text goes dark. */
.peek__item{text-align:center;display:flex;flex-direction:column;color:var(--ink)}
.peek__item .frame{aspect-ratio:1;margin-bottom:1.2rem}
.peek__item h3{
  font-size:1rem;font-weight:600;letter-spacing:.07em;
  margin:0 0 .9rem;line-height:1.45;
}
.peek__item .rule{width:70px;margin-bottom:1rem;border-top-width:2px}
.peek__item p{margin:0;font-size:.83rem;line-height:1.75;text-align:left}
/* Clickable peek cards (image + title link to the project). */
.peek__link{display:block;color:inherit;text-decoration:none;cursor:pointer}
.peek__link .frame{transition:transform .2s ease,box-shadow .2s ease}
.peek__link:hover .frame{transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,0,0,.22)}
.peek__link:hover h3{text-decoration:underline}
.peek__link:focus-visible{outline:2px solid currentColor;outline-offset:4px}
/* Clickable portrait (links to LinkedIn). */
.about__portrait a{display:block;cursor:pointer}
.about__portrait a img{transition:transform .2s ease,box-shadow .2s ease}
.about__portrait a:hover img{transform:scale(1.02);box-shadow:0 10px 24px rgba(0,0,0,.22)}
.about__portrait a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* =========================================================================
   Inline text emphasis — applied from the editor to selected text so a word
   or phrase can "pop". Relative sizes so they scale with their surroundings.
   ========================================================================= */
.txt-sm{font-size:.82em}
.txt-lg{font-size:1.3em}
.txt-xl{font-size:1.7em}
.font-cinzel{font-family:'Cinzel',Georgia,serif}
.font-limelight{font-family:'Limelight',Copperplate,fantasy}
.font-georgia{font-family:Georgia,'Times New Roman',serif}
.font-times{font-family:'Times New Roman',Times,serif}
.font-garamond{font-family:'EB Garamond',Georgia,serif}

/* =========================================================================
   Find Me At
   ========================================================================= */
.find{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:1rem clamp(1.5rem,4vw,3.2rem);
  list-style:none;margin:0;padding:0;
}
.find a{
  text-decoration:none;border-bottom:1px solid currentColor;
  padding-bottom:2px;letter-spacing:.09em;font-size:.94rem;
  transition:opacity .18s ease,transform .18s ease;
}
.find a:hover{opacity:.62;transform:translateY(-2px)}

/* =========================================================================
   Portfolio grid
   ========================================================================= */
.work{
  display:grid;gap:clamp(2.5rem,5vw,4rem);
  grid-template-columns:1fr;
}
@media (min-width:860px){.work{grid-template-columns:repeat(2,1fr)}}

.work__item{display:flex;flex-direction:column;gap:1.2rem}
.work__item .frame{background:var(--frame)}
/* Portrait-shaped covers (the comics) get a taller box than the landscape ones.
   They use "contain" so a cover's title never gets cropped off the top. */
.work__item--tall .frame{aspect-ratio:9/16}
.work__item--tall .frame img{object-fit:contain}
.work__item--wide .frame{aspect-ratio:16/9}

.work__body{
  background:rgba(13,27,42,.62);
  border:1px solid rgba(240,230,210,.16);
  padding:1.1rem 1.25rem;
  font-size:.84rem;line-height:1.72;
  flex:1;
}
.work__body h3{
  font-size:1rem;font-weight:700;letter-spacing:.06em;
  margin:0 0 .7rem;
}
.work__body p{margin:0 0 .8rem}
.work__body p:last-child{margin-bottom:0}

.btn{
  align-self:center;
  display:inline-block;text-decoration:none;
  padding:.55rem 1.9rem;
  background:rgba(62,90,114,.5);
  border:1px solid var(--cream);
  color:var(--cream);
  font-size:.82rem;letter-spacing:.13em;
  transition:background .2s ease,color .2s ease;
}
.btn:hover,.btn:focus-visible{background:var(--cream);color:var(--ink)}
.band--cream .btn{border-color:var(--ink);color:var(--ink);background:rgba(255,255,255,.35)}
.band--cream .btn:hover{background:var(--ink);color:var(--cream)}

/* =========================================================================
   Dev updates — post list and single post
   ========================================================================= */
.posts{display:grid;gap:1.6rem;grid-template-columns:1fr;list-style:none;margin:0;padding:0}
@media (min-width:760px){.posts{grid-template-columns:repeat(2,1fr)}}

.post-card{
  display:flex;flex-direction:column;height:100%;
  background:rgba(13,27,42,.55);
  border:1px solid rgba(240,230,210,.18);
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease;
}
.post-card:hover{transform:translateY(-4px);border-color:var(--cream)}
.post-card__img{aspect-ratio:16/9;overflow:hidden;background:var(--frame)}
.post-card__img img{width:100%;height:100%;object-fit:cover}
.post-card__body{padding:1.1rem 1.25rem 1.35rem}
.post-card h3{font-size:.98rem;font-weight:600;letter-spacing:.05em;margin:0 0 .5rem;line-height:1.5}
.post-card time{font-size:.72rem;letter-spacing:.12em;opacity:.7;display:block;margin-bottom:.6rem}
.post-card p{margin:0;font-size:.82rem;line-height:1.7;opacity:.9}

.empty{
  text-align:center;padding:clamp(2.5rem,6vw,4.5rem) 1.5rem;
  border:1px dashed rgba(240,230,210,.32);
}
.empty h3{font-size:1.05rem;font-weight:600;margin:0 0 .6rem;letter-spacing:.06em}
.empty p{margin:0;opacity:.78;font-size:.86rem}

/* Single post ------------------------------------------------------------ */
.article{max-width:74ch;margin-inline:auto}
.article__meta{font-size:.74rem;letter-spacing:.14em;opacity:.72;margin:0 0 .7rem}
.article h1{font-size:clamp(1.5rem,3.6vw,2.3rem);font-weight:700;letter-spacing:.05em;margin:0 0 1.6rem;line-height:1.3}
.article .frame{margin-bottom:2rem}
.article__body{font-size:.94rem;line-height:1.85}
.article__body p{margin:0 0 1.3rem}
.article__body h2{font-size:1.2rem;font-weight:600;letter-spacing:.05em;margin:2.2rem 0 .9rem}
.article__body h3{font-size:1.02rem;font-weight:600;letter-spacing:.05em;margin:1.8rem 0 .7rem}
.article__body ul,.article__body ol{margin:0 0 1.3rem;padding-left:1.4rem}
.article__body li{margin-bottom:.45rem}
.article__body img{margin:1.8rem auto;border:6px solid var(--frame)}
.article__body a{color:var(--cream);text-underline-offset:3px}
.article__body blockquote{
  margin:1.6rem 0;padding:.3rem 0 .3rem 1.3rem;
  border-left:3px solid rgba(240,230,210,.4);opacity:.9;font-style:italic;
}
.article__body code{
  font-family:ui-monospace,'Cascadia Code',Menlo,Consolas,monospace;
  font-size:.86em;background:rgba(0,0,0,.32);padding:.12em .42em;border-radius:3px;
}
.back{
  display:inline-block;margin-top:2.5rem;text-decoration:none;
  font-size:.8rem;letter-spacing:.12em;border-bottom:1px solid currentColor;
}

/* =========================================================================
   Footer
   ========================================================================= */
.foot{
  background:var(--navy-deep);
  text-align:center;
  padding:2.4rem 0;
  font-size:.74rem;letter-spacing:.1em;opacity:.72;
}
.foot a{color:inherit}
.to-top{
  display:block;width:38px;margin:0 auto 1rem;
  opacity:.65;transition:opacity .2s ease,transform .2s ease;
}
.to-top:hover{opacity:1;transform:translateY(-3px)}

/* =========================================================================
   Motion — respect the OS "reduce motion" setting
   ========================================================================= */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
}

/* =========================================================================
   Custom pages — "stacked sections" layout
   ========================================================================= */
.band-sec{
  display:grid;gap:clamp(1.6rem,4vw,3rem);
  grid-template-columns:1fr;align-items:center;
  margin:0 0 clamp(2.6rem,6vw,4.5rem);
}
.band-sec:last-child{margin-bottom:0}
@media (min-width:820px){
  .band-sec{grid-template-columns:1fr minmax(240px,42%)}
  /* image on the left instead of the right */
  .band-sec--flip .band-sec__text{order:2}
  .band-sec--flip .band-sec__img{order:1}
  .band-sec--solo{grid-template-columns:1fr}
}
.band-sec__text h3{
  font-size:clamp(1.15rem,2.4vw,1.5rem);font-weight:600;
  letter-spacing:.06em;margin:0 0 .9rem;
}
.band-sec__text p{margin:0 0 1.05rem;max-width:62ch}
.band-sec__text p:last-child{margin-bottom:0}
/* Capped so a tall portrait can't stretch the row to a full screen. */
.band-sec__img{justify-self:center;width:100%;max-width:min(100%,360px)}
.band-sec--solo .band-sec__text p{max-width:70ch}

/* Two pictures side by side inside a dev update. */
.article__body .pair{
  display:grid;gap:clamp(.6rem,1.6vw,1.1rem);
  grid-template-columns:1fr;margin:1.8rem 0;
}
@media (min-width:620px){.article__body .pair{grid-template-columns:1fr 1fr}}
.article__body .pair img{margin:0;width:100%;height:100%;object-fit:cover}
