/* Bryan Davis portfolio: shared stylesheet */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #55606b;
  --accent: #0f6b6b;
  --accent-ink: #ffffff;
  --border: #e3ded4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181b;
    --surface: #1c2226;
    --text: #e8e6e1;
    --muted: #a7b0b8;
    --accent: #5fc4c0;
    --accent-ink: #0b1416;
    --border: #2d363b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Main content */
main { padding: 2.5rem 0 3.5rem; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: 1.6rem; margin-top: 2.25rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: 2.5rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.button:hover { filter: brightness(1.08); }
.button.secondary {
  background: transparent;
  color: var(--accent);
}

/* Photo placeholder: replace the div with an <img> when you have a photo. */
.photo {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  padding: 1rem;
  justify-self: end;
}
img.photo {
  object-fit: cover;
  border-style: solid;
  padding: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 0.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Text pages */
.prose { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }

.job { margin-bottom: 1.25rem; }
.job h3 { margin-bottom: 0.15rem; }
.job .dates { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }

@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; }
  .photo { justify-self: start; max-width: 12rem; order: -1; }
  main { padding-top: 1.75rem; }
}

@media print {
  .site-nav, .skip-link, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
}
