/* Marketing-site-specific styles — depends on colors_and_type.css */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide { max-width: 1380px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 226, 0.86);
  backdrop-filter: saturate(1.2) blur(24px);
  -webkit-backdrop-filter: saturate(1.2) blur(24px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1380px;
  margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav-brand .it { font-style: italic; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.005em;
  padding: 6px 2px;
  position: relative;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.005em;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--paper-white);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: var(--terracotta-2); box-shadow: var(--shadow-3); }
.btn-ink {
  background: var(--ink);
  color: var(--paper-white);
}
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-white); }
.btn-link {
  background: transparent;
  color: var(--rust);
  padding: 6px 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(138,58,31,0.4);
}
.btn-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ===== Eyebrow ===== */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== Photo placeholder ===== */
.photo {
  background: var(--paper-3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-2);
  text-align: center;
  border-radius: 0;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(28,24,20,0.04) 14px 15px);
}
.photo-label {
  position: relative;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 16px;
  text-wrap: balance;
  max-width: 80%;
}

/* ===== Tag ===== */
.tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}
.tag-moss     { background: rgba(47,74,55,0.12);   color: var(--moss); }
.tag-postcard { background: rgba(74,111,138,0.14); color: var(--postcard); }
.tag-ochre    { background: rgba(217,164,65,0.20); color: #8A6816; }
.tag-rust     { background: rgba(199,93,58,0.14);  color: var(--terracotta-2); }
.tag-plum     { background: rgba(107,59,79,0.14);  color: var(--plum); }

/* ===== Program card ===== */
.program-card {
  background: var(--paper-white);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--dur-mid) var(--ease-out);
  cursor: pointer;
}
.program-card:hover { box-shadow: var(--shadow-3); }
.program-card .pc-photo { aspect-ratio: 4/3; }
.program-card .pc-body { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.program-card .pc-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}
.program-card .pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.program-card .pc-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.program-card .pc-foot .apply {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--rust);
}

/* ===== Field note ===== */
.field-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.field-note .fn-photo { aspect-ratio: 16/10; }
.field-note .fn-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.18;
  color: var(--ink);
}
.field-note .fn-title em { font-style: italic; }
.field-note:hover .fn-title { color: var(--rust); }

/* ===== Fellow card ===== */
.fellow-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.fellow-card .fc-photo {
  aspect-ratio: 3/4;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}
.fellow-card .fc-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(28,24,20,0.04) 14px 15px);
}
.fellow-card .fc-photo-label {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fellow-card .fc-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
}
.fellow-card .fc-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ===== Stat strip ===== */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-num .pct { font-size: 46px; }
.stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--paper-white);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer h6 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9B89B;
  margin: 0 0 16px;
}
.footer a {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--paper-white);
  text-decoration: none;
  padding: 5px 0;
  opacity: 0.85;
}
.footer a:hover { opacity: 1; color: var(--ochre); }
.footer .footer-brand {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--paper-white);
  margin-bottom: 8px;
}
.footer .footer-brand .it { font-style: italic; }
.footer-lede {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: #C9B89B;
  max-width: 28ch;
}
.footer-base {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(244,238,226,0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9A8E7E;
}

/* ===== Form ===== */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 13px;
  background: var(--paper-white);
  border: 1px solid var(--ink-line-2);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field .hint { font-family: var(--font-sans); font-size: 12px; color: var(--ink-3); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper-white);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-4);
  z-index: 100;
  animation: toast-in 260ms var(--ease-out);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Utility rules ===== */
.rule { border: none; border-top: 1px solid var(--ink-line); margin: 64px 0; }
.rule-ink { border-top-color: var(--ink); }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
