/* === Variables === */
:root {
  --color-bg: #faf8f5;
  --color-bg-subtle: #f3f0eb;
  --color-text: #2c3e50;
  --color-text-muted: #64748b;
  --color-accent: #c53d43; /* Japanese vermillion */
  --color-accent-light: #e8d3d5;
  --color-border: #e2ded8;
  
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  --max-width: 720px;
  --spacing: 1.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

.hidden {
  display: none !important;
}

/* === PIN Gate === */
#pin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-subtle) 100%);
}

.pin-container {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 320px;
}

.pin-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pin-container h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.pin-container p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

#pin-input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1.25rem;
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 0.25em;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: white;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

#pin-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

#pin-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: white;
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

#pin-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 61, 67, 0.3);
}

.error {
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* === Header & Nav === */
header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* === Main Content === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing);
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

strong {
  font-weight: 600;
}

em {
  font-family: var(--font-display);
  font-style: italic;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* === Lists === */
ul, ol {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--color-accent);
}

/* === Day Cards (for itinerary) === */
.day-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.day-card h3 {
  margin-top: 0;
}

.day-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.vibe {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* === Photos Page === */
.photos-intro {
  margin-bottom: 2rem;
}

.photo-day {
  margin-bottom: 3rem;
}

.photo-day h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.photo-grid {
  display: grid;
  gap: 1rem;
}

.photo-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.day-notes {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-muted);
  padding: 1rem;
  background: var(--color-bg-subtle);
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* No photos yet state */
.no-photos {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.no-photos-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* === Footer === */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* === Responsive === */
@media (max-width: 600px) {
  :root {
    --spacing: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .nav-links {
    gap: 1.25rem;
  }
}
