/*
 * YUDAI TOKUNAGA v7
 * A quiet, image-led redesign inspired by Japanese editorial photography sites.
 * Scoped home-page overrides preserve archive, single post, admin, and accessibility behavior.
 */

:root {
  --v7-paper: #f4f2ed;
  --v7-ink: #191919;
  --v7-soft: #77746d;
  --v7-line: rgba(25, 25, 25, .2);
}

body.home {
  background: var(--v7-paper);
  color: var(--v7-ink);
}

.home .site-header {
  padding: 28px clamp(24px, 4vw, 70px);
}

.home .site-brand,
.home .menu-toggle {
  font-weight: 500;
  letter-spacing: .08em;
}

/* Full-bleed, restrained hero with a compact stacked signature. */
.home .hero {
  min-height: 680px;
}

.home .hero__media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 35%, rgba(0, 0, 0, .28)),
    linear-gradient(90deg, transparent 55%, rgba(0, 0, 0, .08));
}

.home .hero__eyebrow {
  top: auto;
  left: 50%;
  right: auto;
  bottom: 27%;
  width: min(360px, 72vw);
  transform: translateX(-50%);
  flex-direction: column;
  gap: 7px;
  font-size: 9px;
  letter-spacing: .12em;
}

.home .hero__eyebrow span:last-child {
  max-width: none;
  text-align: left;
  font-size: 12px;
  letter-spacing: .05em;
}

.home .hero__title {
  left: 50%;
  right: auto;
  bottom: 33%;
  width: min(360px, 72vw);
  transform: translateX(-50%);
  font-size: clamp(3.9rem, 7.2vw, 7.4rem);
  font-weight: 400;
  line-height: .74;
  letter-spacing: -.055em;
  text-transform: lowercase;
}

.home .hero__title span:last-child {
  text-align: left;
  margin-left: .42em;
}

.home .hero__scroll {
  left: auto;
  right: clamp(26px, 4vw, 68px);
  bottom: 45px;
  transform: none;
  letter-spacing: .08em;
}

/* Shared editorial rhythm. */
.home .section-pad {
  padding-left: clamp(24px, 6vw, 100px);
  padding-right: clamp(24px, 6vw, 100px);
}

.home .section-label {
  font-size: 9px;
  letter-spacing: .14em;
}

.home .section-note {
  color: var(--v7-soft);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2;
}

.home .featured {
  padding-top: clamp(100px, 13vw, 190px);
  padding-bottom: clamp(110px, 15vw, 220px);
}

.home .featured .section-intro {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(280px, 1fr);
  align-items: start;
  gap: 50px;
  max-width: 940px;
  margin: 0 auto clamp(80px, 10vw, 145px);
}

.home .featured .section-label {
  margin: 8px 0 0;
}

.home .featured__grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
  align-items: center;
  gap: clamp(45px, 7vw, 120px);
}

.home .featured__media {
  height: min(72vw, 820px);
  filter: saturate(.78) contrast(1.02);
}

.home .featured__copy h2 {
  font-size: clamp(3.2rem, 6.5vw, 7.8rem);
  font-style: normal;
  font-weight: 400;
  line-height: .88;
}

.home .featured__copy > p:nth-of-type(2) {
  color: var(--v7-soft);
  line-height: 2;
}

.home .text-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
}

/* Portfolio-like photography field. */
.home .selected {
  padding-top: clamp(60px, 8vw, 115px);
  padding-bottom: clamp(100px, 12vw, 175px);
}

.home .selected > .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: clamp(38px, 5vw, 72px);
}

.home .selected > .section-heading .section-label {
  margin: 0;
}

.home .selected > .section-heading h2 {
  max-width: 8ch;
  margin-left: auto;
  font-size: clamp(3rem, 6vw, 7rem);
  font-style: normal;
  font-weight: 400;
  line-height: .88;
  text-align: right;
}

.home .selected .photo-collage {
  columns: 3;
  column-gap: clamp(12px, 1.35vw, 20px);
}

.home .selected .photo-tile,
.home .selected .photo-tile--1,
.home .selected .photo-tile--2,
.home .selected .photo-tile--3,
.home .selected .photo-tile--4,
.home .selected .photo-tile--5,
.home .selected .photo-tile--6 {
  margin-bottom: clamp(18px, 2vw, 30px);
}

.home .selected .photo-tile__image {
  background: #e5e1da;
}

.home .selected .photo-tile__image > img {
  filter: saturate(.82);
  transition: filter .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.home .selected .photo-tile a:hover img {
  filter: saturate(1);
  transform: scale(1.012);
}

.home .selected .photo-tile h3 {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
}

.home .selected .photo-tile p {
  color: var(--v7-soft);
  font-size: 9px;
}

.home .selected > .section-link {
  margin-top: clamp(30px, 4vw, 58px);
  margin-left: auto;
}

.home .marquee {
  background: var(--v7-ink);
  color: var(--v7-paper);
  border: 0;
  padding: 13px 0;
}

.home .marquee div {
  font-family: var(--yudai-latin);
  font-size: clamp(2.3rem, 5.5vw, 6rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.035em;
}

/* Topics-like blog list: quiet rules, no generic cards. */
.home .journal {
  background: var(--v7-paper);
  color: var(--v7-ink);
  padding-top: clamp(120px, 14vw, 210px);
  padding-bottom: clamp(120px, 14vw, 210px);
}

.home .journal .section-label {
  color: var(--v7-soft);
}

.home .journal > .section-heading {
  margin-bottom: clamp(65px, 8vw, 120px);
}

.home .journal > .section-heading h2 {
  max-width: 14ch;
  font-style: normal;
  font-size: clamp(2.6rem, 5vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
}

.home .journal-list {
  border-color: var(--v7-line);
}

.home .journal-item {
  grid-template-columns: minmax(100px, 180px) minmax(0, 1fr) auto;
  padding: 24px 0;
  border-color: var(--v7-line);
}

.home .journal-item__thumb {
  height: 110px;
}

.home .journal-item__copy h3 {
  font-size: clamp(1.45rem, 2.8vw, 3.4rem);
  font-style: normal;
  font-weight: 400;
}

.home .journal-item__copy p:last-child {
  color: var(--v7-soft);
  font-size: 13px;
}

.home .text-link--light {
  color: var(--v7-ink);
}

/* Photographer-style personal profile. */
.home .profile {
  background: #dedbd4;
  color: var(--v7-ink);
  padding-top: clamp(100px, 12vw, 175px);
  padding-bottom: clamp(110px, 14vw, 200px);
}

.home .profile > .section-label {
  margin-bottom: clamp(45px, 7vw, 95px);
}

.home .profile__grid {
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 10vw, 165px);
}

.home .profile__portrait {
  aspect-ratio: 4 / 5.4;
  filter: grayscale(1) contrast(1.05);
}

.home .profile__copy h2 {
  font-size: clamp(3.4rem, 7vw, 8rem);
  font-weight: 400;
  line-height: .9;
}

.home .profile__copy > p {
  max-width: 28em;
  font-family: var(--yudai-jp);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 2.1;
}

.home .profile .text-link--light {
  color: var(--v7-ink);
}

.home + .site-footer,
body.home .site-footer {
  padding-top: clamp(90px, 11vw, 160px);
}

body.home .site-footer__headline {
  font-size: clamp(3.4rem, 10.5vw, 11rem);
  font-weight: 400;
  letter-spacing: -.06em;
  text-transform: lowercase;
}

@media (max-width: 900px) {
  .home .featured .section-intro,
  .home .featured__grid,
  .home .profile__grid {
    grid-template-columns: 1fr;
  }

  .home .featured .section-intro {
    gap: 20px;
  }

  .home .featured__media {
    height: 72svh;
  }

  .home .selected .photo-collage {
    columns: 2;
    column-gap: 12px;
  }

  .home .journal-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .home .journal-item__read {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .home .site-header {
    padding: 18px 20px;
  }

  .home .hero {
    min-height: 560px;
  }

  .home .hero__title {
    bottom: 37%;
    width: 68vw;
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .home .hero__eyebrow {
    bottom: 27%;
    width: 68vw;
  }

  .home .hero__scroll {
    right: 19px;
    bottom: 28px;
  }

  .home .section-pad {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home .featured {
    padding-top: 90px;
    padding-bottom: 110px;
  }

  .home .featured .section-intro {
    margin-bottom: 55px;
  }

  .home .featured__media {
    height: 66svh;
    min-height: 430px;
  }

  .home .featured__copy h2 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .home .selected {
    padding-top: 70px;
    padding-bottom: 95px;
  }

  .home .selected > .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .home .selected > .section-heading h2 {
    margin-top: 24px;
    text-align: left;
  }

  .home .selected .photo-collage {
    columns: 1;
  }

  .home .selected .photo-tile,
  .home .selected .photo-tile--1,
  .home .selected .photo-tile--2,
  .home .selected .photo-tile--3,
  .home .selected .photo-tile--4,
  .home .selected .photo-tile--5,
  .home .selected .photo-tile--6 {
    width: 100%;
    margin: 0 0 18px;
  }

  .home .journal {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .home .journal-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .home .journal-item__thumb {
    display: block;
    height: 76px;
  }

  .home .journal-item__copy p:last-child {
    display: none;
  }

  .home .profile {
    padding-top: 90px;
    padding-bottom: 110px;
  }

  body.home .site-footer__headline {
    white-space: normal;
    line-height: .9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .selected .photo-tile__image > img {
    transition: none;
  }
}
