/* ===== common.css — nitta.coffee shared styles ===== */

/* Skip Navigation (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #2d2d2d;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  font-size: 14px;
}
.skip-link:focus {
  top: 0;
}

/* Focus styles (accessibility) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #b8866b;
  outline-offset: 2px;
}

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

:root {
  --cream: #faf9f7;
  --cream-warm: #f4f1ec;
  --off-white: #faf9f7;
  --sand: #e8e3db;
  --accent: #b8866b;
  --accent-light: #d4a98a;
  --accent-dark: #96684e;
  --charcoal: #2d2d2d;
  --charcoal-light: #404040;
  --charcoal-dark: #1a1a1a;
  --text: #2d2d2d;
  --text-secondary: #6b6560;
  --text-light: #9a928a;
  --text-muted: #9a928a;
  --transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.9;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.serif {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* ===== Navigation (sticky/scrolled variant used on subpages) ===== */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav-logo {
  display: block;
  height: 44px;
}
.nav-logo img {
  height: 100%;
  width: auto;
  transition: opacity var(--transition);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--charcoal); }
.nav-shop {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 8px 22px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  transition: all var(--transition);
}
.nav-shop:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: background var(--transition);
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal-dark);
  color: rgba(255,255,255,0.35);
  padding: 48px 48px 32px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.footer-info {
  font-size: 0.72rem;
  line-height: 2;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.35);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-nav a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--accent-light);
}
.footer-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 20px;
}
.footer-copy {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ===== Common Responsive ===== */
@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }
  .nav-links { display: none; }
  .nav-shop { display: none; }
  .nav-toggle { display: flex; }
  .footer {
    padding: 40px 24px 28px;
  }
  .footer-nav {
    gap: 16px;
  }
}
