.l-site {
  min-height: 100vh;
  background: var(--ciel-white);
}

.l-main,
.l-front {
  width: 100%;
}

.l-container {
  width: min(var(--ciel-container), calc(100% - 48px));
  margin-inline: auto;
}

.l-section {
  padding: 72px 0;
}

.l-section--compact {
  padding: 44px 0;
}

.l-section--paper {
  background: var(--ciel-paper);
}

/* =========================================================
   Page Layout
========================================================= */

.l-page {
  padding: 56px 0 72px;
}

.l-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.l-page__main {
  min-width: 0;
}

.l-page__side {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.l-page--single .l-page__grid,
.l-page--archive .l-page__grid {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.l-page--front {
  padding: 0;
}

/* =========================================================
   Titles
========================================================= */

.c-page-title {
  margin: 0 0 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ciel-line);
  color: var(--ciel-ink);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .08em;
}

.c-page-title__sub {
  display: block;
  margin-top: 8px;
  color: var(--ciel-muted);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.c-section-title {
  margin: 0 0 28px;
  color: var(--ciel-ink);
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .08em;
}

.c-section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 14px;
  background: var(--ciel-blue);
}

/* =========================================================
   Section
========================================================= */

.c-section {
  padding: 72px 0;
}

.c-section--paper {
  background: var(--ciel-paper);
}

.c-section__head {
  margin-bottom: 32px;
}

.c-section__eyebrow {
  margin: 0 0 8px;
  color: var(--ciel-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.c-section__title {
  margin: 0;
  color: var(--ciel-ink);
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
}

.c-section__lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ciel-muted);
  font-size: .95rem;
  line-height: 1.9;
}

/* =========================================================
   Side Navigation
========================================================= */

.c-side-nav {
  border-top: 1px solid var(--ciel-line);
  font-size: .86rem;
}

.c-side-nav__title {
  margin: 0 0 14px;
  color: var(--ciel-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.c-side-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--ciel-line);
  color: var(--ciel-ink);
  text-decoration: none;
}

.c-side-nav a:hover,
.c-side-nav a:focus-visible {
  color: var(--ciel-blue-deep);
  text-decoration: none;
}

.c-side-nav .is-current > a,
.c-side-nav a[aria-current="page"] {
  color: var(--ciel-blue-deep);
  font-weight: 600;
}

/* =========================================================
   Entry
========================================================= */

.c-entry__meta {
  margin: 0 0 10px;
  color: var(--ciel-muted);
  font-size: .78rem;
  line-height: 1.6;
  letter-spacing: .12em;
}

.c-entry__thumb {
  margin: 0 0 32px;
  background: var(--ciel-paper);
}

.c-entry__thumb img {
  width: 100%;
  height: auto;
}

.c-entry-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--ciel-line);
}

.c-entry-nav__item a {
  display: block;
  color: var(--ciel-ink);
  font-size: .9rem;
  line-height: 1.7;
  text-decoration: none;
}

.c-entry-nav__item a:hover,
.c-entry-nav__item a:focus-visible {
  color: var(--ciel-blue-deep);
  text-decoration: none;
}

.c-entry-nav__item span {
  display: block;
  margin-bottom: 5px;
  color: var(--ciel-muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.c-entry-nav__item--next {
  text-align: right;
}

/* =========================================================
   Cards
========================================================= */

.c-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.c-card {
  min-width: 0;
}

.c-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.c-card__link:hover,
.c-card__link:focus-visible {
  text-decoration: none;
}

.c-card__thumb {
  margin-bottom: 14px;
  background: var(--ciel-paper);
}

.c-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.c-card__meta {
  margin: 0 0 8px;
  color: var(--ciel-muted);
  font-size: .75rem;
  line-height: 1.6;
}

.c-card__title {
  margin: 0 0 10px;
  color: var(--ciel-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.c-card__excerpt {
  margin: 0;
  color: var(--ciel-muted);
  font-size: .9rem;
  line-height: 1.8;
}

/* =========================================================
   Button
========================================================= */

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--ciel-blue-deep);
  background: var(--ciel-blue-deep);
  color: var(--ciel-white);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-decoration: none;
}

.c-button:hover,
.c-button:focus-visible {
  background: var(--ciel-white);
  color: var(--ciel-blue-deep);
  text-decoration: none;
}

.c-button--ghost {
  background: transparent;
  color: var(--ciel-blue-deep);
}

.c-button--ghost:hover,
.c-button--ghost:focus-visible {
  background: var(--ciel-blue-deep);
  color: var(--ciel-white);
}

/* =========================================================
   Pager
========================================================= */

.c-pager {
  margin-top: 48px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 960px) {
  .c-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .l-container {
    width: min(100% - 28px, var(--ciel-container));
  }

  .l-section,
  .c-section {
    padding: 52px 0;
  }

  .l-section--compact {
    padding: 36px 0;
  }

  .l-page {
    padding: 40px 0 56px;
  }

  .l-page__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .l-page__side {
    position: static;
  }

  .c-page-title {
    margin-bottom: 28px;
    padding-bottom: 14px;
    letter-spacing: .06em;
  }

  .c-section__head {
    margin-bottom: 26px;
  }
}

@media (max-width: 560px) {
  .c-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .c-entry-nav {
    grid-template-columns: 1fr;
  }

  .c-entry-nav__item--next {
    text-align: left;
  }

  .c-button {
    width: 100%;
  }
}
