/* style.css - Mobile-first responsive stylesheet for The Hotei project */

/* --------- Variables & base reset --------- */
:root{
  --max-width: 980px;
  --content-padding: 16px;    /* main horizontal padding (small devices) */
  --gutter: 24px;
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --accent: #7a4d1a;         /* warm brown accent (change if you like) */
  --radius: 8px;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
}

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

html,body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  margin: 0;
  padding: 0; /* body padding handled below */
}

/* Move everything slightly from the left edge and prevent horizontal scroll */
body {
  padding: 0 var(--content-padding);
  overflow-x: hidden;
}

/* Center main content inside a max-width container on larger screens */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* --------- Header --------- */
header {
  padding: 20px 0;
  display: block;
  text-align: center;
}

header h1 {
  margin: 0 0 8px 0;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* language links */
header .lang-switch {
  margin-top: 10px;
  font-size: 0.95rem;
}
header .lang-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin: 0 6px;
}
header .lang-switch a:focus,
header .lang-switch a:hover {
  text-decoration: underline;
}

/* --------- Main & Nav --------- */
main {
  padding: 18px 0 40px 0;
}

nav {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* nav links styled as chips on mobile */
nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0,0,0,0.03);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
nav a:hover,
nav a:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

/* desktop: separate links with pipes and inline appearance */
@media (min-width: 700px) {
  nav {
    justify-content: center;
  }
  nav a {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 8px;
    font-weight: