/* ============================================
   Unvoiced — styles.css
   Silent, airy, restrained
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafaf8;
  --bg-alt: #f3f2ef;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e0ddd8;
  --accent: #4a4a4a;
  --font-en: 'Playfair Display', Georgia, serif;
  --font-jp: 'Shippori Mincho B1', serif;
  --max-w: 860px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3 {
  font-family: var(--font-en);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

/* --- Hero --- */
.hero {
  padding-top: calc(64px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero-signup {
  display: flex;
  gap: var(--space-xs);
  max-width: 400px;
  margin: 0 auto;
}

.hero-signup input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.hero-signup input:focus {
  border-color: var(--accent);
}

.hero-signup button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.hero-signup button:hover {
  opacity: 0.8;
}

/* --- Form success message --- */
.form-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
}

.form-msg.show {
  opacity: 1;
}

/* --- Sections (shared) --- */
section {
  padding: var(--space-xl) 0;
}

.section-headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.section-headline-jp {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* --- Fade-in animation --- */
.first-inch,
.unlocks,
.projects,
.about,
.manifesto,
.contact {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.first-inch.visible,
.unlocks.visible,
.projects.visible,
.about.visible,
.manifesto.visible,
.contact.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- First Inch --- */
.first-inch {
  border-top: 1px solid var(--border);
}

.first-inch-body {
  max-width: 620px;
}

.first-inch-body p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
  font-size: 1rem;
}

.first-inch-body .contrast-line {
  color: var(--text);
  font-weight: 500;
  margin-top: var(--space-md);
}

.jp-inline {
  font-size: 0.9em;
}

/* --- Unlocks --- */
.unlock-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--space-lg);
}

.unlock-card h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.unlock-card p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.8;
}

/* --- Projects --- */
.projects {
  border-top: 1px solid var(--border);
}

.projects-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  padding: var(--space-md);
}

.project-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.project-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
  display: block;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.project-card h3 a:hover {
  opacity: 0.6;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.project-card-link:hover {
  opacity: 0.8;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.about-intro {
  margin-bottom: var(--space-xl);
}

.about-intro p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 680px;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}

.founder h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.founder-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.founder-x {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.founder-x:hover {
  color: var(--text);
}

.founder blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-left: 2px solid var(--border);
  padding-left: var(--space-sm);
}

/* --- Manifesto --- */
.manifesto {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.manifesto-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.manifesto-body {
  max-width: 580px;
  margin: 0 auto var(--space-lg);
}

.manifesto-body p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.manifesto-body p:first-child {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
}

.manifesto-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

.contact h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--text);
  cursor: pointer;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: calc(64px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .hero-signup {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .founders {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .unlock-card {
    padding: var(--space-md);
  }
}
