/* Ben Weatherman — site styles */

/* ---- shared tokens ---- */
:root {
  --accent: #ff6b6b;
  --accent2: #ffa94d;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --radius: 16px;
  --maxw: 860px;
  --display: 'Bricolage Grotesque', sans-serif;
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #fff);
  --header-glow1: color-mix(in srgb, var(--accent) 28%, transparent);
  --header-glow2: color-mix(in srgb, var(--accent2) 16%, transparent);
}

/* ---- résumé: dark skin (default) ---- */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --panel: #121219;
  --panel-2: #15151e;
  --border: #23232e;
  --fg: #e6e6ef;
  --muted: #9aa0b0;
  --faint: #6c7280;
  --tag-bg: rgba(255, 255, 255, 0.03);
  --chip-bg: rgba(255, 255, 255, 0.04);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --accent-ink: color-mix(in srgb, var(--accent) 82%, #fff);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* ---- résumé: light skin ---- */
[data-theme="light"] {
  --bg: #f4f5f8;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --border: #dfe3ec;
  --fg: #16202b;
  --muted: #44505f;
  --faint: #69727f;
  --tag-bg: #f4f5f8;
  --chip-bg: #f4f5f8;
  --shadow: 0 20px 50px rgba(28, 37, 48, 0.10);
  --accent-ink: color-mix(in srgb, var(--accent) 72%, #000);
  --header-glow1: color-mix(in srgb, var(--accent) 18%, transparent);
  --header-glow2: color-mix(in srgb, var(--accent2) 14%, transparent);
  --grad: linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 80%, #000),
            color-mix(in srgb, var(--accent2) 64%, #000));
}

/* ---- shared base ---- */
* { box-sizing: border-box; }
html { color-scheme: dark light; }
body {
  margin: 0;
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

/* ======================================================================
   LANDING  (body.landing)
   ====================================================================== */
body.landing {
  --fg: #e9e9f0;
  --muted: #c4c8d4;
  --panel: rgba(13, 13, 19, 0.58);
  --border: rgba(255, 255, 255, 0.12);
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 24px 44px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0) 42%),
    url(/images/fatchops.jpg) no-repeat center center fixed;
  background-size: cover;
}

.splash {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 38px 36px 32px;
  overflow: hidden;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.splash::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.splash h1 {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.splash .sub {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 16px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}
.links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-ink);
  text-decoration: none;
  transition: color .15s ease;
}
.links a:hover { color: color-mix(in srgb, var(--accent) 45%, #fff); text-decoration: underline; }
.links .sep { color: var(--muted); opacity: .55; }

/* ======================================================================
   RÉSUMÉ  (body.resume)
   ====================================================================== */
body.resume {
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
  padding: 48px 16px;
  transition: background .35s ease, color .35s ease;
}
.page { max-width: var(--maxw); margin: 0 auto; }

/* ---- theme toggle ---- */
.toggle {
  position: fixed; top: 18px; right: 18px; z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 'Inter', sans-serif; color: var(--fg);
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.toggle:hover { transform: translateY(-1px); }
.toggle svg { width: 15px; height: 15px; }
[data-theme="dark"] .toggle .sun { display: none; }
[data-theme="light"] .toggle .moon { display: none; }

/* ---- header ---- */
header {
  position: relative;
  padding: 40px 40px 32px;
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 100% 0%, var(--header-glow1), transparent),
    radial-gradient(500px 300px at 0% 120%, var(--header-glow2), transparent),
    var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background .35s ease, border-color .35s ease;
}
header::after {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: 3px; background: var(--grad);
}
.head-row { display: flex; align-items: center; gap: 26px; }
.avatar {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.head-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
h1 {
  font-family: var(--display);
  font-size: 46px; font-weight: 700; margin: 0;
  letter-spacing: -0.02em; line-height: 1.0;
}
/* nudge the chip row so its text aligns under the name's first glyph */
.contact { display: flex; flex-wrap: wrap; gap: 8px; margin-left: -1px; }
.chip {
  font-size: 13px; color: var(--fg);
  background: var(--chip-bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
}
.chip a { color: inherit; }

/* ---- sections ---- */
section { margin-top: 34px; }
.section-title {
  font-family: var(--display);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; color: var(--muted); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.lede { color: var(--fg); margin: 0; }

/* ---- cards ---- */
.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px;
  transition: border-color .2s, background .35s ease;
}
.card:hover { border-color: var(--accent); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.role { font-family: var(--display); font-weight: 600; font-size: 18px; }
.role a { color: inherit; font-weight: inherit; }
.co { color: var(--accent-ink); font-weight: 600; }
.co a { color: inherit; }
.loc { color: var(--faint); font-weight: 400; font-size: 14px; }
.when { color: var(--faint); font-size: 13px; white-space: nowrap; }
.desc { color: var(--muted); margin: 6px 0 12px; }

ul { margin: 0; padding: 0; list-style: none; }
li { position: relative; padding-left: 22px; margin-bottom: 6px; }
li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}

/* ---- tag rows (tech, personality) ---- */
.tech { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tech b { font-size: 12px; color: var(--faint); font-weight: 600; margin-right: 2px; }
.tag {
  font-size: 12px; color: var(--muted);
  background: var(--tag-bg);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 9px;
}
.tag.hl { color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* ---- footer ---- */
.footer { max-width: var(--maxw); margin: 40px auto 0; text-align: center; }
.footer small { color: var(--faint); font-size: 12px; }
.footer a { color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 560px) {
  body.resume { padding: 24px 12px; }
  header { padding: 28px 22px 24px; }
  h1 { font-size: 32px; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .row { flex-direction: column; }
  .when { order: -1; }
  .card { padding: 18px 18px; }
}

/* ---- print (résumé) ---- */
@media print {
  body.resume { background: #fff; color: #000; padding: 0; font-size: 11.5px; }
  .toggle { display: none; }
  header {
    background: #fff; border: none; border-bottom: 2px solid var(--accent);
    border-radius: 0; padding: 0 0 16px;
  }
  header::after { display: none; }
  .avatar { width: 64px; height: 64px; box-shadow: none; }
  h1 { font-size: 28px; }
  .section-title { color: #000; }
  .card {
    border: 1px solid #ddd; box-shadow: none; transform: none;
    page-break-inside: avoid; margin-bottom: 10px; padding: 12px 14px;
  }
  .card:hover { transform: none; }
  .co, a { color: #c2410c; }
  .desc, .muted, li, .lede { color: #222; }
  .chip, .tag { background: #fff; border-color: #ccc; color: #333; }
  .tag.hl { color: #c2410c; border-color: #c2410c; }
  li::before { background: #c2410c; }
}
