/*
Theme Name: Shizuka House
Theme URI: https://example.com/shizuka-house
Author: Codex
Author URI: https://example.com
Description: AI-generated imagery based custom home builder theme with a quiet Japanese architectural mood.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shizuka-house
*/

:root {
  --ink: #20211f;
  --muted: #7b776d;
  --paper: #f6f3ec;
  --soft: #ebe6dc;
  --line: rgba(32, 33, 31, 0.16);
  --dark: #141513;
  --accent: #9b6d3f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 300;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 4vw;
  color: #fff;
  transition: background 260ms ease, color 260ms ease, min-height 260ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  color: var(--ink);
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(32, 33, 31, 0.08);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.65rem);
  line-height: 1;
  font-weight: 400;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font-size: 0.74rem;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

.global-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  margin: 0;
  padding: 0;
}

.global-nav li,
.global-nav-list li {
  list-style: none;
}

.global-nav a {
  opacity: 0.88;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 1px;
  margin: 8px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.43), rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0.25));
}

.hero-copy {
  position: absolute;
  left: 7vw;
  bottom: 13vh;
  max-width: 780px;
  color: #fff;
}

.hero-copy p,
.section-heading span,
.model-copy span,
.contact p,
.section-label {
  margin: 0 0 18px;
  font-size: 0.74rem;
  letter-spacing: 0;
  color: var(--accent);
  font-weight: 500;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 5.1rem);
  font-weight: 300;
  line-height: 1.08;
}

.hero-copy h1 span {
  display: inline-block;
}

.scroll-label {
  position: absolute;
  right: 4vw;
  bottom: 7vh;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  writing-mode: vertical-rl;
}

.section {
  padding: clamp(76px, 11vw, 150px) 6vw;
}

.intro {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(28px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}

.intro-text {
  max-width: 880px;
}

.lead {
  margin: 0 0 26px;
  font-size: clamp(1.7rem, 3.5vw, 3.4rem);
  line-height: 1.55;
  font-weight: 300;
}

.intro-text p:last-child,
.model-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 2.15;
  font-size: 0.98rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section-heading h2,
.model-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-weight: 300;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: clamp(18px, 2.5vw, 36px);
}

.work-card {
  border-bottom: 1px solid var(--line);
}

.work-card.large {
  grid-row: span 2;
}

.work-card img {
  height: clamp(260px, 32vw, 520px);
  object-fit: cover;
}

.work-card.large img {
  height: clamp(520px, 67vw, 900px);
}

.work-card div {
  padding: 22px 0 28px;
}

.work-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.work-card h3 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
}

.model {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  background: #e5dfd3;
}

.model img {
  min-height: 520px;
  object-fit: cover;
}

.model-copy {
  max-width: 460px;
}

.model-copy h2 {
  margin-bottom: 28px;
  line-height: 1.55;
}

.text-link,
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  font-size: 0.85rem;
  font-weight: 500;
}

.text-link::after,
.contact a::after {
  content: "";
  width: 74px;
  height: 1px;
  background: currentColor;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--muted);
  font-size: 0.86rem;
}

.journal {
  padding-top: 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.journal-grid a {
  min-height: 210px;
  padding: 28px;
  background: var(--paper);
  line-height: 1.85;
}

.contact {
  padding: clamp(86px, 12vw, 170px) 6vw;
  color: #fff;
  background: var(--dark);
  text-align: center;
}

.contact p {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 4vw;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: #fff;
}

.site-footer small {
  font-size: 0.75rem;
}

@media (hover: hover) {
  .work-card img,
  .journal-grid a,
  .news-list a {
    transition: opacity 200ms ease, transform 260ms ease;
  }

  .work-card a:hover img {
    opacity: 0.86;
  }

  .journal-grid a:hover,
  .news-list a:hover {
    color: var(--accent);
  }
}

@media (max-width: 900px) {
  .global-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 6vw;
    color: var(--ink);
    background: rgba(246, 243, 236, 0.96);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .global-nav-list {
    display: grid;
    gap: 0;
  }

  .global-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-button {
    display: block;
    color: inherit;
  }

  .site-header {
    min-height: 68px;
  }

  .intro,
  .work-grid,
  .model,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .work-card.large {
    grid-row: auto;
  }

  .work-card.large img,
  .work-card img,
  .model img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .news-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 92svh;
  }

  .hero-copy {
    left: 6vw;
    right: 6vw;
    bottom: 11vh;
  }

  .hero-copy h1 {
    font-size: 2.08rem;
    line-height: 1.25;
  }

  .brand {
    font-size: 1.52rem;
  }

  .section {
    padding-inline: 5vw;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

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