/**
 * Inkwell Marketing Theme
 * Shared tokens and base styles for marketing pages
 */

:root{
  /* Clean Studio Palette - White / Ink Blue / Gold Signal */
  --bg: #FFF;              /* Primary surface - pure white */
  --bg-alt: #F9FAFB;          /* Subtle section separation (rare use) */
  --bg2: #F9FAFB;             /* Legacy alias */
  --card: #FFF;            /* Card surface - white */
  --panel: rgb(15 23 42 / 3%);
  --panel2: rgb(15 23 42 / 5%);
  --text: #0F172A;                  /* Body text - near-black, softer than pure black */
  --text-secondary: rgb(15 23 42 / 72%);  /* Secondary text */
  --muted: rgb(15 23 42 / 60%);     /* Muted text */
  --faint: rgb(15 23 42 / 45%);
  --stroke: rgb(15 23 42 / 10%);    /* Borders */
  --hover: rgb(15 23 42 / 5%);      /* Soft hover */

  /* Ink Blue - structure + trust */
  --ink: #1F3A5F;                   /* Primary headers, nav, anchors */
  --link: #2C5CC4;                  /* Interactive links, hover states */

  /* Gold - signal only, not atmosphere */
  --gold: #B88418;                  /* Primary CTA, progress bars */
  --goldHover: #D4A537;             /* Hover / active accent only */
  --goldSoft: rgb(184 132 24 / 12%); /* Soft underline accents (sparingly) */
  --blueSoft: rgb(44 92 196 / 8%);
  --danger: #c53030;
  --shadow: 0 18px 70px rgb(15 23 42 / 10%);
  --shadowSoft: 0 10px 45px rgb(15 23 42 / 8%);
  --radius: 18px;
  --radius2: 26px;
  --serif: "Fraunces", ui-serif, georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, segoe ui, roboto, helvetica, arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  background: var(--bg);
}

a{
  color:inherit;
  text-decoration:none;
}
a:hover{ opacity:0.92; }

/* Container */
.container{
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow{
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 160px;
}

.brand-mark-img{
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.brand-name{
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}

.nav a{
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav a:hover{ color: var(--text); }

.header-cta{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover{
  transform: translateY(-1px);
  background: var(--panel2);
}

.btn-primary{
  border-color: var(--gold);
  background: var(--gold);
  color: #FFF;
  box-shadow: 0 4px 14px rgb(184 132 24 / 25%);
}

.btn-primary:hover{
  background: var(--goldHover);
  border-color: var(--goldHover);
}
.btn-ghost{ background: rgb(15 23 42 / 2%); }

/* Typography */
.eyebrow{
  display:inline-block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1{
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2{
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h3{
  margin: 0 0 8px;
  font-size: 16px;
}

.lead{
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
  margin: 0 0 18px;
}
.muted{ color: var(--muted); }
.faint{ color: var(--faint); }

/* Footer */
.site-footer{
  border-top: 1px solid var(--stroke);
  padding: 18px 0 26px;
  color: var(--muted);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* stylelint-disable-next-line no-descending-specificity */
.footer-links a{
  color: var(--muted);
  font-size: 13px;
}

.footer-meta{
  font-size: 13px;
}

/* Mobile menu */
.mobile-menu-toggle{
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-line{
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2){
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav{
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 24px 16px;
  border-top: 1px solid var(--stroke);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}
/* stylelint-disable-next-line no-descending-specificity */
.mobile-nav a{
  display: block;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--stroke);
}
.mobile-nav a:last-child{ border-bottom: none; }
.mobile-nav a:hover{ color: var(--text); }

.mobile-nav.is-open{
  display: flex;
}
.desktop-only{ display: inline-flex; }

@media (width <= 980px){
  .nav{ display:none; }
  .mobile-menu-toggle{ display: flex; }
  .desktop-only{ display: none; }
}
