/* travismasingale.info — page styles
   Tokens come from foundry.css. Anything in here is page-specific layout. */

/* ---------- bones ---------- */

html { scroll-behavior: smooth; }
body { margin: 0; }

.page {
  min-height: 100vh;
  background: var(--f-bg);
  color: var(--f-ink);
  font-family: var(--f-sans);
}

.shell {
  max-width: var(--f-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--f-surface);
  border-bottom: 1px solid var(--f-hairline);
}

.topbar-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--f-ink);
  text-decoration: none;
}

.lockup .text {
  display: grid;
  gap: 1px;
}

.lockup .text strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.lockup .text span {
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

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

.nav a {
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}

.nav a:hover {
  border-color: var(--f-rule);
}

.nav a[aria-current="page"] {
  background: var(--f-rule);
  color: var(--f-ink-inverse);
  border-color: var(--f-rule);
}

.topbar-sub {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 clamp(16px, 3vw, 36px);
  border-top: 1px solid var(--f-hairline);
  background: var(--f-surface-subtle);
  overflow-x: auto;
}

.topbar-sub a {
  display: inline-flex;
  align-items: center;
  color: var(--f-muted);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  padding: 11px 14px;
  border-right: 1px solid var(--f-hairline);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.topbar-sub a:first-child {
  border-left: 1px solid var(--f-hairline);
}

.topbar-sub a:hover {
  color: var(--f-ink);
  background: var(--f-surface);
}

.top-actions { display: inline-flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(72px, 11vw, 144px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--f-hairline);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-name {
  margin: 0 0 24px;
  font-size: clamp(56px, 11vw, 144px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-name span {
  display: block;
  color: var(--f-ink);
}

.hero-name .second { color: var(--f-soft); }

.hero-lede {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--f-muted);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* anchor styled as an f-tag (e.g., the EWU link in the hero) */
a.f-tag,
a.f-tag--link {
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

a.f-tag:hover,
a.f-tag--link:hover {
  background: var(--f-surface-subtle);
  border-color: var(--f-rule);
}

/* ---------- section primitives ---------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--f-hairline);
}

.section:last-of-type { border-bottom: 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.section-number {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 34px;
  background: var(--f-rule);
  color: var(--f-ink-inverse);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0 10px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 850;
  line-height: 1;
}

.section-note {
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--f-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- layout helpers ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- areas (about) ---------- */

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
}

.area {
  padding: 20px 18px;
  border-right: 1px solid var(--f-hairline);
  border-bottom: 1px solid var(--f-hairline);
}

.area:last-child { border-right: 0; }

.area-label {
  display: block;
  margin-bottom: 6px;
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.area-text {
  color: var(--f-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- now ---------- */

.now-card {
  border: 1px solid var(--f-hairline);
  border-left: 6px solid var(--f-accent);
  background: var(--f-surface);
  padding: 28px;
}

.now-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
}

.now-card p {
  margin: 0 0 12px;
  color: var(--f-muted);
  font-size: 16px;
  line-height: 1.55;
}

.now-card p:last-child { margin-bottom: 0; }

.now-card + .now-card { margin-top: 16px; }

.now-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- timeline / table-wrap ---------- */

.timeline {
  width: 100%;
  border-collapse: collapse;
}

.timeline th {
  padding: 12px 12px;
  border-bottom: 3px solid var(--f-rule);
  background: var(--f-surface-subtle);
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.timeline td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--f-hairline);
  color: var(--f-muted);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
}

.timeline td:first-child {
  width: 110px;
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.timeline td strong { color: var(--f-ink); font-weight: 750; }

.timeline tr:last-child td { border-bottom: 0; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
}

/* ---------- education ---------- */

.ed-list {
  display: grid;
  gap: 16px;
}

.ed-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--f-hairline);
}

.ed-item:last-child { border-bottom: 0; }

.ed-year {
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 850;
}

.ed-degree {
  margin: 0 0 4px;
  color: var(--f-ink);
  font-size: 17px;
  font-weight: 750;
}

.ed-school {
  color: var(--f-muted);
  font-size: 14px;
}

/* ---------- awards ---------- */

.awards {
  display: grid;
  gap: 12px;
}

.award {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--f-hairline);
}

.award:last-child { border-bottom: 0; }

.award-year {
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 850;
}

.award-text {
  color: var(--f-muted);
  font-size: 15px;
  line-height: 1.5;
}

.award-text strong { color: var(--f-ink); font-weight: 750; }

/* ---------- contact (form + alt channels) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
  padding: clamp(20px, 3vw, 28px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--f-sans);
  line-height: 1.5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--f-soft);
  opacity: 1;
}

/* honeypot — visually hidden but reachable to bots that ignore display:none */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-actions .f-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.contact-status {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--f-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 16px;
}

.contact-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transition: opacity .15s ease;
}

.contact-status[data-state]::before { opacity: 1; }
.contact-status[data-state="sending"] { color: var(--f-muted); }
.contact-status[data-state="success"] { color: var(--f-success); }
.contact-status[data-state="error"]   { color: var(--f-danger); }

.contact-alts {
  display: grid;
  gap: 0;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
}

.alt-heading {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--f-hairline);
  background: var(--f-surface-subtle);
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.alt-link {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--f-hairline);
  color: var(--f-ink);
  text-decoration: none;
  transition: background .15s ease;
}

.alt-link:last-child { border-bottom: 0; }
.alt-link:hover { background: var(--f-surface-subtle); }

.connect-label {
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.connect-handle {
  color: var(--f-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

/* ---------- footer ---------- */

.footer {
  padding: 32px clamp(16px, 3vw, 36px);
  border-top: 1px solid var(--f-hairline);
  background: var(--f-surface);
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .nav a { padding: 8px 10px; font-size: 12px; }
  .lockup .text span { display: none; }
  .topbar-sub { padding: 0 8px; }
  .topbar-sub a { padding: 10px 10px; font-size: 10px; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ed-item, .award { grid-template-columns: 1fr; gap: 4px; }
  .timeline td:first-child { width: auto; }
  .section-head { grid-template-columns: auto 1fr; }
  .section-note { display: none; }
}
