:root {
  --ink: #33413d;
  --muted: #586762;
  --bg: #f7f7f2;
  --white: #fff;
  --sage: #dbe8d9;
  --sage-deep: #55775c;
  --lavender: #e8e2f3;
  --line: #dfe4de;
  --shadow: 0 18px 50px rgb(51 65 61 / 8%);
  --sans: "Hiragino Sans", "Yu Gothic", sans-serif;
  --rounded: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", var(--sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

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

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 22px;
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--rounded);
  font-weight: 800;
}

.brand-flower {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.brand-flower::before,
.brand-flower::after {
  position: absolute;
  inset: 8px;
  content: "";
  background: var(--sage-deep);
  border-radius: 70% 30% 70% 30%;
}

.brand-flower::after {
  background: #a990c4;
  mix-blend-mode: multiply;
  transform: rotate(90deg);
}

.home-list {
  padding: 42px 0 70px;
}

.home-list h1 {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.4;
}

.page-number {
  margin: -18px 0 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.card {
  min-width: 0;
  padding: 12px 12px 24px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.card:hover {
  transform: translateY(-5px);
}

.card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
}

.card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 10px 0;
}

.card h2 {
  margin: 0.5rem 0;
  font-family: var(--rounded);
  font-size: 1rem;
  line-height: 1.55;
}

.card p {
  display: -webkit-box;
  margin: auto 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 50px;
}

.pager a,
.pager span {
  display: grid;
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 50%;
  place-items: center;
}

.pager a:hover {
  background: var(--sage);
}

.pager .current {
  color: var(--white);
  background: var(--ink);
}

.article-head {
  padding: 34px 0 30px;
}

.crumb {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.crumb a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-head h1 {
  max-width: 860px;
  margin: 0.65rem 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.1vw, 2.8rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.article-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border-radius: 42px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: start;
  justify-content: center;
  gap: 70px;
  padding: 62px 0 100px;
}

.static-page-layout {
  padding-top: 28px;
}

.prose {
  min-width: 0;
  font-size: 1.05rem;
}

.prose > p:first-child {
  font-size: 1.15rem;
}

.prose h2 {
  margin: 3.2rem 0 1rem;
  font-family: var(--rounded);
  font-size: 1.8rem;
  line-height: 1.45;
}

.prose h2::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.6rem;
  content: "";
  background: var(--sage-deep);
  border-radius: 50%;
}

.prose h3 {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--rounded);
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 1.4rem;
  color: var(--ink);
}

.prose a {
  color: var(--sage-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin: 0.5rem 0;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  color: var(--muted);
  background: var(--white);
  border-left: 4px solid var(--sage-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0.7rem 1.2rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--ink);
  border-radius: 99px;
}

.btn.soft {
  color: var(--ink);
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(51 65 61 / 10%);
}

.not-found {
  display: grid;
  min-height: calc(100vh - 220px);
  padding: 40px 20px;
  place-items: center;
}

.not-found-card {
  max-width: 760px;
  padding: 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--lavender), var(--sage));
  border-radius: 48px;
  box-shadow: var(--shadow);
}

.error-num {
  color: var(--white);
  font-family: var(--rounded);
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 0.8;
  text-shadow: 0 8px 30px rgb(51 65 61 / 10%);
}

.not-found h1 {
  font-family: var(--rounded);
  font-size: 2rem;
}

.site-footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner p {
  margin: 0 0 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links a:hover {
  color: var(--sage-deep);
}

.footer-top-link {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  transition: 0.2s;
}

.footer-top-link:hover {
  background: var(--sage);
  border-color: var(--sage-deep);
}

@media (max-width: 850px) {
  .list-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 24px);
  }

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

  .header-inner {
    padding: 0 14px;
  }

  .home-list {
    padding-top: 34px;
  }

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

  .article-cover img {
    border-radius: 26px;
  }

  .article-layout {
    padding-top: 46px;
  }

  .prose h2 {
    font-size: 1.55rem;
  }

  .not-found-card {
    padding: 44px 24px;
    border-radius: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner p {
    margin-left: auto;
  }
}
