/* ==========================================================================
   DiiPa Inc. — site stylesheet
   ========================================================================== */

:root {
  --bg: #f3ede2;        /* warm paper */
  --bg-alt: #ece1d0;
  --card: #ece1d0;
  --card-border: rgba(184, 120, 47, 0.28);
  --text: #262220;      /* ink */
  --text-muted: #6b6055;
  --orange: #b9782f;   /* deep ochre — primary accent */
  --red: #8e3434;      /* maroon — logo middle band */
  --brown: #34383b;    /* charcoal — logo bottom band */
  --gold: #c99a3f;     /* mustard — secondary highlight */
  --max: 1180px;
  --serif: "Fraunces", "Shippori Mincho", serif;
  --sans: "Jost", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--orange);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------------------------------- header --------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(243, 237, 226, 0.88);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(184,120,47,0.22);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand img { height: 38px; width: auto; }

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--text);
}

nav.main-nav {
  display: flex;
  gap: 34px;
}

nav.main-nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------------------------------- hero ----------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 78%, rgba(184,120,47,0.16), transparent 70%),
    radial-gradient(ellipse 50% 35% at 30% 20%, rgba(142,52,52,0.10), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 15%, rgba(52,56,59,0.08), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-18px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; padding: 0 24px; }

.hero .eyebrow {
  display: block;
  margin-top: 10vh;
  margin-bottom: clamp(24px, 4vh, 40px);
  font-size: clamp(13.5px, 2vw, 16px);
}

.hero p.lead {
  /* em-based width keeps roughly the same number of Japanese characters
     per line at every font-size/viewport, so wrapping stays balanced
     on any device instead of relying on a manual line break. */
  max-width: 23em;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 3.2vw, 29px);
  line-height: 1.8;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .hero-content { padding: 0 20px; }
}

.scroll-cue {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 1px;
  height: 60px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: linear-gradient(var(--orange), transparent);
}

/* ---------------------------------- sections -------------------------------- */

section { position: relative; z-index: 1; padding: 130px 0; }
section.tight { padding: 90px 0; }

/* ---------------------------------- logo watermark --------------------------------- */

.logo-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  /* the logo artwork is tall (~2:1 height:width), so its size must be capped
     by viewport height as well as width — otherwise on shorter screens
     (e.g. a laptop's own display vs. a tall external monitor) it overflows
     top and bottom instead of sitting fully on screen. 41.5vh keeps the
     rendered height within ~85% of the viewport. */
  width: min(58vw, 41.5vh, 560px);
  /* the logo artwork's visual mass sits ~5.4% left of its own canvas center;
     using margin (layout-based, pixel-snapped) instead of a transform-based
     offset avoids the sub-pixel compositor seam that showed up as a thin
     line across the flat charcoal shape */
  margin-left: calc(min(58vw, 41.5vh, 560px) * -0.446);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.section-head .eyebrow { order: -1; width: 100%; }

/* ---------------------------------- about ----------------------------------- */

#about { background: rgba(236, 225, 208, 0.6); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid .ja { font-size: 22px; color: var(--text); font-family: var(--serif); font-weight: 500; line-height: 1.85; letter-spacing: 0; }
.about-grid .en { font-size: 18.5px; color: var(--text-muted); line-height: 1.7; }

/* ---------------------------------- partners --------------------------------- */

.partners-intro {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 70px;
}

.partner-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--card-border);
}
.partner-card:last-of-type { border-bottom: 1px solid var(--card-border); }

.partner-avatar {
  width: 220px;
  height: 220px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 54px;
  color: var(--bg);
  background: linear-gradient(155deg, var(--gold), var(--red) 60%, var(--brown));
  flex-shrink: 0;
  overflow: hidden;
}

.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-role {
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 8px 0 18px;
}

.partner-card h3 { font-size: 30px; }

.partner-bio { color: var(--text); font-size: 16.5px; max-width: 640px; letter-spacing: 0; }
.partner-bio .en { margin-top: 14px; font-size: 16.5px; color: var(--text-muted); opacity: 0.95; }

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.partner-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.partner-links a:hover { color: var(--bg); background: var(--orange); border-color: var(--orange); }
.partner-links svg { width: 16px; height: 16px; fill: currentColor; }

.tie-in-note {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------------------------------- news ------------------------------------ */

#news { background: rgba(236, 225, 208, 0.6); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--orange); }

.news-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(155deg, rgba(217,165,68,0.35), rgba(142,52,52,0.28) 55%, rgba(52,56,59,0.45));
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-body { padding: 18px 20px 22px; }

.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.news-meta .tag {
  color: var(--orange);
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: 20px;
}

.news-card h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.news-card .artist { color: var(--text-muted); font-size: 13.5px; }

.news-card.hidden-item { display: none; }

.load-more-wrap { text-align: center; margin-top: 50px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border: 1px solid var(--orange);
  border-radius: 40px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: all 0.25s ease;
  font-family: var(--sans);
}
.btn:hover { background: var(--orange); color: var(--bg); }
.btn.solid { background: var(--orange); color: var(--bg); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }

/* ---------------------------------- contact ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-block h4 {
  font-family: var(--sans);
  color: var(--orange);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}

.contact-block p { color: var(--text-muted); font-size: 16px; }
.contact-block a.email { color: var(--text); font-size: 22px; font-family: var(--serif); }

/* ---------------------------------- footer ------------------------------------ */

footer {
  position: relative;
  z-index: 1;
  background: rgba(236, 225, 208, 0.7);
  padding: 50px 0;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

footer .brand img { height: 26px; }

/* ---------------------------------- responsive --------------------------------- */

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-avatar { width: 120px; height: 120px; font-size: 32px; }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  section { padding: 90px 0; }
  .wrap { padding: 0 22px; }

  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .news-body { padding: 12px 12px 16px; }
  .news-meta { font-size: 9.5px; gap: 6px; margin-bottom: 6px; }
  .news-meta .tag { padding: 1px 6px; }
  .news-card h4 { font-size: 14px; line-height: 1.3; }
  .news-card .artist { font-size: 11px; }
}
