/* ============================================================
   Single article page (_article.php) — ported from the live
   reference site's article-*.html pages.
   ============================================================ */

/* ------- HERO (reuses homepage's .hero, retuned for an article) -------
   The homepage hero is a clickable teaser (cursor:pointer, title goes
   transparent on hover); on the article page it's just a header, so
   those effects are cancelled here. */
body.innerpage .hero {
  padding: 60px 72px 0;
  cursor: default;
}
body.innerpage .hero h1 {
  max-width: none;
  font-size: clamp(38px, 6.5vw, 92px);
  line-height: 1.02;
}
body.innerpage .hero:hover h1 {
  color: var(--ink);
}
body.innerpage .hero .meta {
  margin-top: 36px;
  gap: 26px;
  padding-bottom: 44px;
  border-bottom: 4px solid var(--rule);
}
body.innerpage .rule-thick {
  margin: 0 72px;
}
@media screen and (max-width: 700px) {
  body.innerpage .hero,
  body.innerpage .rule-thick {
    padding-left: 24px;
    padding-right: 24px;
  }
  body.innerpage .rule-thick {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media screen and (max-width: 640px) {
  body.innerpage .hero {
    padding-top: 22px;
  }
  body.innerpage .hero h1 {
    font-size: clamp(28px, 9vw, 44px);
  }
  body.innerpage .hero .meta {
    margin-top: 14px;
    gap: 14px;
    padding-bottom: 16px;
    font-size: 11px;
  }
}

/* ------- FIGURE (main image) ------- */
.figure {
  max-width: none;
  margin: 0 72px;
  padding-top: 56px;
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s ease;
}
.figure img:hover {
  filter: grayscale(0) contrast(1.05);
}
.figure figcaption {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media screen and (max-width: 700px) {
  .figure {
    margin: 0 24px;
  }
}
@media screen and (max-width: 640px) {
  .figure {
    margin: 0 18px;
    padding-top: 16px;
  }
  .figure figcaption {
    margin-top: 6px;
    font-size: 10px;
  }
}

/* ------- ARTICLE BODY ------- */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  font-size: 21px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.article-body p {
  margin-bottom: 1.35em;
}
.article-body > p:first-of-type {
  font-size: 1.28em;
  line-height: 1.5;
}
.article-body h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 3vw, 34px);
  margin: 2em 0 0.7em;
  line-height: 1.15;
}
.pull {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
  margin: 1em -10px;
  padding: 1em 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
@media screen and (max-width: 700px) {
  .article-body {
    font-size: 18px;
    line-height: 1.7;
  }
}
@media screen and (max-width: 640px) {
  .article-body {
    padding: 20px 18px 16px;
    font-size: 15px;
    line-height: 1.55;
  }
  .article-body p {
    margin-bottom: 1em;
  }
  .article-body > p:first-of-type {
    font-size: 1.12em;
    line-height: 1.45;
  }
  .article-body h2 {
    font-size: clamp(18px, 5vw, 24px);
    margin: 1.4em 0 0.5em;
  }
  .pull {
    font-size: clamp(18px, 5.2vw, 26px);
    margin: 0.8em -10px;
    padding: 0.7em 0;
  }
}

/* ------- TAG ROW ------- */
.tagrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
@media screen and (max-width: 640px) {
  .tagrow {
    padding: 0 18px 4px;
    gap: 6px;
  }
  .tagrow .tags-label {
    font-size: 10px;
  }
  .tag {
    font-size: 9px;
  }
}
.tagrow .tags-label {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  margin-right: 6px;
  font-weight: 900;
}
.tag {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 3px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.tag:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ------- SHARE ------- */
.share {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
@media screen and (max-width: 640px) {
  .share {
    padding: 10px 18px 0;
    gap: 8px;
  }
  .share a,
  .share button {
    font-size: 10px;
    padding: 6px 10px;
    border-width: 2px;
  }
}
.share .share-label {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  margin-right: 6px;
}
.share a,
.share button {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 3px solid var(--ink);
  background: none;
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.share a:hover,
.share button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ------- AUTHOR ("end") ------- */
.end {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px 110px;
}
@media screen and (max-width: 640px) {
  .end {
    padding: 28px 18px 32px;
  }
  .end .name {
    font-size: clamp(18px, 5vw, 24px);
  }
  .end .role {
    font-size: 10px;
  }
}
.end .who {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.end .name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 3vw, 34px);
}
.end .role {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}

/* ------- AUTHOR BIO PAGE (bio text + facts, exact reference values) ------- */
.bio {
  padding: 60px 72px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.bio p {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 1.2em;
  max-width: 60ch;
}
.bio .facts {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.more {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  border-bottom: 3px solid var(--rule);
  padding-bottom: 4px;
  align-self: flex-start;
  margin-top: 12px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.bio .facts h3 {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 900;
  margin-bottom: 12px;
}
.bio .facts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.bio .facts li {
  font-size: 14px;
  line-height: 1.5;
}
.contact {
  padding: 56px 72px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
}
.contact .l {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 900;
}
.contact a {
  font-size: 15px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.contact a:hover {
  opacity: 0.5;
}
@media screen and (max-width: 900px) {
  .bio {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
@media screen and (max-width: 600px) {
  .bio,
  .contact {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media screen and (max-width: 640px) {
  .bio {
    padding-top: 20px;
    gap: 20px;
  }
  .bio p {
    font-size: 15px;
    line-height: 1.55;
  }
  .bio .facts {
    gap: 20px;
  }
  .contact {
    padding-top: 18px;
    gap: 10px;
  }
}

/* ------- PREV/NEXT ------- */
.updown {
  border-top: 10px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.updown > a {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.updown > a + a {
  border-left: 4px solid var(--rule);
}
.updown > a:hover {
  background: var(--ink);
  color: var(--paper);
}
.updown .dir {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.updown > a:hover .dir {
  color: #c9c9c9;
}
.updown .arrow {
  font-size: 34px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.updown > a:hover .arrow {
  transform: translateX(-6px);
}
.updown > a.next:hover .arrow {
  transform: translateX(6px);
}
.updown .t {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.updown .m {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: auto;
}
.updown > a:hover .m {
  color: #c9c9c9;
}
.updown > a.next {
  text-align: right;
  align-items: flex-end;
}
.updown > a.next .dir {
  flex-direction: row-reverse;
}

@media screen and (max-width: 1200px) {
  .row-article {
    gap: 10px !important;
  }
}

@media screen and (max-width: 820px) {
  .updown {
    grid-template-columns: 1fr;
  }
  .updown > a + a {
    border-left: none;
    border-top: 4px solid var(--rule);
  }
  .updown > a {
    padding: 40px 26px;
    min-height: 0;
  }
}
@media screen and (max-width: 640px) {
  .updown > a {
    padding: 18px 18px;
    gap: 6px;
  }
  .updown .t {
    font-size: clamp(16px, 4.5vw, 20px);
  }
  .updown .dir,
  .updown .m {
    font-size: 10px;
  }
  .updown > a.next {
    text-align: left;
    align-items: flex-start;
  }
  .updown > a.next .dir {
    flex-direction: row;
  }
}
