:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --max: 1100px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --text: #f2f2f2; --muted: #a0a0a0; --line: #2a2a2a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

header {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.logo img { display: block; height: 64px; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: currentColor; }

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
main.narrow { max-width: 720px; }
h1, h2 { font-weight: 500; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
.lede { font-weight: 600; }

.hero { display: block; width: 100%; height: auto; }

.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { border-top: 1px solid var(--line); }
.work-list li:last-child { border-bottom: 1px solid var(--line); }
.work-list a {
  display: block;
  padding: 1.25rem 0;
  font-size: 1.75rem;
  text-decoration: none;
}
.work-list a:hover { text-decoration: underline; text-underline-offset: 6px; }

.project img { display: block; max-width: 100%; height: auto; margin: 2rem 0; }
.project-nav { margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; }

form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
label { display: grid; gap: .35rem; font-size: .95rem; }
input, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--muted);
  padding: .65rem .75rem;
  border-radius: 0;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
textarea { min-height: 9rem; resize: vertical; }
button {
  font: inherit;
  justify-self: start;
  background: var(--text);
  color: var(--bg);
  border: 0;
  padding: .75rem 1.75rem;
  cursor: pointer;
}
button:hover { opacity: .85; }

footer {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  .work-list a { font-size: 1.35rem; }
  nav ul { gap: 1.25rem; }
}

/* ---- Blog: Mormon Folklore ---- */
.post-list { display: grid; gap: 3.5rem; margin-top: 2rem; }
.post-card img { display: block; width: 100%; height: auto; margin-bottom: 1rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 .25rem; }
.post-card h2 { margin: 0 0 .5rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-card p { margin: 0 0 .75rem; }

.post h1 { margin-bottom: .25rem; }
.post .post-meta { margin-bottom: 2rem; }
.post figure { margin: 2rem 0; }
.post figure img { display: block; max-width: 100%; height: auto; margin: 0; }
.post figcaption { font-style: italic; color: var(--muted); font-size: .95rem; margin-top: .5rem; }
.post h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .5rem; }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
