@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* =========================================================
   CSS Reset & Base
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* =========================================================
   Announce Bar
   ========================================================= */
.announce-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 0.45rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 300;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #000;
}

.header-brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 2.5rem 0.6rem;
  border-bottom: 1px solid #000;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.site-logo-img {
  height: 36px;
  width: auto;
}

.brand-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.1rem 0;
}

.header-tagline {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #555;
  text-align: right;
  max-width: 340px;
}

.header-nav {
  padding: 0.5rem 2.5rem;
  background: #000;
}

.header-nav > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.header-nav > p > a {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.38rem 1.1rem;
  font-size: 0.82rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 40px;
  line-height: 1.4;
}

.header-nav > p > a:hover,
.header-nav > p > a:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  outline: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "fig aside";
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 2px solid #000;
}

.hero-deco-text {
  position: absolute;
  bottom: -0.1em;
  left: -0.05em;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 700;
  color: rgba(0,0,0,0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-figure {
  grid-area: fig;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #111;
  min-height: 400px;
}

.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-aside {
  grid-area: aside;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 3.5rem 3rem 3.5rem 2rem;
  background: #fff;
  border-left: 2px solid #000;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 1rem;
  font-family: 'Lato', sans-serif;
}

.hero-h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  max-width: 480px;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  max-width: 400px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.75rem 2rem;
  border: 2px solid #000;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

/* =========================================================
   Content Section (asymmetric grid)
   ========================================================= */
.content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "deco deco"
    "aside body";
  gap: 0;
  border-bottom: 1px solid #000;
}

.content-deco-figure {
  grid-area: deco;
  border-bottom: 3px solid #000;
  padding: 0;
}

.deco-rule {
  display: block;
  height: 0;
}

.content-aside {
  grid-area: aside;
  padding: 2.5rem 1.5rem 2.5rem 2.5rem;
  border-right: 2px solid #000;
  position: sticky;
  top: 90px;
  align-self: start;
}

.aside-eyebrow,
.section-eyebrow,
.footer-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 0.5rem;
  font-family: 'Lato', sans-serif;
}

.aside-nav-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #000;
  padding-bottom: 0.5rem;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-nav-list li {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: #222;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 40px;
  line-height: 1.5;
}

.aside-nav-list li a:hover {
  color: #000;
  padding-left: 0.4rem;
  font-weight: 700;
}

.content-body {
  grid-area: body;
  padding: 2.5rem 3rem 3rem 2.5rem;
  max-width: 900px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
}

/* =========================================================
   page.content inner styles (article, figure, aside)
   ========================================================= */
.content-body h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid #000;
}

.content-body h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.8rem 0 0.7rem;
}

.content-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #111;
}

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1rem 1.25rem;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.content-body blockquote {
  border-left: 4px solid #000;
  margin: 1.8rem 0;
  padding: 1rem 1.5rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #222;
  background: #f7f7f7;
}

.content-body figure {
  margin: 1.5rem 0;
}

.content-body figcaption {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.4rem;
  font-style: italic;
}

.content-body article {
  scroll-margin-top: 90px;
  margin-bottom: 1rem;
}

.content-body aside {
  background: #f5f5f5;
  border-left: 3px solid #000;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}

/* Drop cap on first paragraph of each content article */
.content-body > article:first-child > p:first-of-type::first-letter,
.content-body article:first-of-type p:first-of-type::first-letter {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 3.8rem;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin-right: 0.1em;
  margin-top: 0.08em;
  color: #000;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #000;
  color: #fff;
  padding: 3rem 2.5rem 1.5rem;
}

.footer-brand-block {
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand-big {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col small.footer-eyebrow {
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}

.footer-col nav > p {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-col nav > p > a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.footer-col nav > p > a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* =========================================================
   Accessibility helper
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Scroll Reveal Animation
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  .reveal-left.visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Hover micro-interactions
   ========================================================= */
.aside-nav-list li a,
.header-nav > p > a,
.footer-col nav > p > a {
  transition: all 0.2s ease;
}

.hero-cta {
  transition: background 0.2s ease, color 0.2s ease;
}

/* =========================================================
   Responsive — Tablet
   ========================================================= */
@media (max-width: 900px) {
  .header-brand-row {
    padding: 0.9rem 1.25rem 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .header-tagline {
    text-align: left;
  }

  .header-nav {
    padding: 0.5rem 1.25rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "fig"
      "aside";
    min-height: auto;
  }

  .hero-figure {
    min-height: 260px;
  }

  .hero-aside {
    align-items: flex-start;
    text-align: left;
    border-left: none;
    border-top: 2px solid #000;
    padding: 2rem 1.5rem;
  }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "deco"
      "aside"
      "body";
  }

  .content-aside {
    position: static;
    border-right: none;
    border-bottom: 2px solid #000;
    padding: 1.5rem 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    align-items: start;
  }

  .aside-eyebrow { grid-column: 1; grid-row: 1; }
  .aside-nav-title { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .aside-nav-list { grid-column: 2; grid-row: 1 / 3; }

  .content-body {
    padding: 1.5rem 1.25rem 2rem;
    max-width: 100%;
  }

  .footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* =========================================================
   Responsive — Mobile
   ========================================================= */
@media (max-width: 560px) {
  html {
    scroll-padding-top: 110px;
  }

  .announce-bar {
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
  }

  .brand-name {
    font-size: 1.25rem;
    min-height: 44px;
  }

  .header-nav > p {
    gap: 0.3rem;
  }

  .header-nav > p > a {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    min-height: 40px;
  }

  .hero-h1 {
    font-size: 1.65rem;
  }

  .hero-deco-text {
    font-size: 5rem;
  }

  .content-aside {
    display: block;
  }

  .aside-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-brand-big {
    font-size: 2.2rem;
  }

  .content-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .content-body h2 {
    font-size: 1.35rem;
  }
}
