@import url("https://fonts.bunny.net/css?family=Playfair+Display+SC:400,700,900&display=swap");
@import url("https://fonts.bunny.net/css?family=Playfair+Display:400,500,700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --panel: #fffaf2;
  --panel-border: #ddd0bd;
  --text: #2b231d;
  --muted: #6d5f54;
  --accent: #6b3f1f;
  --accent-soft: #8b6a52;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 252, 247, 0.9), transparent 28%),
    linear-gradient(180deg, #f8f2e7 0%, #efe4d0 100%);
  color: var(--text);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display SC", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.site-shell {
  width: min(84rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header,
.site-footer,
.post,
.card,
.intro,
.post-index {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 26px rgba(50, 32, 18, 0.06);
}

.site-header,
.site-footer,
.intro,
.post-index,
.post {
  padding: 1.25rem 1.5rem;
}

.site-header {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  padding: 0;
  background: var(--panel);
  text-align: center;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(107, 63, 31, 0.09), transparent 33%),
    radial-gradient(circle at left center, rgba(139, 106, 82, 0.08), transparent 24%);
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-banner {
  position: relative;
  width: 100%;
  height: clamp(11rem, 18vw, 16rem);
  overflow: hidden;
}

.site-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(0.92) contrast(1.02);
}

.site-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 28, 22, 0.08) 0%, rgba(37, 28, 22, 0.18) 35%, rgba(37, 28, 22, 0.62) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 35%);
}

.site-brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 1.5rem;
  color: #fff7eb;
  text-shadow: 0 2px 10px rgba(30, 20, 13, 0.45);
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 0 0 1rem 1rem;
  border-top: 0;
  margin-top: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  margin-left: auto;
  text-align: right;
}

.site-footer p:last-child {
  margin-right: auto;
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.site-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.8vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  max-width: none;
  white-space: nowrap;
}

.site-title a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.site-description {
  margin: 0;
  color: inherit;
  font-size: 1.02rem;
  max-width: 34rem;
}

.site-nav {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  border-top: 1px solid rgba(109, 95, 84, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(249, 241, 226, 0.98));
}

.site-nav a {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(109, 95, 84, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.6);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 250, 242, 0.95);
  border-color: rgba(107, 63, 31, 0.28);
}

.site-main {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.intro,
.post-index,
.post {
  border-radius: 1rem;
}

.post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem 2rem;
  align-items: start;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem 2rem;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.home-aside {
  position: sticky;
  top: 1rem;
  padding: 0.25rem 0 0;
}

.post-index h2,
.post-header h1 {
  margin-top: 0;
}

.home-posts {
  border: 1px solid rgba(109, 95, 84, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(249, 241, 226, 0.95));
}

.home-posts-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(109, 95, 84, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.88);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.section-link:hover {
  border-color: rgba(107, 63, 31, 0.34);
  background: rgba(255, 250, 242, 0.98);
  color: var(--accent-soft);
}

.articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem 2rem;
  align-items: start;
}

.articles-page {
  padding-bottom: 1.5rem;
}

.articles-page h2 {
  margin-top: 1.25rem;
}

.guestbook-layout {
  align-items: start;
}

.guestbook-form-card,
.guestbook-entry,
.guestbook-entries-section {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(109, 95, 84, 0.16);
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(255, 245, 233, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.guestbook-form-card + .guestbook-entries-section {
  margin-top: 1rem;
}

.guestbook-form-card h2,
.guestbook-entries-section h2 {
  margin-top: 0;
}

.guestbook-help {
  margin-top: 0;
  color: var(--muted);
}

.guestbook-form {
  display: grid;
  gap: 0.85rem;
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
  width: 100%;
}

.guestbook-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guestbook-status {
  margin-bottom: 0;
  color: var(--accent);
}

.guestbook-entries {
  display: grid;
  gap: 0.85rem;
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.guestbook-entry-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.guestbook-entry-header .meta {
  margin: 0;
  font-size: 0.85rem;
}

.guestbook-entry-note {
  color: var(--text);
  line-height: 1.65;
}

.guestbook-empty {
  margin: 0;
  color: var(--muted);
}

.page-tags {
  margin-top: 1.25rem;
}

.page-tags .aside-block {
  width: 100%;
}

.page-tags .tag-capsule {
  justify-content: center;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(109, 95, 84, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 245, 233, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.meta {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
}

.post-main {
  max-width: none;
}

.post-main p,
.post-main blockquote,
.post-main h2,
.post-main h3,
.post-main h4,
.post-main h5,
.post-main h6 {
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}

.post-main h2,
.post-main h3,
.post-main h4,
.post-main h5,
.post-main h6 {
  line-height: 1.2;
}

.post-main h2 {
  font-size: 1.6rem;
}

.post-main h3 {
  font-size: 1.35rem;
}

.post-main h4 {
  font-size: 1.15rem;
}

.post-main blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 0.25rem solid var(--panel-border);
  color: var(--muted);
}

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

.post-main pre,
.post-main code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.post-main pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f6efe4;
  border-radius: 0.5rem;
}

.post-aside {
  position: sticky;
  top: 1rem;
  padding: 0.25rem 0 0;
}

.aside-block + .aside-block {
  margin-top: 1.25rem;
}

.aside-label {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.aside-block {
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(246, 237, 221, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.tag-capsule {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-capsule li {
  margin: 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(109, 95, 84, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.95);
  color: var(--text);
  line-height: 1.1;
  font-size: 0.92rem;
  white-space: nowrap;
}

.tag-count {
  color: var(--muted);
  font-size: 0.8em;
}

.aside-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.93rem;
  line-height: 1.55;
}

.aside-list li + li {
  margin-top: 0.5rem;
}

.aside-markup > :first-child {
  margin-top: 0;
}

.aside-markup > :last-child {
  margin-bottom: 0;
}

.aside-markup [class^="gr_custom_container_"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.aside-markup [class^="gr_custom_header_"] {
  font-size: 0.95rem;
  line-height: 1.35;
}

.aside-markup [class^="gr_custom_each_container_"] {
  width: 100%;
}

.aside-markup [class^="gr_custom_book_container_"] {
  width: 42px !important;
}

.aside-markup [class^="gr_custom_title_"] {
  line-height: 1.35;
}

.aside-markup [class^="gr_custom_author_"],
.aside-markup [class^="gr_custom_tags_"] {
  font-size: 0.82rem;
  line-height: 1.4;
}

.aside-markup [class^="gr_custom_rating_"] {
  margin-left: 0.5rem;
}

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

.center {
  text-align: center;
}

.home-lede {
  position: relative;
  max-width: 60rem;
  margin: 0 auto 1.75rem;
  padding: 1.7rem 1.8rem 1.5rem;
  border: 1px solid rgba(109, 95, 84, 0.18);
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 32%),
    radial-gradient(circle at bottom right, rgba(139, 106, 82, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.99), rgba(246, 236, 219, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(50, 32, 18, 0.05);
  overflow: hidden;
}

.home-lede::before {
  content: "INTRODUCTION";
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--accent-soft);
}

.home-lede::after {
  content: "";
  position: absolute;
  top: 2.15rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(107, 63, 31, 0.18) 50%, transparent 100%);
  pointer-events: none;
}

.home-lede p {
  position: relative;
  margin: 0;
  padding-top: 0.9rem;
  font-size: 1.08rem;
  line-height: 1.92;
  text-align: center;
  text-wrap: balance;
}

.home-lede em {
  font-style: italic;
}

@media (max-width: 42rem) {
  .site-shell {
    width: min(100% - 1rem, 72rem);
    padding-top: 0.5rem;
  }

  .site-header {
    border-radius: 1rem;
  }

  .site-banner {
    height: 8.75rem;
  }

  .site-brand {
    padding: 0.75rem 0.85rem;
  }

  .site-header,
  .site-footer,
  .intro,
  .post-index,
  .post {
    padding: 1rem;
  }

  .post {
    grid-template-columns: 1fr;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .articles-layout {
    grid-template-columns: 1fr;
  }

  .post-aside {
    position: static;
  }

  .home-aside {
    position: static;
  }

  .guestbook-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
