/* ============================================================
   Continua Media Site — Reverent White: Editorial Edition v0.2
   Shared design system
   ============================================================ */

:root {
  /* === Neutrals (Apple/pojo-inspired: closer to white, softer warmth) === */
  --washi:      #fbfaf7;   /* main background - very light off-white */
  --snow:       #ffffff;   /* card surfaces - pure white */
  --stone:      #e6e2db;   /* hairline dividers */
  --mist:       #989590;
  --ink-gray:   #5a5754;
  --sumi:       #1a1a1a;

  /* === Accents === */
  --vermillion: #a13e2a;
  --kinpaku:    #9b7c3a;

  /* === Crane Red (Sequel-inspired sharp accent, 鶴の朱) === */
  --crane:        #c8362a;
  --crane-light:  #d54a3d;
  --crane-dark:   #8e2a1f;
  --crane-glow:   rgba(200, 54, 42, 0.18);

  /* === Seasonal === */
  --sakura-dust: #dcc4c2;
  --moss-light:  #b8c4a4;
  --persimmon:   #c89880;
  --snowfield:   #f0ede7;

  /* === Fonts === */
  --font-display-en:  'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-display-ja:  'Noto Serif JP', 'Cormorant Garamond', serif;
  --font-body-en:     'Source Serif 4', 'Noto Serif JP', Georgia, serif;
  --font-body-ja:     'Noto Serif JP', 'Source Serif 4', serif;
  --font-ui:          'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', 'Courier New', monospace;

  /* === Layout === */
  --container-page: 1100px;
  --container-article: 960px;
  --container-body: 720px;
}

/* === Reset === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--font-body-ja);
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lang-en { font-family: var(--font-body-en); }

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

/* === Reading Progress === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kinpaku) 0%, #b89544 70%, var(--kinpaku) 100%);
  box-shadow: 0 0 8px rgba(155, 124, 58, 0.4);
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* === Global Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stone);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(251, 250, 247, 0.96);
  border-bottom-color: #d4cfc6;
  box-shadow: 0 1px 12px rgba(26, 26, 26, 0.04);
}
.nav-inner {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  font-family: var(--font-display-en);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--crane);
  flex-shrink: 0;
  font-style: italic;
  transition: color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
  line-height: 1;
  text-decoration: none;
}
.nav-brand:hover { color: var(--crane-dark); }
.nav-menu {
  display: flex;
  gap: 36px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sumi);
}
.nav-menu a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--crane);
  transition: width 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.nav-menu a:hover { color: var(--crane); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.current {
  color: var(--crane);
}
.nav-menu a.current::after { width: 100%; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-gray);
  display: flex;
  gap: 8px;
  user-select: none;
  letter-spacing: 0.05em;
}
.lang-toggle button {
  background: none;
  border: none;
  font: inherit;
  color: var(--mist);
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease;
}
.lang-toggle button.active { color: var(--sumi); }
.lang-toggle button:hover { color: var(--sumi); }
.lang-toggle .sep { color: var(--stone); }
.btn-subscribe {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--snow);
  background: var(--crane);
  padding: 8px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
  position: relative;
}
.btn-subscribe:hover {
  background: var(--crane-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--crane-glow);
}
.btn-subscribe:active {
  background: var(--crane-dark);
  transform: translateY(0);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--sumi);
}
.nav-hamburger svg { display: block; }

/* === Chips (Sequel-inspired pill shape) === */
.chip {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  color: var(--sumi);
  background: var(--snowfield);
  display: inline-block;
  line-height: 1.2;
}
.chip-spring { background: color-mix(in srgb, var(--sakura-dust) 60%, var(--washi)); }
.chip-summer { background: color-mix(in srgb, var(--moss-light) 60%, var(--washi)); }
.chip-autumn { background: color-mix(in srgb, var(--persimmon) 50%, var(--washi)); }
.chip-winter { background: color-mix(in srgb, var(--snowfield) 80%, var(--washi)); }
.chip-people,
.chip-practice,
.chip-place,
.chip-season,
.chip-behind { background: var(--snowfield); }

/* === Story Card (Sequel-inspired sharp motion) === */
.story-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: block;
  color: inherit;
  position: relative;
}
.story-card .card-img {
  display: block;
  aspect-ratio: 16/9;
  background: var(--snowfield);
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.story-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.story-card .card-img:hover img { transform: scale(1.04); }

/* Image disclaimer overlay on every story-card image */
.story-card .card-img .image-disclaimer {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(253, 252, 249, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
  line-height: 1.4;
}

/* Coming Soon badge on story cards */
.story-card-coming { opacity: 0.78; }
.story-card-coming .card-img { cursor: default; }
.story-card-coming:hover img { transform: none; }
.coming-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--snow);
  background: var(--crane);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(200, 54, 42, 0.32);
}
.story-card .card-body {
  padding: 20px 0 0 0;
}
.story-card .card-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.story-card .card-title {
  font-family: var(--font-display-ja);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--sumi);
  margin: 0 0 12px 0;
}
.story-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.story-card .card-title a:hover { color: var(--crane); }
body.lang-en .story-card .card-title { font-family: var(--font-display-en); }
.story-card .card-lead {
  font-family: var(--font-body-ja);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-gray);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.lang-en .story-card .card-lead { font-family: var(--font-body-en); }
.story-card .card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* === Read more link (POJ Studio-inspired text CTA) === */
.read-more {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sumi);
  text-decoration: none;
  border-bottom: 1px solid var(--sumi);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1),
              border-color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.read-more:hover {
  color: var(--crane);
  border-bottom-color: var(--crane);
}

/* === Newsletter === */
.newsletter {
  max-width: var(--container-body);
  margin: 80px auto 0;
  padding: 40px 32px;
  background: var(--snow);
  border-radius: 4px;
}
.newsletter h3 {
  font-family: var(--font-display-ja);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--sumi);
  margin: 0 0 8px 0;
}
body.lang-en .newsletter h3 { font-family: var(--font-display-en); }
.newsletter p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-gray);
  margin: 0 0 24px 0;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter input {
  flex: 1;
  background: var(--washi);
  border: 1px solid var(--stone);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--sumi);
  transition: border-color 0.25s ease;
  outline: none;
}
.newsletter input:focus { border-color: var(--kinpaku); }
.newsletter input::placeholder { color: var(--mist); }
.newsletter button {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--snow);
  background: var(--crane);
  padding: 13px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
  white-space: nowrap;
}
.newsletter button:hover {
  background: var(--crane-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--crane-glow);
}

/* Buttondown attribution (subtle, regulatory-friendly) */
.newsletter-credit {
  margin: 16px 0 0 0 !important;
  font-family: var(--font-mono);
  font-size: 10px !important;
  letter-spacing: 0.08em;
  color: var(--mist);
  opacity: 0.6;
  text-align: center;
}
.newsletter-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.newsletter-credit a:hover {
  border-bottom-color: var(--mist);
  opacity: 1;
}

/* === Footer (pojo-inspired: big CTA, deep red signature) === */
footer {
  margin-top: 120px;
  padding: 96px 40px 40px;
  border-top: 1px solid var(--stone);
  background: var(--washi);
}
.footer-inner {
  max-width: var(--container-page);
  margin: 0 auto;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display-en);
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  color: var(--crane);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
  line-height: 1;
}
.footer-brand-seal {
  display: block;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.footer-brand:hover .footer-brand-seal {
  transform: rotate(-3deg);
}
.footer-brand-wordmark {
  display: inline-block;
  color: var(--crane);
  transition: color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.footer-brand:hover .footer-brand-wordmark { color: var(--crane-dark); }
.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--kinpaku);
  text-transform: uppercase;
  margin: 0 0 16px 0;
}
.footer-tagline {
  font-family: var(--font-display-ja);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink-gray);
  margin: 0 0 64px 0;
  letter-spacing: -0.005em;
  line-height: 1.6;
}
.footer-tagline .en {
  font-family: var(--font-display-en);
  font-style: italic;
  font-size: 14px;
  color: var(--mist);
}

/* Giant CTA block (pojo "Sounds good? Get in touch") — restrained */
.footer-cta {
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 64px 0;
  margin: 0 0 64px 0;
  text-align: center;
}
.footer-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-gray);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-cta-link {
  font-family: var(--font-display-en);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--crane);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  transition: color 0.4s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.footer-cta-link:hover {
  color: var(--crane-dark);
}
.footer-cta-link .arrow {
  font-size: 0.7em;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
  display: inline-block;
}
.footer-cta-link:hover .arrow {
  transform: translateX(0.2em);
}

.footer-cta-context {
  margin-top: 40px;
  max-width: 540px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-gray);
  letter-spacing: 0.01em;
}
.footer-cta-context p {
  margin: 0 0 4px 0;
}
.footer-cta-mail {
  margin-top: 16px !important;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sumi);
  letter-spacing: 0.02em;
}
body.lang-en .footer-cta-context {
  font-family: var(--font-body-en);
  font-size: 15px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer-col-future {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.footer-col-future .en {
  font-style: italic;
  letter-spacing: 0.04em;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 20px 0;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
}
.footer-col a {
  color: var(--sumi);
  transition: color 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.footer-col a:hover { color: var(--crane); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.04em;
}
.footer-bottom .right {
  display: flex;
  gap: 24px;
}
.footer-bottom a {
  color: var(--mist);
  transition: color 0.25s ease;
}
.footer-bottom a:hover { color: var(--sumi); }
.footer-credit {
  margin-left: 4px;
  opacity: 0.85;
}
.footer-credit a {
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-credit a:hover {
  border-bottom-color: var(--crane);
  color: var(--crane);
}

/* === Animations === */
.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.0s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1.0s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 12px 20px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: block; }
  .nav-right .btn-subscribe { display: none; }
  .newsletter { margin: 56px 20px 0; padding: 32px 24px; }
  .newsletter h3 { font-size: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter button { width: 100%; }
  footer { padding: 48px 20px 24px; margin-top: 72px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .section-reveal { opacity: 1 !important; transform: none !important; }
}
