:root {
  --ink: #0f1f23;
  --paper: #f7f5f2;
  --accent: #02313e;
  --accent-dark: #011b22;
  --muted: #6f7b80;
  --card: #ffffff;
  --line: #d9dde0;
  --shadow: 0 18px 40px rgba(2, 49, 62, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--accent);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 31, 35, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  transition: padding 0.25s ease;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header--scrolled {
  box-shadow: 0 16px 28px rgba(15, 31, 35, 0.12);
}

.site-header--scrolled .nav {
  padding: 10px 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.nav-links a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
}

.nav-links a:hover {
  border-color: var(--accent);
}

.image-logo {
  display: block;
  width: auto;
  height: 42px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  padding: 48px 0;
  align-items: center;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin: 0 0 12px;
  color: var(--ink);
}

.hero-card {
  background: var(--card);
  padding: 24px;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 40px 0 60px;
}

.about-section {
  padding: 80px 0 60px;
}

.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--line);
}

.post-meta {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-image {
  margin: 0 0 24px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--line);
}

.post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-image--empty {
  display: grid;
  place-items: center;
  background: #eef1f2;
  color: var(--muted);
  font-weight: 600;
}

.post-image--thumb {
  height: 238px;
  margin: -22px -22px 18px;
}

.post-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.tag-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.tag-filter__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.tag-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-filter__item {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.tag-filter__item.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.post-media {
  grid-column: 1;
}

.post-body {
  grid-column: 2 / 4;
}

.post-body small {
  font-size: 0.85em;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

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

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.ad-slot {
  background: #f2f4f5;
  border: 2px dashed var(--line);
  border-radius: 0;
  padding: 18px;
  text-align: center;
  color: var(--accent-dark);
  font-weight: 600;
}

.ad-slot--silent {
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.site-footer {
  margin-top: 60px;
  background: #181a1c; /*#141516; */
  color: #f4f1ed;
}

.footer-main {
  padding: 64px 0 56px;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.footer-name {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #f8f6f2;
}

.footer-text {
  max-width: 520px;
  color: #b7bdc0;
  margin: 0;
}

.footer-social {
  display: inline-flex;
  gap: 14px;
  margin-top: 6px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3a3f43;
  display: grid;
  place-items: center;
  color: #e3e7ea;
  background: #1f2326;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  color: #ffffff;
  border-color: #8a9297;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rss-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.rss-subscribe svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid #2a2e31;
  background: #141516;
  padding: 18px 0;
  color: #8f969a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
}

.footer-bottom a {
  color: #cfd4d7;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-sep {
  margin: 0 8px;
  color: #3a3f43;
}

.post-card__body {
  display: grid;
  gap: 10px;
}

.post-card__body .button {
  justify-self: start;
}

.about-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.about-photo-panel {
  background: var(--accent);
  position: relative;
  padding: 0;
  min-height: 520px;
}

.about-photo-frame {
  background: transparent;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
}

.about-photo-frame img {
  width: min(320px, 100%);
  height: auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.22);
}

.about-content {
  padding: 0;
  align-self: start;
}

.about-content h1 {
  margin-top: 0;
}

.stack {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .post-media,
  .post-body {
    grid-column: auto;
  }

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

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

  .about-photo-panel {
    padding: 28px;
  }
}
