@font-face {
  font-family: "Figtree";
  src: url("https://s2.wp.com/wp-content/themes/pub/retrospect/assets/fonts/figtree/Figtree-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #111111;
  --muted: #7b7b7b;
  --line: #dddddd;
  --soft: #f6f6f4;
  --accent: #333333;
  --measure: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Figtree", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 32px), var(--measure));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0 24px;
}

.site-identity {
  grid-column: 2;
  text-align: center;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 2px;
}

.site-tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.header-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-transform: lowercase;
}

.hero-banner {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.hero-banner img {
  width: 100%;
  height: clamp(300px, 54vw, 529px);
  object-fit: cover;
  object-position: 50% 0%;
}

.page-shell {
  width: min(calc(100% - 32px), var(--measure));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 0.8fr);
  gap: 34px;
  padding: 38px 0 24px;
}

.content-column {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.empty-posts {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-posts p {
  margin: 0;
}

.post-item {
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 4vw, 48px) clamp(20px, 4vw, 42px);
}

.post-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.post-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 750;
}

.post-date {
  color: var(--muted);
  font-size: 13px;
}

.post-summary {
  margin: 0 0 20px;
  color: #242424;
  max-width: 62ch;
}

.post-media {
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.post-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
}

.sidebar {
  padding-top: 2px;
}

.sidebar-section {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
}

.sidebar-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.about-block {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
}

.about-block img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.about-block p {
  margin: 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.link-list a {
  color: var(--accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.calendar-grid span {
  padding: 4px 0;
  border-bottom: 1px solid #eeeeee;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  border: 1px solid var(--line);
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 650;
}

.site-footer {
  width: min(calc(100% - 32px), var(--measure));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 38px;
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-poem {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--foreground);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

  .header-inner {
    width: min(calc(100% - 32px), var(--measure));
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0 18px;
  }

  .site-identity {
    position: static;
    grid-column: auto;
    justify-self: center;
    transform: none;
    background: transparent;
    color: var(--foreground);
    text-align: center;
  }

  .site-title {
    padding: 0;
    font-size: clamp(34px, 10vw, 42px);
    letter-spacing: 1.5px;
  }

  .site-tagline {
    margin: 8px 0 0;
    border-top: 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
  }

  .header-nav {
    grid-column: auto;
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: var(--accent);
    font-size: 13px;
  }

  .hero-banner {
    position: relative;
    border-bottom: 0;
    margin-bottom: 0;
  }

  .hero-banner img {
    height: min(136vw, 760px);
    object-position: 50% 0%;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }

  .sidebar-section {
    text-align: center;
  }

  .about-block {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .content-column {
    margin-inline: -16px;
    border-left: 0;
    border-right: 0;
  }

  .post-item {
    padding-inline: 16px;
  }

  .about-block {
    grid-template-columns: 46px 1fr;
    justify-content: center;
  }

  .about-block img {
    width: 46px;
    height: 46px;
  }

  .sidebar .about-block {
    grid-template-columns: 46px auto;
    justify-content: center;
    justify-items: center;
  }
}
