/* ─────────────────────────────────────────────
   23AG Consulting — Newspaper broadsheet style
   Palette: aged newsprint · ink #1a1a1a · muted #4a4a4a
   Fonts: Playfair Display (headings), Libre Baskerville (body)
───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #F4ECDC;
  --ink:     #1a1509;
  --muted:   #5a5040;
  --light:   #b8aa90;
  --serif:   'Playfair Display', Georgia, serif;
  --serif-sc:'Playfair Display SC', 'Playfair Display', serif;
  --body:    'Libre Baskerville', Georgia, serif;
}

html { font-size: 16px; }

body {
  background-color: var(--bg);
  background-image: url('../background.jpeg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

/* yellow tint overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(210, 160, 30, 0.06);
  z-index: 0;
}

/* subtle aged vignette at page edges */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(120,95,50,0.18) 100%);
  z-index: 0;
}

.c-wrap { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ── BACK LINK ── */
.c-back {
  position: fixed;
  top: 1.4rem;
  left: 1.5rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
  z-index: 100;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.c-back::before {
  content: '';
  display: block;
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  transition: width 0.25s;
}
.c-back:hover {
  color: var(--ink);
  text-decoration: none;
}
.c-back:hover::before { width: 2.8rem; }

/* ── WRAPPER ── */
.c-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─────────────────────────────────────────────
   MASTHEAD
───────────────────────────────────────────── */
.c-masthead {
  padding: 2.5rem 0 0;
}

.c-masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

.c-masthead__main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 4px double var(--ink);
}

.c-masthead__rule-left,
.c-masthead__rule-right {
  flex: 1;
  height: 1px;
  background: var(--ink);
  display: none;
}
@media (min-width: 700px) {
  .c-masthead__rule-left,
  .c-masthead__rule-right { display: block; }
}

.c-masthead__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.c-masthead__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.01em;
}

.c-ornament {
  display: none;
  width: 3rem;
  height: 1.5rem;
  flex-shrink: 0;
}
@media (min-width: 600px) { .c-ornament { display: inline-block; } }

.c-masthead__sub {
  text-align: center;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0 1rem;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.c-nav {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0.5rem 0;
  margin-bottom: 1.75rem;
}
.c-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.c-nav a {
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.c-nav a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────
   GRID
───────────────────────────────────────────── */
.c-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .c-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "left center right";
    gap: 0;
  }
  .c-col--left   { grid-area: left;   padding-right: 1.5rem; border-right: 1px solid var(--ink); }
  .c-col--center { grid-area: center; padding: 0 1.5rem;     border-right: 1px solid var(--ink); }
  .c-col--right  { grid-area: right;  padding-left: 1.5rem; }
}
@media (min-width: 1100px) {
  .c-grid { grid-template-columns: 3fr 6fr 3fr; }
}

/* ─────────────────────────────────────────────
   ARTICLES
───────────────────────────────────────────── */
.c-article {
  border-bottom: 1px solid rgba(26,26,26,0.25);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.c-article:last-child { border-bottom: none; margin-bottom: 0; }

.c-article__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.c-article__cat  { font-weight: 700; color: var(--ink); }
.c-article__sep  { color: var(--light); }

.c-article__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.c-article__title--lg {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
}

.c-article__sub {
  font-family: var(--body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.c-article__sub--lg {
  font-size: 1rem;
}

.c-article__rule {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0.75rem 0;
}

.c-article__body {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #2a2a2a;
  text-align: justify;
  hyphens: auto;
  margin-bottom: 0.75rem;
}

/* Drop cap */
.c-article__body--dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 900;
  float: left;
  line-height: 0.78;
  margin: 0.05em 0.1em 0 0;
}

/* Multi-column body text */
.c-article__body--cols {
  column-count: 2;
  column-gap: 1.25rem;
}
.c-article__body--cols2 {
  column-count: 2;
  column-gap: 1.25rem;
}
@media (max-width: 700px) {
  .c-article__body--cols,
  .c-article__body--cols2 { column-count: 1; }
}

.c-article--featured {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.c-article--mid {
  border: 2px solid var(--ink);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.c-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 500px) { .c-two-col { grid-template-columns: 1fr; } }

/* ── NEWSPAPER PHOTO ── */
.c-photo {
  margin: 0.75rem 0 1rem;
}
.c-photo__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(8%) sepia(8%) contrast(0.96);
}
.c-photo__caption {
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--light);
  padding-top: 0.3rem;
  margin-top: 0.3rem;
  font-style: italic;
}

.c-read-more {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.c-read-more:hover { text-decoration: underline; }
.c-read-more--lg { font-size: 0.75rem; margin-top: 0.5rem; }

/* ─────────────────────────────────────────────
   SIDEBAR BOXES
───────────────────────────────────────────── */
.c-box {
  border: 2px solid var(--ink);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.c-box--double {
  border: 4px double var(--ink);
  text-align: center;
}
.c-box__inner { border: 1px solid var(--ink); padding: 1rem; }

.c-box__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.c-box__rule {
  width: 3rem;
  height: 1px;
  background: var(--ink);
  margin: 0.5rem auto;
}

.c-box__body {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.c-box__icon {
  width: 4rem;
  height: 4rem;
  margin: 0.5rem auto;
}
.c-box__est {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.c-box__label {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.c-list {
  font-size: 0.75rem;
  line-height: 1.9;
}
.c-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(26,26,26,0.12);
  padding-bottom: 0.25rem;
}
.c-list li:last-child { border-bottom: none; }
.c-list__n {
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--light);
  flex-shrink: 0;
  width: 1.4rem;
}

/* Inverted quote box */
.c-box--invert {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.c-quote__mark {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}
.c-quote__text {
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.c-quote__attr {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.6);
  display: block;
}

/* Steps */
.c-steps { margin-bottom: 0.75rem; }
.c-step {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(26,26,26,0.12);
  padding: 0.2rem 0;
}
.c-step:last-child { border-bottom: none; }
.c-step__n {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-style: italic;
  flex-shrink: 0;
  width: 1.4rem;
  color: var(--muted);
}
.c-box__dashed {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px dashed var(--ink);
  padding: 0.4rem;
  text-align: center;
  margin-top: 0.75rem;
}

/* Contact box */
.c-box--contact { text-align: center; }
.c-contact__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.c-contact__sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.c-contact__btn {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid var(--ink);
  padding: 0.5rem 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.c-contact__btn:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* Principles */
.c-principles p {
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.55;
  border-bottom: 1px solid rgba(26,26,26,0.12);
  padding: 0.35rem 0;
  color: var(--muted);
}
.c-principles p:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.c-footer {
  border-top: 2px solid var(--ink);
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
}
.c-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) { .c-footer__grid { grid-template-columns: repeat(4, 1fr); } }

.c-footer__head {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.c-footer li,
.c-footer a {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.8;
}
.c-footer a:hover { color: var(--ink); }

.c-footer__base {
  border-top: 1px solid rgba(26,26,26,0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   MOBILE
───────────────────────────────────────────── */
@media (max-width: 899px) {
  .c-masthead__top span:first-child,
  .c-masthead__top span:last-child { display: none; }
  .c-masthead__top { justify-content: center; }
}
