:root {
  --fd-color-ink: #171717;
  --fd-color-muted: #626262;
  --fd-color-surface: #ffffff;
  --fd-color-surface-subtle: #f5f5f3;
  --fd-color-line: #deded9;
  --fd-color-accent: #1f4fa3;
  --fd-container: 1200px;
  --fd-gutter: clamp(1.25rem, 4vw, 3rem);
  --fd-radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fd-color-surface);
  color: var(--fd-color-ink);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

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

.site-container {
  width: min(100% - (var(--fd-gutter) * 2), var(--fd-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--fd-color-ink);
  color: #fff;
}

.site-header,
.site-footer {
  border-color: var(--fd-color-line);
  border-style: solid;
}

.site-header {
  border-width: 0 0 1px;
}

.site-header__inner,
.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__inner {
  min-height: 5rem;
}

.site-brand .custom-logo-link {
  display: block;
}

.site-brand .custom-logo {
  width: auto;
  max-height: 3rem;
}

.site-brand__name {
  color: var(--fd-color-ink);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.site-navigation .menu,
.site-footer .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation a,
.site-footer a {
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-main {
  min-height: 50vh;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.entry,
.archive-header,
.empty-state {
  max-width: 840px;
}

.entry__header,
.archive-header {
  margin-bottom: 2rem;
}

.entry__title,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.entry__media {
  margin-bottom: 2rem;
}

.entry__content > * + * {
  margin-top: 1.25rem;
}

.content-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--fd-color-line);
  border-radius: var(--fd-radius);
  background: var(--fd-color-surface);
}

.content-card__media {
  display: block;
}

.content-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-card__body {
  padding: 1.25rem;
}

.content-card__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.content-card__title a {
  text-decoration: none;
}

.content-card__excerpt {
  margin-top: 0.75rem;
  color: var(--fd-color-muted);
}

.site-footer {
  border-width: 1px 0 0;
  background: var(--fd-color-surface-subtle);
}

.site-footer__inner {
  padding-block: 2rem;
}

.site-footer__widgets {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer__meta p {
  margin: 0;
  color: var(--fd-color-muted);
  font-size: 0.875rem;
}

.footer-widget__title {
  font-size: 1rem;
}

.empty-state {
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--fd-radius);
  background: var(--fd-color-surface-subtle);
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__meta {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding-block: 1.25rem;
  }

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