/* ==========================================================================
   THE ARTIST — shared stylesheet
   Image · Story · Motion · Sound
   ========================================================================== */

:root{
  /* -- palette -------------------------------------------------------- */
  --ink:        #0A1420;   /* primary background, deep navy-black   */
  --ink-2:      #0F1E30;   /* panel / card background, one step up  */
  --ink-3:      #142639;   /* hover / raised surface                */
  --line:       rgba(239,231,216,0.12);
  --line-strong:rgba(239,231,216,0.22);

  --parchment:      #EFE7D8; /* primary text on dark                */
  --parchment-dim:  #B7AD98; /* secondary text                      */
  --parchment-faint:#7C7768; /* tertiary / meta text                */

  --gold:       #B08D57;   /* primary accent                        */
  --gold-bright:#D9B673;   /* hover / active accent                 */
  --wine:       #5B1A22;   /* secondary accent, dividers, tags      */

  /* -- type --------------------------------------------------------------
     Falls back to Ghost's site-wide Heading/Body font pickers
     (Design → Brand) if an editor sets --gh-font-heading / --gh-font-body,
     otherwise uses the theme's own Google Fonts. -------------------------- */
  --f-display: var(--gh-font-heading, 'Cormorant Garamond'), 'EB Garamond', Georgia, serif;
  --f-body:    var(--gh-font-body, 'EB Garamond'), Georgia, serif;
  --f-label:   'Cinzel', 'EB Garamond', Georgia, serif;

  /* -- rhythm ------------------------------------------------------------ */
  --gutter: clamp(24px, 5vw, 72px);
  --max: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; text-decoration: none; }
img, video{ display:block; max-width:100%; }

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

:focus-visible{
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* -- eyebrow / section labels ------------------------------------------ */
.label{
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 34px var(--gutter) 26px;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark{
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--parchment);
}

.wordmark:hover{ color: var(--gold-bright); }

.site-nav{
  display:flex;
  gap: clamp(18px, 3vw, 40px);
}

.site-nav a{
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .35s ease, border-color .35s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"]{
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  color: var(--parchment);
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor:pointer;
}

@media (max-width: 720px){
  .site-header{ flex-wrap: wrap; }
  .nav-toggle{ display:block; }
  .site-nav{
    display:none;
    width:100%;
    flex-direction:column;
    gap: 18px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open{ display:flex; }
}

/* ==========================================================================
   Grain / atmosphere overlay — the site's one signature texture.
   A faint turbulence field sits above every hero, unifying the imagery
   into one continuous, filmic world regardless of source or subject.
   ========================================================================== */
.grain{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette{
  position:absolute; inset:0;
  pointer-events:none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(6,10,16,0.55) 100%);
}

/* ==========================================================================
   Hero (homepage + section pages)
   ========================================================================== */
.hero{
  margin: 8px auto 90px;
}

.hero-media{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  overflow:hidden;
  background: linear-gradient(160deg, #1B3049 0%, #0A1420 55%, #3A1218 130%);
}

.hero-media img, .hero-media video{
  width:100%; height:100%; object-fit:cover;
}

.hero-copy{
  max-width: 780px;
  margin: 40px auto 0;
  text-align:center;
}

.hero-copy .label{ display:block; margin-bottom: 18px; }

.hero-copy h1{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--parchment);
}

.hero-copy p{
  font-size: 19px;
  color: var(--parchment-dim);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Story grid + cards
   ========================================================================== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  margin-bottom: 100px;
}

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
}
@media (max-width: 600px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  display:block;
  text-align:center;
  group: card;
}

.card-media{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 5;
  overflow:hidden;
  background: linear-gradient(150deg, var(--card-a, #1B3049), var(--card-b, #0A1420));
  margin-bottom: 22px;
}

.card-media img, .card-media video{
  width:100%; height:100%; object-fit:cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.card:hover .card-media img,
.card:hover .card-media video{
  transform: scale(1.045);
}

.card .label{ display:block; margin-bottom: 10px; }

.card h3{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--parchment);
  transition: color .3s ease;
}

.card:hover h3{ color: var(--gold-bright); }

.card p{
  font-size: 16px;
  color: var(--parchment-dim);
  margin:0;
}

/* Featured (first) card can span wider on section pages */
.card.is-feature{ grid-column: span 3; }
.card.is-feature .card-media{ aspect-ratio: 21/9; }
@media (max-width: 900px){ .card.is-feature{ grid-column: span 2; } }
@media (max-width: 600px){ .card.is-feature{ grid-column: span 1; } }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0 auto 100px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pagination a {
  color: var(--parchment-dim);
  border: 1px solid var(--line-strong);
  padding: 10px 24px;
  border-radius: 999px;
  transition: border-color .3s ease, color .3s ease;
}

.pagination a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.pagination .page-number {
  color: var(--parchment-faint);
}

/* ==========================================================================
   Article
   ========================================================================== */
.article-hero{
  position:relative;
  width:100%;
  margin-bottom: 44px;
}

.article-hero .hero-media{
  aspect-ratio: auto;
  max-height: 88vh;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0;
}

.article-hero .hero-media img,
.article-hero .hero-media video{
  width:100%;
  height:auto;
  max-height: 88vh;
  object-fit: contain;
}

.article-head{
  max-width: 680px;
  margin: 0 auto 64px;
  text-align:center;
  padding: 0 var(--gutter);
}

.article-head .label{ margin-bottom: 18px; }

.article-head h1{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.article-head .tease{
  font-size: 19px;
  font-style: italic;
  color: var(--parchment-dim);
  margin: 0 auto 30px;
  text-align: center;
  width: 100%;
}

.sound-toggle{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  background:none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 20px;
  cursor:pointer;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  transition: border-color .3s ease, color .3s ease;
}

.sound-toggle:hover{ border-color: var(--gold); color: var(--gold-bright); }

.sound-toggle .bars{
  display:inline-flex;
  align-items:flex-end;
  gap: 2px;
  height: 12px;
}
.sound-toggle .bars span{
  display:block;
  width: 2px;
  background: currentColor;
  height: 4px;
  animation: none;
}
.sound-toggle.is-playing .bars span{ animation: eq 0.9s ease-in-out infinite; }
.sound-toggle.is-playing{ color: var(--gold-bright); border-color: var(--gold); }
.sound-toggle .bars span:nth-child(1){ animation-delay: 0s; }
.sound-toggle .bars span:nth-child(2){ animation-delay: .15s; }
.sound-toggle .bars span:nth-child(3){ animation-delay: .3s; }

@keyframes eq{
  0%, 100%{ height: 4px; }
  50%{ height: 12px; }
}

.article-body{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
  font-size: 19px;
  line-height: 1.85;
  color: var(--parchment);
}

.article-body p{ margin: 0 0 28px; }

.article-body p:first-of-type::first-letter{
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 0.8;
  float:left;
  padding: 6px 10px 0 0;
  color: var(--gold);
}

.next-story{
  border-top: 1px solid var(--line);
  padding: 70px var(--gutter) 100px;
  text-align:center;
}

.next-story .label{ margin-bottom: 16px; }

.next-story a h2{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  transition: color .3s ease;
}

.next-story a:hover h2{ color: var(--gold-bright); }

/* ==========================================================================
   Circle (email capture)
   ========================================================================== */
.circle-hero{
  max-width: 640px;
  margin: 90px auto 0;
  text-align:center;
  padding: 0 var(--gutter);
}

.circle-hero .label{ margin-bottom: 20px; }

.circle-hero h1{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  margin: 0 0 22px;
}

.circle-hero p{
  color: var(--parchment-dim);
  font-size: 19px;
  margin: 0 0 44px;
}

.circle-form{
  display:flex;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  max-width: 460px;
  margin: 0 auto 18px;
  transition: border-color .3s ease;
}
.circle-form:focus-within{ border-color: var(--gold); }

.circle-form input[type="email"]{
  flex:1;
  background:none;
  border:none;
  color: var(--parchment);
  font-family: var(--f-body);
  font-size: 18px;
  padding: 14px 4px;
}
.circle-form input[type="email"]::placeholder{ color: var(--parchment-faint); }
.circle-form input[type="email"]:focus{ outline:none; }

.circle-form button{
  background:none;
  border:none;
  color: var(--gold);
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor:pointer;
  padding: 14px 4px;
  transition: color .3s ease;
}
.circle-form button:hover{ color: var(--gold-bright); }

.circle-note{
  font-size: 14px;
  color: var(--parchment-faint);
  max-width: 420px;
  margin: 0 auto 120px;
}

.circle-confirm{
  display:none;
  font-family: var(--f-display);
  font-size: 20px;
  font-style: italic;
  color: var(--gold-bright);
  margin: 0 auto 120px;
}

/* Discreet circle strip near homepage footer */
.circle-strip{
  border-top: 1px solid var(--line);
  padding: 70px var(--gutter);
  text-align:center;
}
.circle-strip .label{ margin-bottom: 16px; }
.circle-strip h2{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 26px;
}
.circle-strip form{ max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 34px var(--gutter) 50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 28px;
  flex-wrap:wrap;
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer a, .site-footer span{
  font-family: var(--f-label);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}

.site-footer a:hover{ color: var(--gold-bright); }

/* ==========================================================================
   Section intro (FORM / PLACES / ART / IN TIME landing pages)
   ========================================================================== */
.section-intro{
  max-width: 680px;
  margin: 0 auto 70px;
  text-align:center;
  padding: 0 var(--gutter);
}
.section-intro .label{ margin-bottom: 18px; }
.section-intro h1{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 0 0 18px;
}
.section-intro p{
  color: var(--parchment-dim);
  font-size: 18px;
  margin:0;
}

/* ==========================================================================
   Ghost-specific additions
   ========================================================================== */

/* Nav current-page state (matches partials/navigation.hbs's aria-current) */
.site-nav a[aria-current="page"]{
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* Content authored via Ghost's Koenig editor (images, quotes, embeds) --
   keep it inside the same restrained rhythm as the rest of the article. */
.article-body .kg-card{ margin: 40px 0; }

.article-body .kg-image-card img,
.article-body .kg-video-card video,
.article-body .kg-gallery-image img{
  width: 100%;
  height: auto;
  display: block;
}

.article-body figcaption{
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  text-align: center;
  margin-top: 14px;
}

.article-body blockquote{
  margin: 44px 0;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 24px;
  color: var(--parchment);
}

.article-body a{
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* The Audio card that powers the SOUND control is read by main.js, then
   hidden from the body -- the header pill is the only visible control. */
.kg-audio-card.js-sound-source{ display:none; }

/* A Video card promoted into the hero position by main.js */
.hero-media video{
  width: 100%; height: auto; max-height: 88vh; object-fit: contain;
}

[hidden]{ display: none !important; }

/* ==========================================================================
   Koenig editor width classes (required so wide/full-bleed images in the
   post editor render correctly instead of being clipped by the column)
   ========================================================================== */
.kg-width-wide{
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
