:root {
  --page: #ebe9e3;
  --paper: #f3f1eb;
  --card: #ffffff;
  --sunken: #ebe9e3;
  --text: #0d0c0a;
  --muted: #5e5a54;
  --quiet: #9a958c;
  --line: #d8d4cb;
  --line-strong: #b8b3a8;
  --accent: #b85c38;
  --shadow: 0 18px 52px rgba(13, 12, 10, 0.07);
  --small-shadow: 0 10px 28px rgba(13, 12, 10, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--paper);
}

.date-nav {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px;
}

.date-nav h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 650;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--text);
}

.timeline-section {
  display: grid;
  gap: 10px;
  padding-bottom: 0;
}

.events-list {
  display: grid;
  gap: 10px;
}

.event-card {
  min-height: 72px;
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--small-shadow);
}

.category-line {
  align-self: stretch;
  justify-self: start;
  width: 4px;
  border-radius: 999px;
  background: var(--category-color, #e1e1e1);
}

.event-copy,
.suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.event-copy strong,
.suggestion-copy strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 650;
}

.event-copy span,
.suggestion-copy span {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.18;
}

.recommendations {
  margin-top: -4px;
  padding: 0;
  background: transparent;
}

.suggestions {
  display: grid;
  gap: 10px;
}

.suggestion-card {
  min-height: 72px;
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 700px) {
  body {
    padding: 26px 0;
  }

  .app-shell {
    border: 1px solid rgba(120, 98, 80, 0.14);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .event-card {
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .event-copy strong {
    font-size: 16px;
  }

  .event-copy span {
    font-size: 13px;
  }

  .suggestion-card {
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .category-line {
    width: 4px;
  }

  .suggestion-copy strong {
    font-size: 16px;
  }

  .suggestion-copy span {
    font-size: 13px;
  }

}

@media (max-width: 360px) {
  .date-nav h1 {
    font-size: 18px;
  }

  .event-card {
    grid-template-columns: 4px minmax(0, 1fr);
  }

  .suggestion-card {
    grid-template-columns: 4px minmax(0, 1fr);
  }
}
