.sento-home-editor {
  --sento-ink: #2b3734;
  --sento-muted: #5f665e;
  --sento-indigo: #344950;
  --sento-rust: #a64f32;
  --sento-paper: #f6efdf;
  --sento-wood: #d7c39d;
  max-width: 1120px;
  margin: 0 auto 2rem;
  color: var(--sento-ink);
}

.sento-home-editor__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  align-items: center;
  gap: clamp(1.3rem, 3vw, 2.5rem);
  overflow: hidden;
  padding: clamp(1.7rem, 4vw, 3.6rem);
  background: var(--sento-paper);
  border: 1px solid var(--sento-wood);
  border-radius: 5px;
  box-shadow: 0 5px 16px rgba(66, 48, 31, .08);
}

.sento-home-editor__copy {
  grid-column: 1;
  grid-row: 1;
}

.sento-home-editor__hero-image {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sento-wood);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(66, 48, 31, .12);
}

.sento-home-editor__hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* A simple noren-inspired band gives the introduction a bathhouse feel. */
.sento-home-editor__hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 15px;
  background: repeating-linear-gradient(
    90deg,
    var(--sento-indigo) 0,
    var(--sento-indigo) 23%,
    #e8dcc4 23%,
    #e8dcc4 24%,
    var(--sento-rust) 24%,
    var(--sento-rust) 47%,
    #e8dcc4 47%,
    #e8dcc4 48%
  );
  content: "";
}

.sento-home-editor__hero h1 {
  margin: 0;
  color: var(--sento-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.5;
  letter-spacing: .035em;
}

.sento-home-editor__intro {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--sento-muted);
  font-size: 1rem;
  line-height: 2;
}

.sento-home-editor__categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1rem 0 2rem;
}

.sento-home-editor__category {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 1.05rem 1rem 1.2rem;
  overflow: hidden;
  color: var(--sento-ink);
  text-decoration: none;
  background: #fffaf0;
  border: 1px solid var(--sento-wood);
  border-radius: 5px;
  font-weight: 700;
  transition: background-color .15s ease, transform .15s ease;
}

.sento-home-editor__category::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--sento-rust);
  content: "";
}

.sento-home-editor__category:hover,
.sento-home-editor__category:focus-visible {
  color: var(--sento-indigo);
  background: #efe2c9;
  transform: translateY(-2px);
}

.sento-home-editor__arrow {
  color: var(--sento-rust);
  font-size: 1.55rem;
  line-height: 1;
}

.sento-home-editor__featured {
  margin: 2rem 0;
  padding-top: 1.2rem;
  border-top: 2px solid var(--sento-wood);
}

.sento-home-editor__featured h2 {
  margin: 0 0 1rem;
  color: var(--sento-indigo);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 1.4rem;
  letter-spacing: .04em;
}

.sento-home-editor__featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sento-home-editor__article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--sento-ink);
  text-decoration: none;
  background: #fffaf0;
  border: 1px solid var(--sento-wood);
  border-radius: 5px;
}

.sento-home-editor__article:hover,
.sento-home-editor__article:focus-visible {
  color: var(--sento-rust);
  border-color: var(--sento-rust);
}

.sento-home-editor__thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sento-home-editor__article-title {
  padding: .9rem 1rem;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .sento-home-editor__hero {
    grid-template-columns: 1fr;
  }

  .sento-home-editor__copy {
    grid-column: 1;
    grid-row: 2;
  }

  .sento-home-editor__hero-image {
    grid-column: 1;
    grid-row: 1;
  }

  .sento-home-editor__hero-image img {
    aspect-ratio: 16 / 10;
  }

  .sento-home-editor__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sento-home-editor__featured-grid {
    grid-template-columns: 1fr;
  }

  .sento-home-editor__thumb img {
    height: 200px;
  }
}

@media (max-width: 420px) {
  .sento-home-editor__categories {
    grid-template-columns: 1fr;
  }
}
