:root {
  --ink: #14201c;
  --muted: #4d5c56;
  --paper: #f3efe6;
  --panel: rgba(255, 252, 246, 0.88);
  --line: rgba(20, 32, 28, 0.12);
  --accent: #0f6b5c;
  --accent-deep: #0a433a;
  --chip: #dce8e3;
  --shadow: 0 18px 50px rgba(20, 32, 28, 0.08);
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(15, 107, 92, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 72, 40, 0.12), transparent 45%),
    linear-gradient(180deg, #efe8d8 0%, #f3efe6 42%, #e7eee9 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 28px;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.7;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 14px;
  color: var(--ink);
}

.search button {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--accent);
  color: #f7fffc;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.search button:hover { background: var(--accent-deep); }
.search button:active { transform: translateY(1px); }

.status {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.landmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}

.landmarks button {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.results {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
  animation: rise 320ms ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 0.92rem;
}

.facts .k { color: var(--muted); }
.facts .v { font-variant-numeric: tabular-nums; font-weight: 500; }

.card a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: none;
}
.card a:hover { text-decoration: underline; }

.foot {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 640px) {
  .shell { padding-top: 28px; }
  .search { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
