:root {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

html,
body {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  --site-bg: #f6f1ea;
  --site-panel: #fbf8f3;
  --site-soft: #ecefe9;
  --site-ink: #111b1f;
  --site-muted: #596467;
  --site-line: rgba(17, 27, 31, 0.13);
  --site-accent: #b76f49;
  --site-deep: #073236;
  --site-deep-2: #0b4448;
  --site-content: min(100% - 48px, 820px);
  margin: 0;
  max-width: none;
  padding: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.auto,
body.light,
body.dark {
  color: var(--site-ink);
  background: var(--site-bg);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.content {
  min-height: auto !important;
}

body > .content {
  min-height: calc(100svh - 286px) !important;
}

body > header,
body > footer,
.content > header {
  width: 100%;
}

body > footer {
  display: block;
  align-items: stretch;
  justify-content: initial;
  max-height: none;
  font-size: inherit;
}

.main {
  width: var(--site-content);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 74px) 0 clamp(58px, 7vw, 86px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--site-line);
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  max-width: 240px;
  color: var(--site-ink);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 3.2vw, 44px);
  color: #1f2a2d;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.2;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
  transition: color 140ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--site-accent);
}

.site-header-cta,
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--site-deep), #08292d);
  color: #fffdf8;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(7, 50, 54, 0.15);
}

.site-header-cta:visited,
.site-header-cta:hover,
.site-button:visited,
.site-button:hover {
  color: #fffdf8;
}

.site-header-cta {
  justify-self: end;
  min-width: 136px;
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.breadcrumbs {
  margin: 0 0 24px;
  color: var(--site-muted);
  font-size: 13px;
}

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

.breadcrumbs a:hover {
  color: var(--site-accent);
}

.breadcrumbs-separator {
  margin: 0 8px;
  color: rgba(17, 27, 31, 0.32);
}

.single-intro-container {
  margin-bottom: 32px;
}

.single-title:empty {
  display: none;
}

.single-intro-container:has(.single-title:empty) {
  margin-bottom: 0;
}

.single-title,
.list-container > h1,
.site-page h1,
.single-content h1 {
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.single-content h1 {
  margin-bottom: 28px;
}

.heading .anchor {
  visibility: hidden;
  color: var(--site-muted);
  font-weight: 400;
  text-decoration: none;
}

.heading:hover .anchor {
  visibility: visible;
}

.single-summary {
  margin-top: 18px;
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1.55;
}

.single-subsummary {
  margin-top: 18px;
  color: var(--site-muted);
}

.single-date,
.author {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.4;
}

.single-content {
  color: #1f2b2f;
}

.single-content p,
.single-content li,
.list-container p,
.site-page p {
  color: #263337;
  font-size: 17px;
  line-height: 1.72;
}

.single-content p,
.single-content ul,
.single-content ol,
.single-content blockquote,
.single-content img,
.single-content pre,
.single-content table {
  margin-top: 0;
  margin-bottom: 24px;
}

.single-content h2 {
  margin: 44px 0 18px;
  color: var(--site-ink);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 720;
  line-height: 1.16;
}

.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  margin: 34px 0 14px;
  color: var(--site-ink);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 720;
  line-height: 1.2;
}

.single-content blockquote {
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--site-accent);
  color: #2c393d;
}

.single-content blockquote p {
  color: #2c393d;
}

.single-content a,
.list-container a,
.single-pagination a,
.pagination a {
  color: var(--site-deep);
}

.single-content a:hover,
.list-container a:hover,
.single-pagination a:hover,
.pagination a:hover {
  color: var(--site-accent);
}

.list-container {
  width: 100%;
}

.list-container > h1 {
  margin-bottom: 28px;
}

.post-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--site-line);
}

.post-line:last-of-type {
  border-bottom: 1px solid var(--site-line);
}

.line-date {
  margin: 0;
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  white-space: nowrap;
}

.line-title {
  margin: 0;
}

.line-title a {
  color: var(--site-ink);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
}

.line-title a:hover {
  color: var(--site-accent);
}

.line-summary {
  margin-top: 10px;
  color: var(--site-muted);
}

.single-pagination {
  margin-top: 42px;
}

.single-pagination hr,
.pagination hr,
hr {
  border: 0;
  height: 1px;
  margin: 28px 0;
  background: var(--site-line);
}

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

.single-pagination-prev,
.single-pagination-next {
  min-width: 0;
}

.single-pagination-next {
  text-align: right;
}

.single-pagination-text {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.45;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  color: var(--site-muted);
}

.back-to-top {
  margin-top: 28px;
  font-size: 13px;
}

.site-page {
  max-width: 660px;
}

.site-page p {
  margin: 18px 0 0;
}

.site-kicker {
  margin: 0 0 14px;
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-button {
  min-height: 46px;
  margin-top: 28px;
  padding: 0 20px;
  font-size: 15px;
}

.site-footer {
  width: 100%;
  padding: 48px clamp(24px, 5vw, 64px) 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.07), transparent 28%),
    linear-gradient(135deg, var(--site-deep), var(--site-deep-2));
  color: #f4f1e9;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) repeat(2, minmax(180px, 0.58fr));
  gap: clamp(28px, 5vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer-brand {
  margin: 0 0 14px;
  color: #fffdf8;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
}

.site-footer p {
  margin: 0;
  color: rgba(244, 241, 233, 0.76);
  font-size: 14px;
  line-height: 1.58;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 4px;
  border-top: 1px solid rgba(183, 111, 73, 0.58);
  font-size: 14px;
  line-height: 1.34;
}

.site-footer a {
  color: rgba(255, 253, 248, 0.88);
  font-weight: 520;
}

.site-footer-bottom {
  max-width: 1120px;
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer-bottom p {
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-header-cta {
    justify-self: start;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    --site-content: min(100% - 40px, 820px);
  }

  .main {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .site-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-brand {
    font-size: 21px;
  }

  .site-nav {
    gap: 12px 18px;
    font-size: 14px;
  }

  .site-header-cta {
    width: 100%;
  }

  .single-title,
  .list-container > h1,
  .site-page h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .single-content p,
  .single-content li,
  .list-container p,
  .site-page p {
    font-size: 16px;
    line-height: 1.68;
  }

  .post-line {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

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

  .single-pagination-next {
    text-align: left;
  }

  .site-footer {
    padding: 40px 20px 22px;
  }
}
