/* ==========================================================================
   ClickImp — Editorial page system (About / Contact / Terms)
   Light theme, matched to the homepage's black-on-off-white brand.
   Palette:  #FAFAF8 page · #FFFFFF card · #101114 ink · #6B6F76 muted
             #E7E5DF line · tag pills: #FFD23F yellow / #3B5BFF blue / #22C55E green
   Type:     "General" sans (Inter) for UI/body · Fraunces italic for the
             brand's signature emphasis word (matches "imp." / "emotion.")
   ========================================================================== */

:root {
  --page: #FEFEFE;
  --card: #ffffff;
  --card-2: #f3f2ed;
  --line: #e2e2df;
  --ink: #0f0f0f;
  --muted: #888888;
  --muted-dim: #9a9da3;

  --yellow: #ffd23f;
  --blue: #3b5bff;
  --green: #22c55e;

  --display: "Instrument Serif", "Playfair Display", serif;
  --body: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 760px;
  --gutter: 165px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- eyebrow bullet — matches the site's existing "● LABEL" convention ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

/* ---------- nav — identical to homepage style.css ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--page);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-height: 102px;
  height: auto;
  padding: 0 165px 16px;
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-svg {
  width: 146px;
  height: 38.4px;
  display: block;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-item a {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: var(--ink);
}

.nav-item.active {
  position: relative;
}

.nav-item.active a {
  color: var(--ink);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
}


/* ---------- hero / page intro ---------- */
.page-hero {
  max-width: 100%;
  padding: clamp(56px, 9vw, 100px) var(--gutter) clamp(36px, 5vw, 52px);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.page-hero h1 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.page-hero .lede {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

/* ---------- article body ---------- */
.page-body {
  max-width: 100%;
  padding: 0 var(--gutter) clamp(56px, 8vw, 88px);
}

.page-body-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-body section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.page-body section:first-child {
  border-top: none;
  padding-top: 0;
}

.page-body h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 23px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-body p {
  margin: 0 0 14px;
  color: #3c3e42;
  max-width: 62ch;
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-body li {
  color: #3c3e42;
  padding-left: 22px;
  position: relative;
}

.page-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: -4px 0 0;
}

/* ---------- contact-specific cards ---------- */
.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  border-color: #d5d2c9;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 17, 20, 0.06);
}

.contact-card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.contact-card.blue .tag {
  background: var(--blue);
  color: #fff;
}

.contact-card.green .tag {
  background: var(--green);
  color: var(--ink);
}

.contact-card h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mail-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.mail-link svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.contact-card.wide {
  grid-column: 1 / -1;
}

/* ---------- footer — identical to homepage style.css ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 165px;
  max-width: 100%;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.footer-logo .logo-svg {
  height: 22px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-dim);
}

.footer-tagline em {
  font-family: var(--display);
  font-style: italic;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted-dim);
}

@media (max-width: 1024px) {
  :root {
    --gutter: 48px;
  }
  .nav-inner {
    padding: 0 48px 16px;
  }
  .footer {
    padding: 40px 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .nav-inner {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding: 8px 24px;
    min-height: auto;
  }

  .logo-svg {
    height: 30px;
  }

  .nav-links {
    gap: 20px;
  }

  .footer {
    padding: 40px 24px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}
