:root {
  --ink: #1d2327;
  --muted: #5b6670;
  --bg: #fbfaf7;
  --alt: #f1eee7;
  --line: #e2ddd2;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --radius: 10px;
  --max: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.name { font-family: Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.lede { font-size: 1.2rem; color: var(--ink); }

.headshot { position: relative; margin: 0; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; background: var(--alt); border: 1px solid var(--line); order: -1; }
.headshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headshot-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 3rem; color: var(--muted); }
.headshot.missing img { display: none; }
.headshot.missing .headshot-fallback { display: flex; }

@media (min-width: 760px) {
  :root { --max: 860px; }
  .intro { grid-template-columns: 1fr 240px; }
  .headshot { width: 240px; height: 240px; order: 0; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: 0.7rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 0.98rem; background: transparent;
}
.btn:hover { background: rgba(47, 93, 80, 0.08); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #244a40; }

/* Sections */
.block { padding: 3.25rem 0; border-top: 1px solid var(--line); }
.block.alt { background: var(--alt); }

.motto {
  font-family: Georgia, serif; font-size: 1.35rem; font-style: italic;
  border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; margin: 1.5rem 0;
}

.links { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.links li { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a { font-weight: 600; }
.links span { display: block; color: var(--muted); font-size: 0.95rem; }

.creds { padding-left: 1.2rem; margin: 0 0 1em; }
.creds li { margin-bottom: 0.3rem; }

.placeholder-note { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 0.4rem; }
.small { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.badges-title{margin-top:1.5rem;font-size:1rem}
.badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:.5rem}
.badges a{display:block;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.12);transition:transform .15s}
.badges a:hover{transform:translateY(-2px)}
.badges img{display:block;width:100%;height:auto}

.looper-logo{display:inline-block;margin:.25rem 0 1rem}
.looper-logo img{display:block;width:220px;max-width:60%;height:auto}
