@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Geist:wght@300;400;500&display=swap');

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

:root {
  --bg: #111110;
  --surface: #1a1918;
  --rule: #2a2927;
  --text: #e8e4dc;
  --muted: #6b6860;
  --subtle: #3a3836;
  --accent: #6b8cce;
  --accent-dim: #3d5280;
  --max-w: 660px;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Geist', system-ui, sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
}

body {
  min-height: 100vh;
  padding: 4rem 1.5rem 6rem;
}

.site-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Header / Nav ── */

header {
  margin-bottom: 3.5rem;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  color: var(--text);
}

header h1 a {
  color: inherit;
  text-decoration: none;
  transition: text-shadow 0.4s ease;
}

header h1 a:hover {
  text-shadow: 0 0 10px rgba(107, 140, 206, 0.45), 0 0 22px rgba(107, 140, 206, 0.2);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

nav a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.6rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent-dim);
}

/* ── Prose ── */

.prose p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

/* ── Section label ── */

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

/* ── Post page ── */

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.post-tag {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 2px;
}

/* ── Writing page ── */

.writing-section {
  margin-bottom: 3rem;
}

.writing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.writing-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.writing-item:first-child {
  border-top: 1px solid var(--rule);
}

.writing-item a {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s;
}

.writing-item a:hover {
  color: var(--accent);
}

.writing-item .venue {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.writing-item .badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: #1a2640;
  padding: 2px 7px;
  border-radius: 2px;
  margin-right: 0.5rem;
}

/* ── Photography ── */

.photo-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.photo-item {
  margin-bottom: 2.2rem;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
  filter: brightness(0.95);
  transition: filter 0.2s;
}

.photo-item img:hover {
  filter: brightness(1);
}

.photo-item figcaption {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.5rem;
}

.photo-item figcaption .photo-desc {
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  margin-top: 0.15rem;
}

/* ── Music page ── */

.music-section {
  margin-bottom: 3rem;
}

.embed-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
}

.embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

.embed-wrap.video {
  position: relative;
  padding-top: 56.25%;
}

.embed-wrap.video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.music-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1rem;
}

.music-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.music-links a {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.music-links a:hover {
  color: var(--text);
}

/* ── Recommendations ── */

.rec-section {
  margin-bottom: 2.8rem;
}

.rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rec-item img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.rec-item.sq img {
  height: 44px;
}

.rec-meta strong {
  display: block;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.rec-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
  display: block;
}

/* ── Contact form ── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-dim);
  outline: none;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
  align-self: flex-start;
}

.form-submit:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── Footer ── */

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 500px) {
  body { padding: 2.5rem 1.2rem 4rem; }
  header { margin-bottom: 2.5rem; }
  .writing-item { flex-wrap: wrap; gap: 0.3rem; }
}
