/* Eidem Lab site — "Confident & Current" design system.
   Palette, type, and rationale recorded in CLAUDE.md. */

:root {
  --color-bg: #fafaf8;
  --color-surface: #f2f0ec;
  --color-text: #221f1d;
  --color-muted: #5c5652;
  --color-accent: #146b6b;
  --color-link: #146b6b;
  --color-border: #e5e1dc;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --content-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1c1a19;
    --color-surface: #262321;
    --color-text: #f2efec;
    --color-muted: #b8b0a8;
    --color-accent: #4fd1c5;
    --color-link: #4fd1c5;
    --color-border: #3a3532;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.4rem;
}

p, ul, ol {
  max-width: 68ch;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-accent);
  padding: 1rem 1.25rem;
}

.site-header nav {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.site-header .site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.site-header ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-header a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.site-header a:hover {
  border-bottom-color: var(--color-border);
}

.site-header a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

main h1 {
  margin-top: 0;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--color-accent);
  font-style: normal;
  margin: 0 0 1.5rem;
}

.pull-quote {
  margin: 3.5rem 0 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 4px 4px 0;
  max-width: none;
}

.pull-quote p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 66ch;
}

form {
  max-width: 32rem;
  margin: 1.5rem 0;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

form button {
  font: inherit;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
}

form button:hover {
  opacity: 0.9;
}

form button:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

.hero-photo {
  margin: 2rem 0;
  max-width: none;
}

.hero-photo img {
  width: 100%;
  border-radius: 8px;
}

.hero-photo figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: right;
}

.headshot {
  max-width: 220px;
  margin: 0 0 1.5rem;
}

.headshot img {
  width: 100%;
  border-radius: 8px;
}

.headshot figcaption {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.inline-photo {
  margin: 1.5rem 0;
}

.inline-photo img {
  width: 100%;
  border-radius: 8px;
}

.inline-photo figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: left;
}

.placeholder {
  border: 1px dashed var(--color-border);
  background: var(--color-surface);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: var(--color-muted);
  font-style: italic;
  max-width: none;
}

article {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

article:last-of-type {
  border-bottom: none;
}

article h2 {
  margin-top: 0;
}

li {
  margin-bottom: 0.4rem;
}

footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

small {
  color: var(--color-muted);
}
