/* danielklass.com — shared stylesheet */
:root {
  color-scheme: light dark;
  --bg: #fdfdfb;
  --ink: #232323;
  --muted: #5a5a5a;
  --faint: #8b8b8b;
  --line: #dedbd2;
  --link: #1a5fb4;
  --pine: #2f5d3a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1814;
    --ink: #e9e1d0;
    --muted: #b6ab93;
    --faint: #857a64;
    --line: #38332a;
    --link: #9dbcf5;
    --pine: #7fa88a;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fdfdfb;
  --ink: #232323;
  --muted: #5a5a5a;
  --faint: #8b8b8b;
  --line: #dedbd2;
  --link: #1a5fb4;
  --pine: #2f5d3a;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1814;
  --ink: #e9e1d0;
  --muted: #b6ab93;
  --faint: #857a64;
  --line: #38332a;
  --link: #9dbcf5;
  --pine: #7fa88a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Garamond, 'EB Garamond', 'Adobe Garamond Pro', 'Apple Garamond', 'Times New Roman', serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

::selection { background: var(--pine); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

header {
  text-align: center;
  padding: 3.5rem 1.5rem 1rem;
}
header h1 {
  margin: 0;
  font-family: 'Fraunces', Garamond, Georgia, serif;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
header h1 a { color: var(--ink); text-decoration: none; }

.social {
  text-align: center;
  padding: 0 1.5rem 0.5rem;
  font-size: 1rem;
}
.social a {
  margin: 0 0.55rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.social a:hover { text-decoration: underline; }

nav {
  text-align: center;
  padding: 0.75rem 1.5rem 1rem;
}
nav a {
  margin: 0 0.65rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.02rem;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
nav a:hover { text-decoration: underline; }
nav a.current { font-weight: bold; color: var(--ink); }

#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}
#theme-toggle:hover { color: var(--ink); border-color: var(--muted); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
main.wide { max-width: 1100px; }

h2 {
  font-family: 'Fraunces', Garamond, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  margin-top: 0.5rem;
}
h3 { font-size: 1.2rem; margin-top: 1.8rem; }

figure { margin: 1.75rem 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--faint);
  margin-top: 0.5rem;
  font-style: italic;
}

p { margin: 1.1rem 0; font-size: 1.06rem; }
li { font-size: 1.02rem; margin: 0.35rem 0; }
a { color: var(--link); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid a { text-decoration: none; }
.gallery-grid img { width: 100%; height: 210px; object-fit: cover; border-radius: 6px; }
.gallery-grid figcaption { font-size: 0.85rem; }
.gal-card { display: block; color: var(--ink); text-decoration: none; }

footer {
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
  padding: 0 1.5rem 2.5rem;
}
