/* =========================================================
   d_azumi portfolio — minimal mono + vermillion accent
   ========================================================= */

:root {
  --bg: #f4f1ea;          /* warm off-white (washi-like) */
  --ink: #14110f;         /* near black */
  --ink-soft: #4a423c;
  --ink-mute: #8a8078;
  --line: #d8d2c5;
  --accent: #b73225;      /* shu (vermillion) */
  --accent-soft: rgba(183, 50, 37, 0.08);
  --max: 1120px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(20, 17, 15, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(20, 17, 15, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad-x);
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 2px;
}

.brand-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

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

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

@media (max-width: 600px) {
  .site-nav { gap: 18px; font-size: 11px; }
}

/* =========================================================
   Layout
   ========================================================= */
main {
  position: relative;
  z-index: 2;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 14vw, 160px) var(--pad-x);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 56px;
}

.section-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.section-title {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.04em;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 16vw, 180px) var(--pad-x) clamp(80px, 14vw, 160px);
}

.eyebrow {
  margin: 0 0 32px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.eyebrow::before {
  content: "—— ";
  color: var(--accent);
}

.hero-title {
  margin: 0 0 40px;
  font-family: 'Shippori Mincho', serif;
  line-height: 1;
}

.hero-jp {
  display: block;
  font-size: clamp(64px, 14vw, 168px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero-en {
  display: block;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  text-transform: lowercase;
}

.hero-lead {
  max-width: 480px;
  margin: 0 0 48px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  line-height: 1.9;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.hero-cta span {
  transition: transform 0.25s ease;
}

.hero-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-cta:hover span {
  transform: translateX(4px);
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
}

.about-text {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  color: var(--ink-soft);
}

.credentials {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credentials li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.credentials li:first-child { border-top: 1px solid var(--line); }

.cred-label {
  flex-shrink: 0;
  width: 64px;
  font-family: 'Shippori Mincho', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.cred-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

/* =========================================================
   Works
   ========================================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.work-card {
  position: relative;
  display: block;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
}

.work-card:hover::before { transform: scaleX(1); }

.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 40px -20px rgba(20, 17, 15, 0.35);
}

.work-card-inner {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  min-height: 220px;
  transition: color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-card:hover .work-card-inner { color: #fff; }

.work-platform {
  margin: 0 0 8px;
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-handle {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  transition: color 0.4s ease;
}

.work-card:hover .work-handle { color: rgba(255, 255, 255, 0.75); }

.work-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  transition: color 0.4s ease;
}

.work-card:hover .work-desc { color: rgba(255, 255, 255, 0.9); }

.work-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 20px;
  color: var(--ink-mute);
  transition: color 0.4s ease, transform 0.35s ease;
}

.work-card:hover .work-arrow {
  color: #fff;
  transform: translate(4px, -4px);
}

/* =========================================================
   Contact
   ========================================================= */
.section-contact {
  text-align: left;
}

.contact-text {
  max-width: 520px;
  margin: 0 0 32px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-soft);
  line-height: 2;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
}

.contact-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
