/* Playright-style stories layout on top of Ruby */

body {
  background: #fff;
  color: #1c1c1c;
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}

.gh-head {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.gh-head-logo {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.gh-head-members,
.gh-foot-center {
  display: none !important;
}

.gh-powered-by {
  display: none !important;
}

.gh-foot {
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

.gh-copyright {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  font-size: 0.9rem;
  color: #666;
}

.mfs-banner {
  margin: 0;
  position: relative;
  line-height: 0;
}

.mfs-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.mfs-banner svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 6%;
}

@media (min-width: 1000px) {
  .mfs-banner img {
    height: min(46vw, 660px);
    object-fit: cover;
    object-position: center 56%;
  }

  .mfs-banner svg {
    height: 56px;
  }
}

.mfs-intro {
  max-width: 46rem;
  margin: 0.5rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.mfs-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mfs-intro p {
  margin: 0 auto;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.mfs-hint {
  margin-top: 1.1rem !important;
  font-style: italic;
}

.mfs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.35rem;
  max-width: 1240px;
  margin: 2.2rem auto 5rem;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .mfs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mfs-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.mfs-card-picture {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f3f1ec;
}

.mfs-card-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mfs-tags {
  margin: 0.7rem 0 0.25rem;
  font-family: "Segoe UI", Candara, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.mfs-tags a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mfs-card-title {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mfs-card-title a,
.mfs-more {
  color: inherit;
  text-decoration: none;
}

.mfs-more {
  font-family: "Segoe UI", Candara, sans-serif;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}

/* Keep tag/author archive pages readable with the same card grid */
.tag-template .site-main,
.author-template .site-main {
  max-width: 1240px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.tag-template .post-feed,
.author-template .post-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.35rem;
}

@media (min-width: 900px) {
  .tag-template .post-feed,
  .author-template .post-feed {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tag-template .post-feed .u-shadow,
.author-template .post-feed .u-shadow {
  box-shadow: none;
}
