:root {
  --ink: #1b1b1b;
  --paper: #fdfaf4;
  --accent: #ff5a36;
  --accent-soft: #ffe4d9;
  --muted: #6b6b6b;
  --line: #e8e2d6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f0ece4;
    --paper: #17140f;
    --accent: #ff7a52;
    --accent-soft: #3d2419;
    --muted: #9c948a;
    --line: #332e26;
  }
}

:root[data-theme="dark"] {
  --ink: #f0ece4;
  --paper: #17140f;
  --accent: #ff7a52;
  --accent-soft: #3d2419;
  --muted: #9c948a;
  --line: #332e26;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  transition: background-color 0.15s ease, color 0.15s ease;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-header {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  border-bottom: 3px solid var(--ink);
}

.theme-toggle {
  position: absolute;
  top: 48px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--accent-soft);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin: 0;
}

.wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.wordmark-icon {
  width: 32px;
  height: 32px;
}

.wordmark .dot {
  color: var(--accent);
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.conditions {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.feed {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.feed-item {
  border-bottom: 1px solid var(--line);
}

.feed-item a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 20px 0;
  text-decoration: none;
  color: var(--ink);
}

.feed-item a:hover .feed-place {
  color: var(--accent);
}

.feed-place {
  font-size: 1.25rem;
  font-weight: 700;
}

.feed-title {
  color: var(--muted);
  flex-basis: 100%;
  font-size: 0.98rem;
}

.feed-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.feed-tag,
.post-meta .feed-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}

.feed-empty {
  padding: 32px 0;
  color: var(--muted);
}

.post {
  padding-top: 32px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.post h1 {
  margin: 0 0 4px;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

.post-subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.post p {
  font-size: 1.05rem;
}

.order-this {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
}

.order-this-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.order-this ul {
  margin: 0;
  padding-left: 20px;
}

.order-this li {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.order-this li::marker {
  color: var(--accent);
}

.order-this li:last-child {
  margin-bottom: 0;
}

.post-map {
  width: 100%;
  height: 260px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--accent-soft);
}

.post-map .leaflet-control-attribution {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.7rem;
}

.post-map .leaflet-control-attribution a {
  color: var(--muted);
}

.post-map .leaflet-bar a {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.post-map .leaflet-bar a:hover {
  background: var(--accent-soft);
}

.post-directions {
  margin-top: 32px;
  font-size: 0.95rem;
}

.post-directions a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.post-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.post-actions a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.share-btn {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--accent-soft);
}

.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
