/* Oishi Matcha — Paper & Ink */

:root {
  --paper: #F4F2EC;
  --ink: #1E1F1A;
  --ink-soft: #4D4E47;
  --ink-muted: #5A5A50;
  --rule: #D6D3CB;
  --accent: #4A6626;
  --accent-dark: #2F4318;
  --seal: #A8352A;
  --seal-text: #F6EFE2;
  --fibers: 0.3;          /* 0–1: strength of the paper fibres */
  --grain: 0.18;          /* 0–1: strength of the fine grain */
  --glow: rgba(255,255,252,0.5);      /* light patches in the paper */
  --glow-soft: rgba(255,255,252,0.35);
  --shade: rgba(110,108,100,0.035);   /* darker patch in the paper */

  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;

  color-scheme: light dark;
}

/* Dark mode: sumi-dyed washi, follows the system setting */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1C18;
    --ink: #E9E6DD;
    --ink-soft: #BDBAB0;
    --ink-muted: #A3A096;
    --rule: #3A3B34;
    --accent: #A9C46C;
    --accent-dark: #C9DC98;
    --seal: #B03C30;
    --seal-text: #F6EFE2;
    --fibers: 0.05;
    --grain: 0.3;
    --glow: rgba(255,255,240,0.03);
    --glow-soft: rgba(255,255,240,0.02);
    --shade: rgba(0,0,0,0.22);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* Paper */
.paper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 10%, var(--glow), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 55%, var(--shade), transparent 70%),
    radial-gradient(ellipse 70% 30% at 40% 90%, var(--glow-soft), transparent 70%);
}
.texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.texture .grain { opacity: var(--grain); }
.texture .fibers { opacity: var(--fibers); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--seal);
  color: var(--seal-text);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(246,239,226,0.35);
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
}
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 120px 0 140px;
}
.hero-text { flex: 1 1 480px; min-width: 0; }
.eyebrow {
  margin: 0 0 24px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lede {
  margin: 32px 0 0;
  max-width: 440px;
  color: var(--ink-soft);
}
.cta {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.kanji {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(96px, 14vw, 180px);
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Menu */
.menu { padding: 112px 0; }
h2 {
  margin: 0 0 56px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.3;
}
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 64px;
  row-gap: 40px;
}
.menu-item {
  flex: 1 1 380px;
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.menu-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.menu-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}
.menu .cta { margin-top: 56px; }

/* Contact links: full-height tap targets */
.contact-links { display: flex; flex-direction: column; margin: -10px 0 0; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
}

/* Visit */
.visit {
  padding: 112px 0 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.visit h2 { flex: 1 1 280px; margin: 0; }
.visit-grid {
  flex: 2 1 480px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.visit-grid > div { flex: 1 1 200px; }
.visit-grid p { margin: 0; }
.visit-grid .label {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-muted);
}

/* Small screens */
@media (max-width: 600px) {
  .hero { padding: 64px 0 80px; gap: 32px; }
  .menu, .visit { padding: 72px 0; }
  h2 { margin-bottom: 36px; }
  .kanji { display: none; }
}
