:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffdfa;
  --ink: #242321;
  --muted: #69645c;
  --line: #ded8cf;
  --accent: #1f6f68;
  --gold: #a86b0a;
  --shadow: 0 18px 45px rgba(36, 35, 33, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

.site-header,
.site-footer,
.app-shell {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--accent);
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 27px;
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.72);
}

.site-nav a {
  min-width: 72px;
  padding: 8px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
}

.app-shell {
  min-height: calc(100vh - 168px);
  padding: 34px 0 64px;
}

.home {
  max-width: 760px;
  margin-inline: auto;
}

.home-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  gap: 32px;
  align-items: end;
}

.home-description {
  max-width: 760px;
  margin-top: 36px;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 12vw, 6.75rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.lead {
  max-width: 61ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.prose {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose p,
.prose li {
  color: #3b3935;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose code {
  padding: 0.18em 0.32em;
  border-radius: 5px;
  background: #dcebe8;
  font-size: 0.92em;
}

.prose pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.recent-albums,
.writing-list,
.page {
  max-width: 760px;
  margin-inline: auto;
}

.recent-albums,
.writing-list {
  padding: 46px 0 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.section-heading a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.album-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.album-tile {
  display: flex;
  overflow: hidden;
  min-height: 230px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.album-tile .album-cover,
.album-tile .album-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.album-tile strong,
.album-tile small {
  margin-inline: 18px;
}

.album-tile strong {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.25;
}

.album-tile small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.post-list {
  display: grid;
  margin-top: 14px;
}

.post-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.post-row:first-child {
  border-top: 0;
}

.post-row strong {
  display: block;
  font-size: 1.05rem;
}

.post-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-row time,
.date {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.page-header {
  margin-bottom: 34px;
}

.page-header h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}

.wide {
  max-width: 980px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.album-card {
  display: flex;
  overflow: hidden;
  min-height: 230px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  color: var(--ink);
  text-decoration: none;
}

.album-cover,
.album-cover-placeholder {
  display: block;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(31, 111, 104, 0.18), rgba(168, 107, 10, 0.16)),
    var(--line);
}

.album-card .album-cover,
.album-card .album-cover-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}

.album-card-kicker,
.album-card strong,
.album-card p,
.album-card-footer {
  margin-inline: 22px;
}

.album-card-kicker,
.album-card-footer time {
  margin-top: 22px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.album-card strong {
  margin-top: 16px;
  font-size: 1.42rem;
  line-height: 1.18;
}

.album-card p {
  margin: 12px 22px 0;
  color: var(--muted);
  line-height: 1.6;
}

.album-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 22px;
  color: var(--accent);
  font-weight: 760;
}

.empty {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: space-between;
    border-radius: 8px;
  }

  .site-nav a {
    flex: 1;
  }

  .home-title-row,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .album-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portrait {
    max-width: 180px;
  }

  .post-row {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .site-header,
  .site-footer,
  .app-shell {
    width: min(100% - 24px, 1040px);
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  .album-strip {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
