/* ==========================================================
   TRACE — base tokens
   ========================================================== */
:root {
  --bg: #f7f4ef;
  --ink: #1b1917;
  --ink-soft: #6e6a63;
  --bordeaux: #5c1a24;
  --line: #e4dfd6;

  --serif: 'EB Garamond', serif;
  --sans: 'Noto Sans JP', sans-serif;

  --max-width: 960px;
  --gutter: 8vw;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

section {
  padding: 120px var(--gutter);
}

.section-label {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}

.nav a:hover {
  color: var(--bordeaux);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--bordeaux);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 12vw, 140px);
  letter-spacing: 0.05em;
}

.hero-sub {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ==========================================================
   Works
   ========================================================== */
.work-featured {
  max-width: var(--max-width);
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.work-featured--reverse {
  grid-template-columns: 1fr 2fr;
}

.work-featured--offset-a {
  grid-template-columns: 3fr 2fr;
}

.work-featured--solo {
  grid-template-columns: 1fr;
}

.work-strip {
  max-width: var(--max-width);
  margin: 0 auto 96px;
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.work-strip .work-item {
  flex: 0 0 auto;
  width: auto;
  max-width: 600px;
  height: 460px;
  min-width: 0;
}

.work-strip .work-image {
  height: 100%;
}

.work-strip .work-image img {
  width: auto;
  height: 100%;
  max-width: 600px;
  max-height: none;
  display: block;
}

.work-item {
  display: flex;
  flex-direction: column;
}

.work-image {
  background: #ece8e0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.02);
  opacity: 0.92;
}

/* ==========================================================
   About
   ========================================================== */
.about {
  border-top: 1px solid var(--line);
}

.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.about-photo {
  flex: 0 0 160px;
  width: 160px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ece8e0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy {
  max-width: 56ch;
}

.about-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.about-text {
  font-size: 15px;
  color: var(--ink);
}

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  border-top: 1px solid var(--line);
}

.contact-list {
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list a {
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  display: inline-block;
}

.contact-list a:hover {
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}

.footer-logo {
  font-family: var(--serif);
  letter-spacing: 0.05em;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 720px) {
  section {
    padding: 88px var(--gutter);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.is-open {
    max-height: 240px;
  }

  .nav a {
    padding: 18px var(--gutter);
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .work-featured {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-bottom: 56px;
  }

  .work-image img {
    max-height: 420px;
  }

  .work-strip .work-item {
    height: 320px;
    max-width: 90vw;
  }

  .work-strip .work-image img {
    max-width: 90vw;
  }

  .about-body {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
  }

  .about-photo {
    flex: 0 0 auto;
    width: 120px;
  }
}
