:root {
  --bg: #f5f5f3;
  --bg-elevated: #ffffff;
  --text-main: #141414;
  --text-muted: #666666;
  --accent: #333333;
  --border-subtle: #e0e0dd;

  --radius-large: 18px;
  --radius-medium: 12px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.5;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 245, 243, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--accent);
  color: #f5f5f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.site-brand__subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background-color: var(--bg-elevated);
  color: var(--text-main);
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem 1.25rem;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.section-header p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero */

.hero {
  padding: 2rem 0 1.5rem;
}

.hero__inner {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.hero p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Featured */

.featured {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-large);
  background-color: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.featured__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}

.featured__image-wrapper {
  margin: 0;
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: #deded9;
}

.featured__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.featured__details {
  font-size: 0.95rem;
}

.featured__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.featured__meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.featured__description {
  margin: 0;
}

/* Collection */

.collection {
  margin-top: 2.25rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-button {
  border: 1px solid var(--border-subtle);
  background-color: #f9f9f7;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-button:hover {
  background-color: var(--bg-elevated);
  color: var(--text-main);
}

.filter-button--active {
  background-color: var(--accent);
  color: #f5f5f3;
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-medium);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.card__image-wrapper {
  margin: 0;
  background-color: #ddd;
}

.card__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: 0.75rem 0.8rem 0.9rem;
}

.card__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.card__meta {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.card__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-main);
}

/* Writing */

.writing {
  margin-top: 2.5rem;
}

.writing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.writing-item {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-medium);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
}

.writing-item__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.writing-item__meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.writing-item__excerpt {
  margin: 0;
  font-size: 0.9rem;
}

/* About */

.about {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.about__body {
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.about__body p {
  margin: 0 0 0.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 1rem 1.25rem 1.5rem;
}

/* Responsive adjustments */

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .featured__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .card__image {
    height: 200px;
  }
}
