:root {
  --ink: #1c1916;
  --muted: #4f483f;
  --paper: #f4f1ea;
  --line: #d9d2c6;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.bar, main, footer {
  width: min(40rem, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(18px, var(--safe-t));
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.where { color: var(--muted); }

main { padding: 28px 0 12px; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.place {
  display: block;
  color: inherit;
  text-decoration: none;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.note {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 38rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 650;
  border-radius: 10px;
  border: 1px solid var(--ink);
}

.actions a.line { background: transparent; color: var(--ink); }

.filters {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin: 0 0 4px;
  padding-bottom: 0;
}

.filters button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.filters button.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.list { display: flex; flex-direction: column; }

.tile {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.tile:last-child { border-bottom: 0; }
.tile:active { background: transparent; }
.tile[hidden] { display: none !important; }

.tile h2 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 650; }
.tile p { margin: 0; color: var(--muted); }

.mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mark svg { width: 22px; height: 22px; }

footer {
  padding: 12px 0 calc(28px + var(--safe-b));
  color: var(--muted);
}

footer a { color: inherit; }
