/* urara.dev top page — personal site composition */
.home-personal {
  --home-surface: rgba(255, 255, 255, 0.9);
  --home-surface-soft: rgba(238, 246, 255, 0.82);
  --home-line: rgba(128, 166, 255, 0.22);
  --home-shadow: 0 16px 42px rgba(74, 136, 177, 0.12);
  --home-shadow-hover: 0 18px 38px rgba(74, 136, 177, 0.18);
}

.home-personal main,
.home-personal .site-header,
.home-personal .site-footer {
  max-width: 1180px;
}

.home-personal .site-header {
  margin-bottom: 20px;
}

.home-personal .site-title a::before {
  box-shadow: 0 7px 18px rgba(128, 166, 255, 0.25);
}

.home-personal .site-nav a:hover,
.home-personal .site-nav a:focus-visible {
  background: var(--color-accent-bg);
  color: var(--color-tag-text);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  min-height: 430px;
  padding: 54px 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(128, 166, 255, 0.18), transparent 31%),
    linear-gradient(135deg, var(--home-surface) 0%, var(--home-surface-soft) 100%);
  border: 1px solid var(--home-line);
  border-radius: 30px;
  box-shadow: var(--home-shadow);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.home-hero::before {
  width: 190px;
  height: 190px;
  top: -96px;
  left: 40%;
  border: 28px solid rgba(128, 166, 255, 0.08);
}

.home-hero::after {
  width: 18px;
  height: 18px;
  right: 46%;
  bottom: 48px;
  background: var(--color-accent);
  box-shadow:
    30px -28px 0 -5px rgba(128, 166, 255, 0.62),
    50px 8px 0 -7px rgba(128, 166, 255, 0.42);
}

.home-hero__copy {
  position: relative;
  z-index: 3;
}

.home-hero h1 {
  max-width: 11em;
  margin: 0 0 20px;
  color: var(--fg);
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.home-hero__title-end {
  white-space: nowrap;
}

.home-hero__copy > p {
  max-width: 37em;
  margin: 0;
  color: var(--fg);
  font-size: clamp(1rem, 1.65vw, 1.12rem);
  line-height: 2;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.home-button {
  display: inline-flex;
  min-width: 150px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.home-button--primary {
  color: #fff;
  background: var(--color-link);
  box-shadow: 0 10px 24px rgba(75, 108, 184, 0.22);
}

.home-button--primary:hover {
  color: #fff;
  background: var(--color-link-hover);
  box-shadow: 0 12px 26px rgba(75, 108, 184, 0.28);
}

.home-button--secondary {
  color: var(--color-tag-text);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--color-accent);
}

.home-button--secondary:hover {
  color: var(--color-link-hover);
  background: var(--color-accent-bg);
}

.home-hero__visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.home-hero__image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(72, 135, 176, 0.16));
}

.home-section {
  margin-top: 76px;
  scroll-margin-top: 24px;
}

.home-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-section__eyebrow {
  margin: 0 0 2px;
  color: var(--color-link);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-section h2,
.home-profile h2,
.home-now h2 {
  position: relative;
  margin: 0;
  padding-left: 17px;
  color: var(--fg);
  font-family: var(--font-en), var(--font-jp);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.4;
}

.home-section h2::before,
.home-profile h2::before,
.home-now h2::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--color-accent), var(--accent-soft));
  border-radius: 999px;
}

.home-section__lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-section__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--color-link);
  font-weight: 700;
}

.home-section__link:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

.home-personal .home-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-personal .home-work-card a {
  overflow: hidden;
  padding: 12px 12px 18px;
  background: var(--home-surface);
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: var(--home-shadow);
}

.home-personal .home-work-card a:hover {
  border-color: var(--home-line);
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-hover);
}

.home-personal .home-work-card .work-thumb {
  display: block;
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  margin: 0 0 13px;
  object-fit: cover;
  border-radius: 12px;
}

.home-personal .home-work-card h3 {
  margin: 0 4px 7px;
  font-size: 1.03rem;
  line-height: 1.55;
}

.home-personal .home-work-card .work-meta,
.home-personal .home-work-card .work-desc {
  margin-right: 4px;
  margin-left: 4px;
}

.home-personal .home-work-card .work-desc {
  display: block;
  color: var(--fg);
  line-height: 1.75;
}

.home-personal .tag {
  display: inline-block;
  padding: 2px 10px;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.55;
}

.home-personal .tag-game {
  color: var(--color-tag-game-text);
  background: var(--color-tag-game-bg);
}

.home-personal .tag-tool {
  color: var(--color-tag-tool-text);
  background: var(--color-tag-tool-bg);
}

.home-updates {
  padding: 30px 34px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 22px;
  box-shadow: var(--home-shadow);
}

.home-update-list,
.home-update-archive {
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-update-item {
  display: grid;
  grid-template-columns: 110px 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.home-update-item time,
.home-update-archive time {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.82rem;
}

.home-update-item p {
  margin: 0;
  line-height: 1.7;
}

.home-updates__archive {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.home-updates__archive summary {
  width: fit-content;
  margin-top: 18px;
  padding: 7px 13px;
  color: var(--color-link);
  background: var(--color-accent-bg);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.home-update-archive {
  margin-top: 15px;
}

.home-update-archive li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 9px 4px;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-blog-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  color: var(--fg);
  background: var(--home-surface);
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: var(--home-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-blog-card a:hover {
  border-color: var(--home-line);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-hover);
}

.home-blog-card > a > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-blog-card__body {
  padding: 18px 19px 21px;
}

.home-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.home-blog-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.65;
}

.home-blog-card__body > p:last-child {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-about-now {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 20px;
  margin-top: 76px;
}

.home-profile,
.home-now {
  padding: 30px 32px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 22px;
  box-shadow: var(--home-shadow);
}

.home-profile__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.home-profile__heading img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 4px solid var(--color-accent-bg);
  border-radius: 50%;
}

.home-profile > p,
.home-now > p:not(.home-section__eyebrow):not(.home-now__date) {
  margin: 0 0 18px;
  line-height: 1.9;
}

.home-now {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 100%, rgba(128, 166, 255, 0.18), transparent 42%),
    var(--home-surface);
}

.home-now::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 54px;
  height: 18px;
  content: "";
  border: 3px solid var(--color-accent);
  border-top: 0;
  border-radius: 0 0 50% 50%;
  opacity: 0.35;
}

.home-now__date {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
}

.home-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 10px;
}

.home-footer p {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
    min-height: 390px;
    padding: 42px 38px;
  }

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

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

  .home-blog-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 10px));
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .home-personal main,
  .home-personal .site-header,
  .home-personal .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 32px 24px 20px;
    border-radius: 24px;
  }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .home-hero__copy > p {
    line-height: 1.85;
  }

  .home-hero__copy > p span {
    display: block;
    text-wrap: balance;
  }

  .home-hero__visual {
    min-height: 275px;
    margin-top: 12px;
  }

  .home-hero__image {
    width: min(100%, 88vw, 320px);
  }

  .home-section,
  .home-about-now {
    margin-top: 58px;
  }

  .home-section__header {
    align-items: flex-start;
  }

  .home-personal .home-work-grid,
  .home-blog-grid,
  .home-about-now {
    grid-template-columns: 1fr;
  }

  .home-blog-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .home-updates {
    padding: 24px 20px;
  }

  .home-update-item {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
  }

  .home-update-item p {
    grid-column: 1 / -1;
  }

  .home-update-archive li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .home-profile,
  .home-now {
    padding: 26px 24px;
  }
}

@media (max-width: 480px) {
  .home-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-button {
    width: 100%;
  }

  .home-section__header {
    display: block;
  }

  .home-section__header .home-section__link {
    margin-top: 12px;
  }

  .home-profile__heading img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-color-scheme: dark) {
  .home-personal {
    --home-surface: rgba(26, 43, 56, 0.94);
    --home-surface-soft: rgba(30, 53, 67, 0.88);
    --home-line: rgba(155, 184, 255, 0.2);
    --home-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    --home-shadow-hover: 0 18px 38px rgba(0, 0, 0, 0.34);
  }

  .home-button--secondary {
    background: rgba(26, 43, 56, 0.72);
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-personal *,
  .home-personal *::before,
  .home-personal *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home-button:hover,
  .home-personal .home-work-card a:hover,
  .home-blog-card a:hover {
    transform: none;
  }
}
