:root {
  --paper-bg: #faf6f0;
  --ink-black: #1c1c1a;
  --wood-border: #b18c65;
  --seal-red: #b23b3b;
  --text-muted: #5e5e5a;
  
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper-bg);
  color: var(--ink-black);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
}

/* Paper noise overlay */
.paper-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
  z-index: 999;
}

.zen-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 20px;
}

.zen-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.nav-back {
  display: inline-block;
  color: var(--ink-black);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  border-bottom: 1px solid var(--ink-black);
  margin-bottom: 25px;
}

.nav-back:hover {
  opacity: 0.7;
}

.red-seal {
  width: 50px;
  height: 50px;
  border: 2px solid var(--seal-red);
  color: var(--seal-red);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-6deg);
  margin-bottom: 15px;
  user-select: none;
  box-shadow: 0 0 3px rgba(178, 59, 59, 0.15);
}

.zen-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin: 0;
}

.zen-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 10px auto 0 auto;
}

.zen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 35px;
}

.zen-card {
  background: #ffffff;
  border: 1px solid rgba(28, 28, 26, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Vertical Text Card */
.vertical-card {
  align-items: center;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 250px;
}

.vertical-text h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0;
  line-height: 1.2;
}

.vertical-text p {
  font-size: 0.9rem;
  line-height: 2;
  margin: 0;
  color: var(--text-muted);
}

/* Painting Board */
.painting-board h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-top: 0;
}

.painting-board p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.canvas-frame {
  border: 10px solid var(--wood-border);
  background: #fff;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

#brush-canvas {
  cursor: crosshair;
  background-color: #faf9f6;
  width: 100%;
}

.zen-btn {
  background: var(--ink-black);
  color: var(--paper-bg);
  border: none;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  padding: 10px;
  margin-top: 15px;
  cursor: pointer;
  letter-spacing: 1px;
}

.zen-btn:hover {
  opacity: 0.8;
}

/* Poem Card */
.poem-card {
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #faf9f5;
}

.haiku {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 2;
  color: var(--ink-black);
  margin: 0 0 20px 0;
}

.poem-card cite {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-style: normal;
  text-transform: uppercase;
}
