/* ------------------------------------------------------------------
   Uke hOOt — "Jam Sessions" design system
   Palette:  paper #fbf6ec  •  ink #2a2422  •  rule #e6dccb
             muted #6b6357  •  honey #c8842a  •  heather #7a6388
   Type:    "Fraunces" for display, "Inter" for UI/body
   ------------------------------------------------------------------ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Inter:wght@400;500;600&display=swap");

:root {
  --paper: #fbf6ec;
  --ink: #2a2422;
  --rule: #e6dccb;
  --muted: #6b6357;
  --honey: #c8842a;
  --heather: #7a6388;
  --measure: 52rem;
  --measure-narrow: 38rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--honey);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------ Layout --------------------------- */
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* ------------------------------ Header --------------------------- */
header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

header.site a.brand {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
header.site a.brand:hover {
  text-decoration: none;
}

.mark {
  color: var(--ink);
}
.mark-hoot {
  color: var(--honey);
}

header.site a.brand em {
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

header.site nav {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

header.site nav a {
  color: var(--muted);
  margin-left: 1.25rem;
  font-weight: 500;
}

header.site nav a:hover,
header.site nav a.active {
  color: var(--ink);
  text-decoration: none;
}

/* ------------------------------ Intro ---------------------------- */
.intro {
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
}

.intro strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------ Year nav ------------------------- */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin: 0 0 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
}

.year-nav-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-right: 0.5rem;
  align-self: center;
}

.year-nav a {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
}
.year-nav a small {
  color: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
}

/* ------------------------------ Year blocks ---------------------- */
.year-block {
  margin: 0 0 3.5rem;
}

h2.year {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
h2.year a {
  color: inherit;
}
h2.year a:hover {
  color: var(--honey);
  text-decoration: none;
}

/* ------------------------------ Post list (cards) ---------------- */
ul.posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

ul.posts li {
  margin: 0;
}

a.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
  color: inherit;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(42, 36, 34, 0.08);
  border-color: var(--honey);
  text-decoration: none;
}

a.card .thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--rule);
  overflow: hidden;
}
a.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1rem;
}

a.card time {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

a.card .title {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.35;
}

/* ------------------------------ Article (post page) -------------- */
article.post {
  max-width: var(--measure-narrow);
  margin: 0 auto;
}

article.post h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

article.post .meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
}

article.post .meta time {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--heather);
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

article.post .post-body {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.7;
}

article.post .post-body p {
  margin: 0 0 1.1rem;
}

article.post .post-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

article.post .post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

article.post .post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 2px solid var(--honey);
  color: var(--muted);
  font-style: italic;
}

article.post .post-body img,
article.post .post-body video {
  border-radius: 4px;
  margin: 1.25rem 0;
}

/* ------------------------------ Photo grid ----------------------- */
.photos {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}
.photos figure {
  margin: 0;
}
.photos img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.photos.photos-1 {
  grid-template-columns: 1fr;
}
.photos.photos-2 {
  grid-template-columns: 1fr 1fr;
}
.photos.photos-3,
.photos.photos-4,
.photos.photos-5,
.photos.photos-6,
.photos.photos-7,
.photos.photos-8,
.photos.photos-9,
.photos.photos-10 {
  grid-template-columns: repeat(2, 1fr);
}

.video {
  margin: 0 0 1.5rem;
}
.video video {
  width: 100%;
  border-radius: 4px;
  background: #000;
}

.external-link {
  font-size: 1.1rem;
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 1.5rem;
}

.big-quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  border-left: 3px solid var(--heather);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.big-quote cite {
  display: block;
  font-size: 0.92rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 0.5rem;
}

.original-link {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
}
.original-link a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

/* ------------------------------ Footer --------------------------- */
footer.site {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer.site a {
  color: var(--muted);
}
footer.site a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ------------------------------ Small screens -------------------- */
@media (max-width: 32rem) {
  ul.posts {
    grid-template-columns: 1fr 1fr;
  }
  h2.year {
    font-size: 2rem;
  }
  .photos.photos-2,
  .photos.photos-3,
  .photos.photos-4,
  .photos.photos-5,
  .photos.photos-6,
  .photos.photos-7,
  .photos.photos-8,
  .photos.photos-9,
  .photos.photos-10 {
    grid-template-columns: 1fr;
  }
}
