/*
Theme Name:   Scultura Galeotti
Theme URI:    https://sculturagaleotti.com/
Author:       Scultura Galeotti
Description:  A single-page editorial guide to sculpture — materials, techniques and form — in a contemporary gallery mood. Midnight blue, ivory type and a single travertine photograph.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  scultura-galeotti
Tags:         one-column, custom-colors, editor-style, accessibility-ready
*/

  :root{
    --ink:#151D49;          /* midnight blue page */
    --ink-deep:#101640;     /* deeper blue for article band */
    --ivory:#F3EADB;        /* headline + body ivory */
    --ivory-dim:#CFD3E4;    /* secondary text */
    --rule:#6E7CB4;         /* pale blue divider */
    --lime:#C9F31D;         /* chapter arrows */
    --ember:#E8491F;        /* short accent rule */
    --measure:68ch;
  }

  *,*::before,*::after{box-sizing:border-box}

  html{ -webkit-text-size-adjust:100% }

  body{
    margin:0;
    background:var(--ink);
    color:var(--ivory);
    font-family:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Times New Roman",serif;
    font-size:clamp(1rem,0.96rem + 0.2vw,1.0625rem);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
  }

  /* ---------- shared ---------- */
  .wrap{
    width:min(1360px,100% - 2 * clamp(1.25rem,5vw,4rem));
    margin-inline:auto;
  }

  a{color:inherit}

  a:focus-visible,
  button:focus-visible{
    outline:3px solid var(--lime);
    outline-offset:4px;
    border-radius:2px;
  }

  .skip-link{
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
    background:var(--ivory);
    color:var(--ink);
    z-index:10;
  }
  .skip-link:focus{
    width:auto;
    height:auto;
    margin:0;
    padding:.65rem 1rem;
    overflow:visible;
    clip:auto;
    clip-path:none;
    left:1rem;
    top:1rem;
  }

  /* ---------- masthead ---------- */
  .masthead{ padding-block:clamp(1.5rem,3.5vw,2.5rem) }

  .wordmark{
    margin:0;
    font-weight:400;
    font-size:clamp(1.3rem,1.05rem + 1.1vw,1.9rem);
    letter-spacing:.005em;
  }

  /* ---------- hero ---------- */
  .hero{
    padding-bottom:clamp(2rem,5vw,3.5rem);
    overflow:hidden;              /* keeps the spotlight glow from widening the page */
  }

  .hero__grid{
    display:grid;
    grid-template-columns:minmax(16rem,1fr) minmax(0,1.55fr) minmax(15rem,.95fr);
    gap:clamp(1.5rem,3vw,3rem);
    align-items:center;
  }

  .hero__intro{ grid-column:1 }

  h1{
    margin:0;
    font-weight:400;
    font-size:clamp(2.6rem,1.4rem + 5.1vw,5.2rem);
    line-height:.98;
    letter-spacing:-0.018em;
    text-wrap:balance;
  }

  .accent-rule{
    width:6.5rem;
    height:.42rem;
    margin:clamp(1.4rem,2.6vw,2.1rem) 0 clamp(1rem,2vw,1.5rem);
    background:var(--ember);
  }

  .hero__standfirst{
    margin:0;
    max-width:24ch;
    font-size:clamp(1.02rem,0.97rem + 0.25vw,1.15rem);
    line-height:1.55;
    color:var(--ivory);
  }

  /* hero figure */
  .hero__figure{
    grid-column:2;
    margin:0;
    position:relative;
    isolation:isolate;
  }

  /* the gallery spotlight continues past the photograph's own frame */
  .hero__figure::before{
    content:"";
    position:absolute;
    inset:-14% -10% -10%;
    z-index:-1;
    background:
      radial-gradient(58% 46% at 50% 30%, rgba(150,178,255,.17), rgba(21,29,73,0) 72%),
      radial-gradient(42% 30% at 50% 78%, rgba(130,160,235,.11), rgba(21,29,73,0) 75%);
    pointer-events:none;
  }

  .hero__figure img{
    display:block;
    width:100%;
    height:auto;
  }

  /* ---------- chapter nav ---------- */
  .guide{ grid-column:3 }

  .guide__title{
    margin:0;
    scroll-margin-top:clamp(1.25rem,3vw,2.25rem);
    font-size:clamp(1.15rem,1.05rem + .45vw,1.5rem);
    font-weight:400;
    letter-spacing:.005em;
  }

  .guide .accent-rule{
    width:4.6rem;
    height:.34rem;
    margin:.85rem 0 1.4rem;
  }

  .guide__list{
    margin:0;
    padding:0;
    list-style:none;
    border-top:1px solid var(--rule);
  }

  .guide__list li{ border-bottom:1px solid var(--rule) }

  .guide__link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    min-height:3rem;             /* comfortable touch target */
    padding:.75rem 0;
    text-decoration:none;
    font-size:clamp(1.02rem,0.98rem + .3vw,1.22rem);
    transition:color .18s ease;
  }

  .guide__link .arrow{
    flex:none;
    color:var(--lime);
    transition:transform .18s ease;
  }

  .guide__link:hover{ color:#fff }
  .guide__link:hover .arrow{ transform:translateX(4px) }

  /* ---------- section rule under hero ---------- */
  .hero__footrule{
    border:0;
    border-top:1px solid var(--rule);
    margin:0;
  }

  /* ---------- chapters ---------- */
  .chapters{
    background:var(--ink-deep);
    padding-block:clamp(2.75rem,6vw,5rem);
  }

  .chapter{ scroll-margin-top:clamp(1.25rem,3vw,2.25rem) }

  .chapter + .chapter{
    margin-top:clamp(2.5rem,5vw,4rem);
    padding-top:clamp(2.5rem,5vw,4rem);
    border-top:1px solid rgba(110,124,180,.45);
  }

  .chapter h2{
    margin:0 0 .35rem;
    font-weight:400;
    font-size:clamp(1.85rem,1.3rem + 1.7vw,2.7rem);
    line-height:1.08;
    letter-spacing:-0.012em;
  }

  @media (min-width:1040px){
    .chapter{
      display:grid;
      grid-template-columns:minmax(13rem,.85fr) minmax(0,1.6fr);
      column-gap:clamp(2rem,4vw,4.5rem);
      align-items:start;
    }
    .chapter h2{
      grid-column:1;
      grid-row:1 / span 20;
      margin-bottom:0;
      position:sticky;
      top:2rem;
    }
    .chapter > :not(h2){ grid-column:2 }
    .chapter > p:first-of-type{ margin-top:.35rem }
    .chapter{ --measure:64ch }
    .chapter .backlink{ justify-self:start }
  }

  .chapter__kicker{
    display:block;
    margin-bottom:.9rem;
    font-size:.82rem;
    letter-spacing:.17em;
    text-transform:uppercase;
    color:var(--rule);
    font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }

  .chapter p{
    max-width:var(--measure);
    margin:0 0 1.1rem;
    color:var(--ivory-dim);
  }

  .chapter p strong{ color:var(--ivory); font-weight:600 }

  .look{
    max-width:var(--measure);
    margin:1.5rem 0 0;
    padding:1.15rem 1.35rem;
    border-left:3px solid var(--ember);
    background:rgba(243,234,219,.045);
  }

  .look h3{
    margin:0 0 .4rem;
    font-size:1.02rem;
    font-weight:400;
    letter-spacing:.11em;
    text-transform:uppercase;
    color:var(--ivory);
    font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }

  .look p{ margin:0; color:var(--ivory-dim) }

  .backlink{
    display:inline-flex;
    justify-self:start;
    width:fit-content;
    align-items:center;
    gap:.55rem;
    min-height:2.9rem;
    margin-top:1.4rem;
    text-decoration:none;
    font-size:.98rem;
    color:var(--ivory);
    border-bottom:1px solid var(--rule);
  }

  .backlink .arrow{ color:var(--lime) }
  .backlink:hover{ border-bottom-color:var(--lime) }

  /* ---------- footer ---------- */
  .site-footer{
    padding-block:clamp(1.75rem,4vw,2.75rem);
    border-top:1px solid var(--rule);
    margin-top:0;
  }

  .site-footer p{
    margin:0;
    font-size:clamp(1.6rem,1.1rem + 2vw,2.6rem);
    line-height:1.1;
    letter-spacing:-0.01em;
  }

  .site-footer small{
    display:block;
    margin-top:.9rem;
    font-size:.88rem;
    letter-spacing:.02em;
    color:var(--ivory-dim);
    font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }

  /* ---------- responsive ---------- */
  @media (max-width:1040px){
    .hero__grid{
      grid-template-columns:1fr;
      gap:clamp(1.75rem,5vw,2.5rem);
    }
    .hero__intro,
    .hero__figure,
    .guide{ grid-column:1 }

    .hero__intro{ order:1 }
    .hero__figure{ order:2 }
    .guide{ order:3 }

    .hero__standfirst{ max-width:36ch }

    .hero__figure img{
      max-width:34rem;
      margin-inline:auto;
    }

    .guide__link{ min-height:3.4rem }
  }

  @media (max-width:640px){
    h1{ font-size:clamp(2.5rem,1.1rem + 9vw,3.4rem) }
    .hero__figure img{ max-width:100% }
    .guide__link{ min-height:3.6rem; font-size:1.08rem }
  }

  @media (prefers-reduced-motion:reduce){
    *{ transition:none !important }
  }
