/*
Theme Name: Archigist Editorial
Theme URI: https://archigist.com/
Description: A premium editorial child theme for Archigist.com, built for the Blocksy parent theme and Gutenberg.
Author: Archigist
Version: 1.0.0
Template: blocksy
Text Domain: archigist-editorial
*/

/* Main design system */
:root {
  --adh-ink: #17191b;
  --adh-muted: #70777d;
  --adh-line: #e8e8e5;
  --adh-paper: #ffffff;
  --adh-soft: #f5f5f2;
  --adh-accent: #a66a42;
  --adh-content: 1240px;
  --adh-serif: Georgia, "Times New Roman", serif;
}
body {
  background: var(--adh-paper);
}
.adh-site-width {
  width: min(calc(100% - 48px), var(--adh-content));
  margin-inline: auto;
}
.adh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--adh-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.adh-eyebrow:before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.adh-home-intro {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--adh-line);
}
.adh-home-intro h1 {
  max-width: 850px;
  margin: 12px 0 10px;
  color: var(--adh-ink);
  font-family: var(--adh-serif);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.adh-home-intro p {
  max-width: 650px;
  margin: 0;
  color: var(--adh-muted);
  font-size: 16px;
  line-height: 1.7;
}
.adh-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr);
  gap: 34px;
  padding: 34px 0 48px;
  border-bottom: 1px solid var(--adh-line);
}
.adh-featured-media, .adh-card-media {
  display: block;
  overflow: hidden;
  background: var(--adh-soft);
}
.adh-featured-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
  transition: transform .55s ease;
}
.adh-featured-media:hover img, .adh-card-media:hover img { transform: scale(1.035); }
.adh-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 0;
}
.adh-featured-copy h2 {
  margin: 14px 0 13px;
  font-family: var(--adh-serif);
  font-size: clamp(29px, 3.5vw, 47px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.adh-featured-copy h2 a, .adh-card-title a, .adh-section-heading a { color: inherit; text-decoration: none; }
.adh-featured-copy h2 a:hover, .adh-card-title a:hover { color: var(--adh-accent); }
.adh-excerpt { color: var(--adh-muted); font-size: 15px; line-height: 1.75; }
.adh-meta { color: var(--adh-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.adh-read-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--adh-accent);
  color: var(--adh-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.adh-section { padding: 42px 0 48px; border-bottom: 1px solid var(--adh-line); }
.adh-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.adh-section-heading h2 {
  margin: 8px 0 0;
  color: var(--adh-ink);
  font-family: var(--adh-serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -.035em;
}
.adh-section-heading > a {
  color: var(--adh-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.adh-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.adh-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  transition: transform .55s ease;
}
.adh-card-copy { padding-top: 14px; }
.adh-card-title {
  margin: 8px 0 8px;
  color: var(--adh-ink);
  font-family: var(--adh-serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.18;
}
.adh-card-excerpt { margin: 0; color: var(--adh-muted); font-size: 13px; line-height: 1.65; }
.adh-empty-image { aspect-ratio: 1.42 / 1; background: linear-gradient(135deg,#eeeae4,#f7f7f4); }
.adh-pagination { padding: 28px 0; }
.adh-pagination .page-numbers { display: inline-block; margin-right: 8px; padding: 8px 12px; border: 1px solid var(--adh-line); color: var(--adh-ink); text-decoration: none; }
.adh-pagination .current { background: var(--adh-ink); color: #fff; }
.adh-home-ad { margin: 30px auto; padding: 16px; border: 1px dashed #d8d8d3; color: #999; font-size: 10px; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.adh-single-head { max-width: 900px; margin: 0 auto; padding: 48px 24px 28px; text-align: center; }
.adh-single-head h1 { margin: 13px 0; color: var(--adh-ink); font-family: var(--adh-serif); font-size: clamp(34px, 5vw, 58px); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
.adh-single-featured { max-width: 1200px; margin: 0 auto 35px; padding: 0 24px; }
.adh-single-featured img { display: block; width: 100%; max-height: 680px; object-fit: cover; }
.adh-single-content { max-width: 760px; margin: 0 auto; padding: 0 24px 60px; color: #34383b; font-size: 17px; line-height: 1.85; }
.adh-single-content h2, .adh-single-content h3 { color: var(--adh-ink); font-family: var(--adh-serif); font-weight: 400; line-height: 1.2; }
.adh-single-content h2 { margin-top: 1.8em; font-size: 34px; }
.adh-single-content h3 { margin-top: 1.5em; font-size: 27px; }
.adh-single-content a { color: var(--adh-accent); }
.adh-single-content img { max-width: 100%; height: auto; }
.adh-single-content blockquote { margin: 2em 0; padding: 8px 24px; border-left: 2px solid var(--adh-accent); color: #555; font-family: var(--adh-serif); font-size: 24px; line-height: 1.4; }
.adh-archive-head { padding: 42px 0 28px; border-bottom: 1px solid var(--adh-line); }
.adh-archive-head h1 { margin: 8px 0; font-family: var(--adh-serif); font-size: clamp(34px, 4vw, 50px); font-weight: 400; letter-spacing: -.04em; }
.adh-archive-head p { color: var(--adh-muted); }
.adh-footer-note { padding: 30px 24px; background: var(--adh-ink); color: #d4d4d0; text-align: center; }
.adh-footer-note strong { display: block; margin-bottom: 7px; color: #fff; font-family: var(--adh-serif); font-size: 24px; font-weight: 400; }
.adh-footer-note p { margin: 0; color: #b9b9b5; font-size: 13px; }
@media (max-width: 800px) {
  .adh-site-width { width: min(calc(100% - 32px), var(--adh-content)); }
  .adh-featured { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .adh-featured-copy { padding: 0; }
  .adh-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .adh-home-intro { padding-top: 30px; }
}
@media (max-width: 520px) {
  .adh-post-grid { grid-template-columns: 1fr; }
  .adh-section { padding: 30px 0; }
  .adh-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .adh-single-head { padding-top: 30px; }
}
