/* The Abroad Board — shared stylesheet */

:root {
  /* CU Boulder: black #000000, CU gold #CFB87C */
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #000000;
  --ink-2: #565a5c;        /* CU dark gray */
  --ink-3: #8c8f90;
  --border: #e2ded4;

  --gold: #cfb87c;         /* fills, borders, accents only — never text on white */
  --gold-soft: #f6f1e2;
  --gold-deep: #a89155;    /* hover state on gold fills */
  --accent: #5c4a1a;       /* text-safe gold for links: 8.2:1 on page bg */
  --accent-soft: #f6f1e2;

  --green: #2f5d52;
  --green-soft: #e8ecea;
  --radius: 14px;
  --maxw: 1120px;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -0.021em; margin: 0 0 0.5em; }
h1 { font-size: 2.5rem; letter-spacing: -0.028em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }

/* ---------- Skip link (accessibility) ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 700;
  letter-spacing: -0.022em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 10px; padding: 11px 20px;
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #1f1f1f; border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }

input[type="text"], input[type="email"], textarea, select {
  font: inherit; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }

/* ---------- Image slots ---------- */
.img-slot {
  position: relative; background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.img-slot .slot-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 12px;
  color: var(--ink-3); font-size: 0.78rem; line-height: 1.4; z-index: 0;
}
.img-slot .slot-label strong { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 14px;
}
.hero h1 { max-width: 22ch; margin: 0 auto 16px; }
.hero .lede { max-width: 54ch; margin: 0 auto 28px; color: var(--ink-2); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 24px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section.tint { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.section-head h2 { margin: 0; }
.section-sub { color: var(--ink-2); margin: 0 0 26px; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.09); border-color: var(--gold); }
.card .img-slot { aspect-ratio: 4 / 3; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; }
.card-meta { color: var(--ink-2); font-size: 0.88rem; margin: 0; }

.link-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: inherit; display: block;
}
.link-card:hover { border-color: var(--gold); background: var(--gold-soft); }
.link-card h3 { margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; }
.link-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* ---------- Advisory badges ---------- */
.adv {
  display: inline-block; font-size: 0.82rem; font-weight: 600; line-height: 1.3;
  padding: 4px 11px; border-radius: 999px; border: 1px solid;
}
.adv-sm { font-size: 0.74rem; padding: 3px 9px; }
.adv-1 { background: #e4ede9; color: #1f5244; border-color: #bcd6cc; }
.adv-2 { background: #fdf0d9; color: #7a5312; border-color: #eed6a6; }
.adv-3 { background: #fbe3dc; color: #8f331a; border-color: #eec2b4; }
.adv-4 { background: #8f331a; color: #fff; border-color: #8f331a; }

.advisory-box { border: 1px solid var(--border); border-left-width: 5px; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 32px; }
.adv-box-1 { border-left-color: #4d8d78; background: #f2f7f5; }
.adv-box-2 { border-left-color: #d6a23f; background: #fdf8ee; }
.adv-box-3 { border-left-color: #b24f2c; background: #fdf1ec; }
.advisory-box .adv-head { margin: 0 0 10px; }
.advisory-box p:last-child { margin-bottom: 0; }
.adv-meta { font-size: 0.88rem; color: var(--ink-2); }

/* ---------- Visa difficulty pills ---------- */
.visa-pill {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink-2);
}
.visa-easy { background: #e9f1ec; color: #2c6450; border-color: #c6ddd1; }
.visa-moderate { background: #f3eee4; color: #6f5c33; border-color: #ded0b6; }
.visa-hard { background: #f7e9e3; color: #8c4327; border-color: #e8cabb; }
.card-badges { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lead-time { font-size: 0.88rem; color: var(--ink-2); margin-left: 10px; }

.caveat {
  font-size: 0.88rem; color: var(--ink-2); border-left: 3px solid var(--border);
  padding-left: 14px; margin-top: 20px;
}

.draft-note {
  background: var(--gold-soft); border: 1px dashed var(--gold-deep); border-radius: var(--radius);
  padding: 16px 20px; font-size: 0.92rem; color: #4a3d14; margin: 22px 0;
}
.draft-note code { background: rgba(0,0,0,0.05); padding: 1px 5px; border-radius: 4px; }

/* ---------- Students recommend ---------- */
.rec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.rec-card h3 { margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.rec-blurb { font-size: 0.88rem; color: var(--ink-2); margin: 0 0 12px; }
.rec-empty {
  margin: 0; font-size: 0.85rem; color: var(--ink-3); font-style: italic;
  border-top: 1px dashed var(--border); padding-top: 10px;
}

.dest-hero { aspect-ratio: 21 / 9; border-radius: var(--radius); margin-top: 8px; }

/* ---------- From the team ---------- */
.team-tips { list-style: none; padding: 0; margin: 0; }
.team-tips li {
  position: relative; padding: 0 0 0 26px; margin-bottom: 14px; font-size: 0.97rem;
}
.team-tips li::before {
  content: ""; position: absolute; left: 6px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep);
}

/* ---------- Story cards ---------- */
.story-card { text-align: center; padding: 22px 16px 6px; }
.story-avatar {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center top;
  display: block; margin: 0 auto; border: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.story-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.story-avatar-lg {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top;
  flex: 0 0 auto; border: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.story-head h1 { margin: 0 0 4px; }
.story-head .byline { margin: 0; }

/* ---------- Forms ---------- */
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 8px; margin: 0 0 24px; background: var(--surface); }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; padding: 0 8px; }
form label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 5px; }
.field-help { font-size: 0.88rem; color: var(--ink-2); margin: -4px 0 16px; }
input[type="file"] { border: 1px dashed var(--border); background: var(--surface-2); }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Nav CTA ---------- */
.nav-cta {
  background: var(--gold); color: #000 !important; border-radius: 8px;
  padding: 7px 14px !important; font-weight: 600; border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-deep); }

/* ---------- Team headshots ---------- */
.team-grid { gap: 24px; }
.person { text-align: center; }
.person img {
  width: 150px; height: 150px; object-fit: cover; object-position: center top;
  border-radius: 50%; display: block; margin: 0 auto 12px;
  border: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.person h3 { margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; }
.person .card-meta { margin: 0; font-size: 0.88rem; }

/* ---------- Story rows ---------- */
.story { display: flex; gap: 16px; text-decoration: none; color: inherit; align-items: flex-start; }
.story .img-slot { width: 120px; height: 90px; flex: 0 0 auto; border-radius: 10px; }
.story h3 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.4; }
.story .card-meta { font-size: 0.85rem; }
/* Small slots only have room for the label, not the filename */
.story .img-slot .slot-label { font-size: 0; padding: 4px; }
.story .img-slot .slot-label strong { font-size: 0.6rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink); border-bottom: 1px solid var(--ink);
  padding: 14px 0; text-align: center; color: var(--gold); font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* ---------- Checklist / callout ---------- */
.callout {
  background: var(--gold-soft); border: 1px solid #e6dcc0;
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0;
}
.callout h3 { margin-top: 0; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin-bottom: 6px; }

.breadcrumb { font-size: 0.88rem; color: var(--ink-2); padding: 18px 0 0; }
.breadcrumb a { color: var(--ink-2); }

/* ---------- Signup band ---------- */
.signup { background: var(--ink); color: #fff; padding: 44px 0; }
.signup h2 { color: var(--gold); margin-bottom: 6px; }
.signup p { color: #cfc9bd; margin-bottom: 20px; }
.signup-form { display: flex; gap: 10px; max-width: 440px; }
.signup-form input { flex: 1; }
.signup-note { font-size: 0.85rem; color: #a8a295; margin: 12px 0 0; }
.form-status { margin: 12px 0 0; font-size: 0.92rem; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 34px 0; font-size: 0.9rem; color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Article body ---------- */
.article { padding: 10px 0 56px; }
.article h2 { margin-top: 36px; }
.article ul, .article ol { margin: 0 0 1em; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .img-slot { aspect-ratio: 16 / 9; border-radius: var(--radius); margin: 24px 0; }
.byline { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 24px; }

table.data { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data th { font-family: var(--font-body); font-weight: 600; background: var(--ink); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 44px 0 36px; }
  .section { padding: 38px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .person img { width: 120px; height: 120px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--border); color: var(--accent); }
  .header-inner { position: relative; }
  .signup-form { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .story .img-slot { width: 92px; height: 72px; }
  /* Tap targets stay at least 44px tall on mobile */
  .btn, input, .nav a { min-height: 44px; }
}
