/* ==========================================================================
   FINE ART PRODUCTION: Guides & Journal
   Long-form reading for the specialty pages and the Journal (/blog).
   Sits on top of fap.css and uses the same tokens, so light and dark
   themes follow the rest of the site.
   ========================================================================== */

.gd-article,
.gd-answer,
.gd-toc,
.gd-crumb,
.gd-byline { max-width: 46rem; margin-inline: auto; }

/* "In short": a direct answer for readers and answer engines */
.gd-answer {
  position: relative;
  margin-block: clamp(1rem, 3vh, 2rem) clamp(2rem, 5vh, 3rem);
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3.5vw, 2.25rem);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ed-gold);
  border-radius: 2px;
}
.gd-answer__k {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ed-gold);
}
.gd-answer p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.1vw, 1.42rem);
  line-height: 1.5;
  color: var(--text);
}
.gd-answer a { color: inherit; text-decoration-color: var(--ed-gold); text-underline-offset: 3px; }

/* Breadcrumb + table of contents */
.gd-crumb {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.gd-crumb a { color: inherit; text-decoration: none; }
.gd-crumb a:hover { color: var(--text); }
.gd-crumb span { margin-inline: 0.25rem; }

.gd-toc {
  margin-bottom: clamp(2rem, 5vh, 3rem);
  padding: 1.2rem 0 1.1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gd-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2 16rem;
  column-gap: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
}
.gd-toc li { break-inside: avoid; margin-bottom: 0.35rem; color: var(--text-muted); }
.gd-toc a { color: var(--text-soft); text-decoration: none; }
.gd-toc a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--ed-gold); }

/* Prose */
.gd-article {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.25vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}
.gd-article > * + * { margin-top: 1.15em; }
.gd-article h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  scroll-margin-top: 6rem;
}
.gd-article h3 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
.gd-article h2 + *, .gd-article h3 + * { margin-top: 0.7em; }
.gd-article strong { font-weight: 500; color: var(--text); }
.gd-article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--ed-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.gd-article a:hover { color: var(--ed-gold); }
.gd-article ul, .gd-article ol { padding-left: 1.3rem; }
.gd-article ul { list-style: disc; }
.gd-article ol { list-style: decimal; }
.gd-article li { padding-left: 0.2rem; }
.gd-article li + li { margin-top: 0.45em; }
.gd-article li::marker { color: var(--ed-gold); }
.gd-article blockquote {
  margin-block: 2em;
  margin-inline: 0;
  padding: 0.2em 0 0.2em 1.4rem;
  border-left: 2px solid var(--ed-gold);
}
.gd-article blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}

/* Photographs break slightly wider than the text column */
.gd-fig {
  margin-block: 2.2em;
  margin-inline: clamp(-6rem, -6vw, 0rem);
}
.gd-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: cover;
  border-radius: 2px;
}

/* Film card (links out to YouTube; no third-party embed on load) */
.gd-film {
  display: grid;
  grid-template-columns: minmax(0, 15rem) 1fr;
  gap: 1.1rem 1.4rem;
  align-items: center;
  margin-block: 2em;
  padding: 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.gd-film:hover { border-color: var(--ed-gold); transform: translateY(-2px); }
.gd-film__th { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #000; }
.gd-film__th img { width: 100%; height: 100%; object-fit: cover; }
.gd-film__play {
  position: absolute; inset: 50% auto auto 50%;
  width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1410;
}
.gd-film__play svg { width: 1.2rem; height: 1.2rem; margin-left: 2px; }
.gd-film__txt b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.gd-film__txt small { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }

.gd-byline {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.gd-byline a { color: var(--text); }

/* Meta line (date, read time) */
.gd-meta {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ed-gold);
}
.gd-meta--hero { margin-top: 1rem; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.22em; }

/* Journal index cards */
.gd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
.gd-cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.gd-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.gd-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--bg-alt); }
.gd-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.gd-card:hover .gd-card__img img { transform: scale(1.04); }
.gd-card__body { display: block; padding-top: 1rem; }
.gd-card__body b {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
}
.gd-card__desc { display: block; margin-top: 0.55rem; font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 640px) {
  .gd-film { grid-template-columns: 1fr; }
  .gd-fig { margin-inline: 0; }
  .gd-toc ol { columns: 1; }
}

@media print {
  #site-header, #site-footer, .ed-close, .gd-film__play { display: none !important; }
}
