/* =========================================================
   The Aguirres on Assignment — theaguirres.com
   Design language adapted from the announcement letter
   and "The Aguirres on Assignment" newsletter.
   ========================================================= */

:root {
  --cream:        #faf4e8;
  --cream-deep:   #f3ebd7;
  --teal:         #189584;
  --teal-dark:    #0f6e60;
  --teal-soft:    #e4f1ee;
  --ink:          #1f2220;
  --ink-soft:     #3c423f;
  --muted:        #6b6f6c;
  --rule:         #d9d2be;
  --dot:          #179182;

  --serif:  "Playfair Display", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--teal-dark);
  text-decoration-color: rgba(24,149,132,.35);
  text-underline-offset: 3px;
}
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 4.2vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem); }
h3 { font-size: 1.35rem; }

p  { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.container--narrow { width: min(760px, 92%); }

/* Accent dot — used throughout the announcement letter */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  vertical-align: middle;
  margin-right: .45rem;
}

/* ---------- Header: Masthead + Nav ---------- */

.site-header { background: var(--cream); }

/* Masthead — newsletter-style banner with large logo + title. Not sticky. */
.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  padding: 2.25rem 0 2rem;
  text-align: left;
}

.masthead .brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.masthead .brand__mark {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  line-height: 0;
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  overflow: hidden;
}

.masthead .brand__mark img,
.masthead .brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.masthead .brand__text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw + .6rem, 2.6rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.masthead .brand__text small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(.72rem, .5vw + .55rem, .88rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-top: .55rem;
}

/* Sticky secondary nav bar — thin, just links + CTA */
.navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.1) blur(6px);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .65rem 0;
}

/* Generic brand (used elsewhere, e.g. footer) — kept for compatibility */
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand__mark img,
.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand__text small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.is-active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.nav .btn { padding: .5rem 1.05rem; font-size: .92rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--teal);
  transition: background .15s ease, transform .15s ease;
  font-size: .98rem;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--teal-dark) !important;
  border-color: var(--teal);
}
.btn--ghost:hover { background: var(--teal-soft); color: var(--teal-dark) !important; }

/* ---------- Hero ---------- */

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw + 1rem, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.hero__title .accent {
  color: var(--teal);
  font-style: italic;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
}

.hero__tag {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.45rem;
  padding: .55rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(255,255,255,.9);
}

/* ---------- Section ---------- */

.section { padding: 4rem 0; }

.section--alt { background: var(--cream-deep); }

.section__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: .75rem;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.section__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* ---------- Feature / two-up ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse > :first-child { order: 2; }

/* ---------- Story card (from announcement letter teal callout) ---------- */

.callout {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  position: relative;
}
.callout h2,
.callout h3 { color: #fff; font-family: var(--serif); }
.callout p  { color: rgba(255,255,255,.92); }
.callout::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  opacity: .6;
}

/* ---------- Progress Circle section ---------- */

.progress {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.progress__img {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.progress__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.progress__caption {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .75rem;
  font-style: italic;
}

/* ---------- Support (QR) section ---------- */

.support {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.support__qr {
  background: #fff;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.support__qr img { width: 100%; height: auto; image-rendering: pixelated; }

/* ---------- News list ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.news-card__date {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
}

.news-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
}

.news-card__excerpt {
  color: var(--ink-soft);
  font-size: .96rem;
  margin: 0;
}

.news-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* ---------- Quote (from announcement letter) ---------- */

.quote {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
  margin: 2.5rem 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.quote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: .25rem;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d8d5cd;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.site-footer p, .site-footer a { color: #c9c5bd; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer__brand { display: flex; gap: 1.1rem; align-items: center; }
.footer__brand .brand__mark {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.footer__brand .brand__text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.05;
  color: #fff;
}
.footer__brand .brand__text small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a968e;
  margin-top: .4rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #9a968e;
}

/* ---------- Article / blog post ---------- */

.article-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.article-header__date {
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: .5rem;
}
.article-body {
  padding: 2.5rem 0 4rem;
}
.article-body p, .article-body li {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body h2 {
  font-family: var(--serif);
  margin-top: 2rem;
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 2.5rem 0 1.5rem; }
  .hero__grid,
  .split,
  .progress,
  .support,
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse > :first-child { order: 0; }
  .nav { gap: 1rem; }
  .section { padding: 2.5rem 0; }

  .masthead__inner { padding: 1.75rem 0 1.5rem; gap: 1.25rem; }
  .masthead .brand { gap: 1rem; }
  .masthead .brand__mark { width: 84px; height: 84px; }

  .footer__brand .brand__mark { width: 72px; height: 72px; }
  .footer__brand .brand__text { font-size: 1.35rem; }
}

@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .brand__text { font-size: 1rem; }
  .callout { padding: 1.5rem; }
  .progress { padding: 1.5rem; }

  .masthead__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 0 1.25rem;
  }
  .masthead .brand { flex-direction: column; gap: .85rem; }
  .masthead .brand__mark { width: 96px; height: 96px; }
  .masthead .brand__text { text-align: center; }
}
