:root {
  --bg: #f4efe8;
  --ink: #1b1613;
  --muted: #6e6258;
  --accent: #8f3a2f;
  --line: rgba(27, 22, 19, 0.1);
  --card: #fffaf4;
  --header: #14110f;
  --max: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", Verdana, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.28;
  font-size: 0.98rem;
}

img { max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  width: 100%;
  background: var(--header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  min-width: 0;
  max-width: 100%;
}

.brand {
  color: #f6ecdf;
  text-decoration: none;
  display: grid;
  line-height: 1.05;
}
.brand-mark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: 1.35rem;
  font-style: italic;
}
.brand-sub {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a484;
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}
.nav a {
  color: rgba(246, 236, 223, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.nav a:hover { background: rgba(246, 236, 223, 0.1); color: #fff; }

main.wrap { padding: 2.5rem 0 4rem; }

main.wrap,
main.wrap :where(p, li, td, th, span, font, div, h1, h2, h3, h4, h5, figcaption, strong, em) {
  color: var(--ink);
}

main.wrap a { color: var(--accent); }

.site-header,
.site-header a,
.site-header .brand,
.site-header .brand-mark {
  color: #f6ecdf;
}

.sotw-card,
.sotw-card strong,
.sotw-card em { color: #f6ecdf; }
.sotw-card span { color: #c4a484; }

.welcome-line {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.home-tag { font-size: 1.02rem; max-width: 32rem; color: var(--muted); margin: 0 0 0.85rem; }
.home-tag em { color: var(--ink); font-style: italic; }

.cafe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.cafe-photo { margin: 0; }
.cafe-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
}
.cafe-photo figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.sotw-card {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.75rem;
  padding: 1.2rem 1.3rem;
  background: var(--header);
  color: #f6ecdf;
  text-decoration: none;
  border-radius: 1rem;
}
.sotw-card span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a484;
}
.sotw-card strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}
.sotw-card em { font-style: normal; color: rgba(246, 236, 223, 0.7); }

.home-picks { margin-top: 2.2rem; }
.home-picks h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.pick-grid a {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.pick-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.45rem;
  background: #ddd4c8;
}
.pick-grid span { font-weight: 650; line-height: 1.3; }
.pick-grid small { color: var(--muted); font-size: 0.85rem; }

.finder, .tools {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.25rem;
}
.finder input, .tools input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.finder button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.tools .count { color: var(--muted); white-space: nowrap; }

.prose.archived {
  max-width: none;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.28;
  overflow-wrap: break-word;
}
.prose.archived table,
.prose.archived tbody,
.prose.archived tr,
.prose.archived td,
.prose.archived th {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.prose.archived h1,
.prose.archived h2,
.prose.archived h3,
.prose.archived h4 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1.1rem 0 0.3rem;
  color: var(--ink) !important;
  font-size: 1.25rem;
}
.prose.archived p { margin: 0.55rem 0; color: var(--ink); line-height: 1.28; }
.prose.archived a { color: var(--accent); }
.prose.archived img {
  width: auto;
  max-width: min(180px, 100%);
  margin: 1rem 0;
  border-radius: 0.6rem;
  box-shadow: 0 10px 24px rgba(20, 17, 15, 0.12);
}
.prose.archived img[width="1"],
.prose.archived img[height="1"] { display: none; }
.prose.archived iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 1.25rem 0;
  border: 0;
  border-radius: 0.8rem;
  background: #000;
}

#song-catalog {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.8rem;
}
#song-catalog th {
  text-align: left;
  cursor: pointer;
  background: #efe4d4;
  padding: 0.75rem 0.7rem;
}
#song-catalog td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem;
  vertical-align: top;
}
#song-catalog a { color: var(--accent); text-decoration: none; }
#song-catalog a:hover { text-decoration: underline; }

.results { list-style: none; padding: 0; margin: 0; }
.results a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.results small { color: var(--muted); }

.source-rail {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.source-rail > td {
  display: flex !important;
  flex-direction: row;
  gap: 0.75rem;
  width: 100% !important;
  overflow-x: auto;
  max-height: 15rem;
  padding-bottom: 0.35rem;
}
.source-rail > td > p,
.source-rail > td > span {
  flex: 0 0 10.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}
.source-rail img {
  display: block;
  width: 7.5rem;
  max-width: 7.5rem;
  margin: 0 0 0.35rem;
}
.page-fold {
  margin: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.page-fold summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.55rem 0;
}
.page-fold table { margin-top: 0.4rem; }
.footer-inner { display: grid; gap: 0.25rem; }
.fine { font-size: 0.85rem; }

.reading {
  max-width: 40rem;
  margin: 0 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.2rem;
  line-height: 1.7;
}
.reading h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}
.reading h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 2rem 0 0.55rem;
}
.reading p { margin: 0 0 1.15em; }
.reading a { color: var(--accent); }
.reading ul { margin: 0 0 1.15em; padding-left: 1.25rem; }
.reading li { margin: 0.35rem 0; }
.reading blockquote {
  margin: 1.4rem 0 1.5rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--accent);
  color: #3c332c;
}
.reading blockquote p { margin: 0; }
.reading .notes {
  font-family: "Source Sans 3", Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}
.reading .video { margin: 1.5rem 0 1.75rem; }
.reading .video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.6rem;
  background: #000;
}

.reading .related {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: "Source Sans 3", Verdana, sans-serif;
}
.reading .related h2 {
  margin-top: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.reading .related ul { list-style: none; margin: 0; padding: 0; }
.reading .related li { margin: 0; border-bottom: 1px solid var(--line); }
.reading .related a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.35;
}
.reading .related a:hover { color: var(--accent); }

.reading .faq { margin-top: 2.25rem; }
.reading .faq h2 {
  margin-top: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.reading .faq h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 1.15rem 0 0.3rem;
}
.reading .cite {
  font-family: "Source Sans 3", Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 801px) {
  .prose.archived tr {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.5rem;
  }
  .prose.archived tr > td:nth-child(2) {
    flex: 1 1 100%;
    min-width: 0;
    width: auto !important;
  }
  .prose.archived tr > td:only-child {
    flex: 1 1 100%;
    width: 100% !important;
  }
}

.prose.archived tr > td:first-child:nth-last-child(2):has(img[src*="amazon"]) {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: 16rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
}
.prose.archived tr > td:first-child:nth-last-child(2):has(img[src*="amazon"]) > p,
.prose.archived tr > td:first-child:nth-last-child(2):has(img[src*="amazon"]) > span {
  flex: 0 0 10.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}
.prose.archived tr > td:first-child:nth-last-child(2):has(img[src*="amazon"]) img {
  display: block;
  width: 7.5rem;
  max-width: 7.5rem;
  height: auto;
  margin: 0 0 0.35rem;
}
@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .header-inner { min-height: 0; padding: 0.8rem 0; flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .cafe-hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-photo img { aspect-ratio: 3 / 4; max-height: 46vh; }
  #song-catalog { display: block; overflow-x: auto; font-size: 0.88rem; }
  h1 { font-size: 1.65rem; }
}
