/* Dharma Coast Sangha: quiet ink-on-paper style. System fonts only (no third-party requests). */
:root {
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --ink: #2b2622;
  --ink-soft: #5c544c;
  --accent: #7a4b2a;      /* robe brown */
  --sea: #3f6b73;         /* coastal teal */
  --line: #d8cfbf;
  --max: 46rem;
  font-size: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

.hero {
  text-align: center;
  padding: 1rem 1.25rem 3.5rem;
  background: linear-gradient(var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--accent); }

.enso { width: 9rem; height: 9rem; display: block; margin: 0 auto 1rem; }

h1 {
  font-weight: normal;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin: 0;
}
.subtitle {
  margin: 0.25rem 0 1.5rem;
  color: var(--accent);
  font-style: italic;
  font-size: 1.1rem;
}
.lede { max-width: 36rem; margin: 0 auto; color: var(--ink-soft); }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

section { padding: 3rem 0 1rem; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: none; }

h2 {
  font-weight: normal;
  font-size: 1.6rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
h3 { font-weight: normal; font-size: 1.2rem; margin: 2rem 0 0.5rem; }

.note { color: var(--ink-soft); font-size: 0.9rem; }

.schedule { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.schedule th, .schedule td { padding: 0.6rem 0.5rem; border-bottom: 1px dotted var(--line); vertical-align: top; text-align: left; }
.schedule th {
  white-space: nowrap;
  font-weight: normal;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--sea);
  width: 6.5rem;
}

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.room {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.room:hover { border-color: var(--sea); transform: translateY(-2px); color: var(--ink); }
.room-name { display: block; font-size: 1.35rem; color: var(--sea); }
.room-desc { display: block; font-size: 0.9rem; color: var(--ink-soft); }

.lineage {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lineage li { text-align: center; }
.lineage li span {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
}
.lineage li + li::before {
  content: "";
  display: block;
  width: 1px;
  height: 1.1rem;
  margin: 0 auto;
  background: var(--accent);
}

.tips { padding-left: 1.2rem; }
.tips li { margin-bottom: 0.5rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}
.button:hover { background: var(--accent); color: #fff; }

footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
footer .small { font-size: 0.8rem; }

@media (max-width: 30rem) {
  :root { font-size: 16px; }
  h1 { font-size: 2rem; }
  .schedule th { width: 5rem; }
}
