:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --white: #fffcf7;
  --ink: #333e35;
  --muted: #777a70;
  --accent: #a85338;
  --line: #e4dfd5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #b97b50;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.wrap {
  max-width: 1220px;
  padding: 0 40px;
  margin: auto;
}
.header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font:
    600 36px Georgia,
    serif;
  letter-spacing: -2px;
  gap: 10px;
}
.brand svg {
  width: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}
.brand-note {
  font: 11px sans-serif;
  letter-spacing: 0;
  color: var(--muted);
  margin: 7px 0 0 15px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}
#account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.privacy {
  color: var(--muted);
  font-size: 11px;
}
.privacy span {
  color: var(--accent);
  font-size: 18px;
  margin-right: 5px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 550;
  background: none;
  transition: background 0.15s;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button.primary:hover {
  background: #91442d;
}
.button.secondary {
  background: var(--white);
}
.button.secondary:hover,
.button.subtle:hover {
  background: #eee8dd;
}
.button.small {
  padding: 10px 14px;
}
.button.full {
  width: 100%;
}
a.button {
  text-decoration: none;
}
.text-button {
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: 12px;
  color: var(--accent);
  text-underline-offset: 4px;
}
.text-button:hover {
  text-decoration: underline;
}
.eyebrow {
  font:
    9px/1.8 ui-monospace,
    monospace;
  letter-spacing: 1.7px;
  color: #858270;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 49px 0 63px;
}
h1 {
  font:
    400 clamp(40px, 4.7vw, 61px) / 1.13 Georgia,
    serif;
  letter-spacing: -2.5px;
  margin: 20px 0 24px;
}
h1 em {
  color: var(--accent);
  font-weight: 400;
}
.hero-description {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 25px;
}
.hero-caption {
  font-size: 10px;
  margin-left: 15px;
  color: var(--muted);
}
.travel-art {
  height: 320px;
  position: relative;
}
.postcard {
  width: 290px;
  background: var(--white);
  padding: 11px;
  position: absolute;
  left: 10px;
  top: 17px;
  transform: rotate(-8deg);
  box-shadow: 1px 7px 23px #594a321b;
  border: 1px solid #ebe3d5;
}
.landscape {
  height: 207px;
  position: relative;
  overflow: hidden;
  background: #dce4de;
}
.sun {
  position: absolute;
  right: 48px;
  top: 31px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9ba76;
}
.mountain {
  position: absolute;
  width: 300px;
  height: 210px;
  transform: rotate(37deg);
  border-radius: 23px;
}
.mountain.back {
  left: -148px;
  top: 85px;
  background: #a6b8a6;
}
.mountain.front {
  right: -171px;
  top: 99px;
  background: #5d7866;
}
.sea {
  position: absolute;
  width: 125%;
  height: 43px;
  background: #99b9b5;
  left: -10px;
  bottom: -18px;
  transform: rotate(-8deg);
}
.postcard-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 3px;
  font:
    italic 12px Georgia,
    serif;
  color: #787665;
}
.postcard-caption span {
  font-size: 24px;
  color: var(--accent);
}
.round-stamp {
  position: absolute;
  right: -5px;
  top: 14px;
  width: 117px;
  height: 117px;
  border: 1px dashed #a67857;
  outline: 1px solid #a6785760;
  outline-offset: -6px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font:
    7px/1.6 ui-monospace,
    monospace;
  letter-spacing: 0.6px;
  transform: rotate(14deg);
  color: #9f7253;
  background: #f8f5efc9;
}
.round-stamp span {
  font:
    italic 19px Georgia,
    serif;
  letter-spacing: -0.4px;
}
.ticket {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  padding: 19px 20px;
  border: 1px solid #d8cebd;
  background: #ede7d8;
  transform: rotate(5deg);
  box-shadow: 1px 4px 10px #594a320c;
}
.ticket span {
  display: block;
  font:
    7px ui-monospace,
    monospace;
  letter-spacing: 1.2px;
  color: #8c846f;
}
.ticket strong {
  display: block;
  font:
    17px Georgia,
    serif;
  margin: 11px 0;
}
.ticket i {
  display: block;
  border-top: 1px dashed #cbbfa9;
  padding-top: 10px;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #8c846f;
}
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.25fr;
  gap: 24px;
}
.stats > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stats strong {
  font:
    31px Georgia,
    serif;
}
.stats span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 80px;
}
.stats p {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  font:
    italic 14px/1.6 Georgia,
    serif;
  color: #8d8c7f;
}
.journal {
  padding: 45px 0 0;
  min-height: 400px;
  scroll-margin-top: 25px;
}
.journal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
h2 {
  font:
    400 29px/1.3 Georgia,
    serif;
  letter-spacing: -0.7px;
}
.journal-heading h2 {
  margin-top: 4px;
}
.journal-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.journal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0;
}
.view-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  gap: 3px;
}
.view-switch button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 17px;
  border-radius: 4px;
  font-size: 11px;
}
.view-switch button[aria-pressed="true"] {
  background: #ebe6dc;
  color: var(--ink);
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filters input,
.filters select {
  padding: 11px;
  font-size: 11px;
  background: transparent;
}
.search-field {
  width: 230px;
}
.empty-state {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px dashed #dcd7cb;
  border-radius: 10px;
  background: #fffcf740;
  padding: 28px 20px;
}
.empty-pin {
  color: #a08c66;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eee8db;
  font-size: 32px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
}
.empty-state h3,
.no-results h3 {
  font:
    23px Georgia,
    serif;
  letter-spacing: -0.5px;
}
.empty-state p,
.no-results p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 12px 0 20px;
}
#empty-account-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.loading {
  padding: 60px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.no-results {
  padding: 50px 0;
  text-align: center;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.entry-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  min-width: 0;
}
.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px #483b2710;
}
.entry-cover {
  display: block;
  width: 100%;
  height: 195px;
  object-fit: cover;
  background: #e6e9df;
}
.entry-placeholder {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    italic 45px Georgia,
    serif;
  color: #b49b71;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #bba98518 23px 24px),
    #eee9dd;
}
.entry-copy {
  padding: 20px;
}
.entry-country {
  font:
    9px ui-monospace,
    monospace;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}
.entry-city {
  font:
    27px Georgia,
    serif;
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
}
.entry-date {
  font-size: 10px;
  color: var(--muted);
}
.entry-experience {
  font-size: 12px;
  color: #74786d;
  line-height: 1.8;
  margin-top: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.entry-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.entry-foot span:last-child {
  color: var(--accent);
}
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.place-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  text-align: left;
}
.place-card:hover {
  background: #eee8dd;
}
.place-flag {
  font-size: 32px;
  margin-bottom: 17px;
}
.place-card h3 {
  font:
    23px Georgia,
    serif;
  overflow-wrap: anywhere;
}
.place-card p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.place-card .place-count {
  color: var(--accent);
  font:
    10px ui-monospace,
    monospace;
  margin-top: 20px;
}
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 52px 0;
}
.how-it-works > div {
  padding-left: 30px;
  position: relative;
}
.how-it-works > div > span {
  position: absolute;
  top: 2px;
  left: 0;
  font:
    10px ui-monospace,
    monospace;
  color: #a59574;
}
.how-it-works h3 {
  font:
    17px Georgia,
    serif;
}
.how-it-works p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.8;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  min-height: 85px;
}
.footer-brand {
  font:
    25px Georgia,
    serif;
}
.footer-brand span {
  font:
    italic 11px Georgia,
    serif;
  color: var(--muted);
  margin-left: 18px;
}
.footer p {
  font-size: 10px;
  color: var(--muted);
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  padding: 32px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 25px 90px #201c2633;
}
dialog::backdrop {
  background: #263a3280;
  backdrop-filter: blur(3px);
}
.auth-dialog {
  max-width: 410px;
  position: fixed;
}
.auth-dialog > .close-button {
  position: absolute;
  right: 20px;
  top: 15px;
}
.dialog h2 {
  margin: 10px 0 13px;
}
.dialog-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.close-button {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  padding: 6px;
  color: var(--muted);
}
form > label,
.form-row > label {
  display: block;
  font-size: 12px;
  margin: 19px 0;
}
input,
select,
textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #dcd8ce;
  border-radius: 5px;
  padding: 12px;
  font-size: 14px;
  min-width: 0;
}
form label input,
form label select,
form label textarea {
  display: block;
  margin-top: 9px;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.8;
}
input::placeholder,
textarea::placeholder {
  color: #a09e92;
}
.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 18px;
}
.google-signin-option {
  margin: 20px 0;
}
.google-signin {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 4px;
  margin: 0 auto;
}
.google-signin img {
  display: block;
  height: 40px;
  width: auto;
}
.google-signin:disabled {
  opacity: 0.55;
  cursor: wait;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
#google-connect-form {
  margin-top: 24px;
}
#google-connect-form h3 {
  font:
    23px Georgia,
    serif;
}
#google-connect-form label {
  margin-top: 20px;
}
.hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 10px 0 20px;
}
.error {
  font-size: 12px;
  line-height: 1.7;
  color: #963d32;
  background: #f8e9e4;
  border: 1px solid #eacfc5;
  border-radius: 6px;
  padding: 11px 13px;
  margin: 14px 0;
}
.visit-dialog {
  max-width: 650px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row > label {
  margin: 12px 0;
}
.optional {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-left: 4px;
}
.required {
  color: var(--accent);
}
.photo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin: 24px 0 12px;
}
#selected-photo-count {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
}
.photo-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed #ccc8b7;
  background: #f1ede4;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.photo-picker > span:first-child {
  font-size: 23px;
  color: var(--accent);
}
.photo-picker strong {
  font-size: 12px;
  font-weight: 500;
}
.photo-picker > span:last-of-type {
  font-size: 10px;
  color: var(--muted);
}
.photo-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.photo-picker:focus-within {
  outline: 3px solid #b97b50;
  outline-offset: 4px;
}
.photo-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 13px;
}
.photo-preview {
  position: relative;
}
.photo-preview img {
  display: block;
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.photo-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #fffcf7eb;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 19px;
  display: grid;
  place-items: center;
  padding: 0;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.detail-dialog {
  max-width: 760px;
}
.detail-dialog h2 {
  font-size: 40px;
  overflow-wrap: anywhere;
}
.detail-dates {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 23px;
}
.detail-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.detail-photos button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.detail-photos button:only-child {
  grid-column: 1 / -1;
}
.detail-photos img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.detail-photos button:only-child img {
  height: auto;
  max-height: 420px;
}
.detail-experience {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 25px;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 26px;
}
.danger {
  color: #963d32;
}
.photo-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95dvh;
  overflow: visible;
}
.photo-dialog img {
  display: block;
  max-height: 85dvh;
  max-width: 93vw;
  object-fit: contain;
}
.photo-dialog .close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #fffcf7e8;
  color: #333;
  border-radius: 50%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--accent);
  color: white;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
@media (max-width: 1000px) {
  .brand-note {
    display: none;
  }
  .hero {
    gap: 25px;
  }
  .postcard {
    width: 255px;
    left: 0;
  }
  .landscape {
    height: 190px;
  }
  .ticket {
    width: 220px;
  }
  .round-stamp {
    right: -8px;
  }
  .stats {
    gap: 17px;
  }
  .stats > div {
    gap: 8px;
  }
  .stats p {
    padding-left: 15px;
    font-size: 12px;
  }
  .entry-grid,
  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .header {
    height: 80px;
  }
  .privacy {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }
  h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  .travel-art {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
    padding: 22px 0;
    gap: 12px;
  }
  .stats > div {
    flex-direction: column;
    gap: 5px;
  }
  .stats strong {
    font-size: 29px;
  }
  .stats p {
    display: none;
  }
  .journal {
    padding-top: 32px;
  }
  .journal-toolbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .filters {
    width: 100%;
  }
  .filters > label {
    width: 50%;
  }
  .journal-heading {
    gap: 15px;
  }
  .journal-heading h2 {
    font-size: 25px;
  }
  .journal-actions {
    gap: 10px;
  }
  .how-it-works {
    gap: 20px;
  }
  .how-it-works > div {
    padding-left: 0;
  }
  .how-it-works > div > span {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
  .footer {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-top: 22px;
    padding-bottom: 22px;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-actions {
    gap: 12px;
  }
  #account-name {
    max-width: 110px;
    font-size: 11px;
  }
  h1 {
    font-size: 40px;
    letter-spacing: -1.6px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 12px;
  }
  .desktop-break {
    display: none;
  }
  .hero-caption {
    margin-left: 10px;
    font-size: 9px;
  }
  .journal-heading h2 {
    font-size: 23px;
  }
  .journal-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  #journal-add {
    font-size: 11px;
    padding: 10px;
  }
  #refresh {
    font-size: 10px;
  }
  .entry-grid,
  .place-grid {
    grid-template-columns: 1fr;
  }
  .empty-state h3 {
    font-size: 21px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .how-it-works > div {
    padding-left: 30px;
  }
  .how-it-works > div > span {
    position: absolute;
  }
  .dialog {
    padding: 23px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  input,
  select,
  textarea,
  .filters input,
  .filters select {
    font-size: 16px;
  }
  .filters {
    flex-direction: column;
  }
  .filters > label {
    width: 100%;
  }
  .detail-dialog h2 {
    font-size: 34px;
  }
  .detail-photos {
    grid-template-columns: 1fr;
  }
  .photo-preview img {
    height: 85px;
  }
  .form-footer {
    gap: 10px;
  }
  .form-footer .button {
    padding: 11px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Customer journey: trips, story timeline, and a calm editor. */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .hero-caption {
  margin: 16px 0 0;
  font-size: 11px;
}
.section-description {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 23px;
  border: 1px solid #d1dacc;
  background: #edf1e8;
  border-radius: 9px;
  margin: 0 0 22px;
}
.notice strong {
  font-size: 14px;
  font-weight: 550;
}
.notice p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #66705f;
}
.demo-banner {
  background: #efe8da;
  border-color: #daceb7;
}
.inline-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.journal {
  padding-top: 22px;
}
.journal .stats {
  margin-top: 24px;
}
.journal-toolbar {
  align-items: stretch;
}
.view-switch {
  flex-wrap: wrap;
}
.view-switch button {
  min-height: 38px;
  padding: 8px 15px;
}
.search-field input {
  height: 100%;
  font-size: 12px;
}
.trip-context {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 22px 0;
  background: #f0ece2;
}
.trip-context > div {
  flex: 1;
  min-width: 0;
}
.trip-context h3 {
  font:
    24px/1.3 Georgia,
    serif;
  overflow-wrap: anywhere;
}
.trip-context p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
  gap: 16px;
}
.filter-row select {
  font-size: 12px;
  padding: 10px;
  background: transparent;
}
#result-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.trip-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  text-align: left;
  padding: 0;
  min-width: 0;
  transition: transform 0.15s;
}
.trip-card:hover {
  transform: translateY(-3px);
}
.trip-card > img,
.trip-cover-placeholder {
  display: block;
  height: 180px;
  width: 100%;
  object-fit: cover;
}
.trip-cover-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ddd9c8, #b5c7b4);
  color: #637764;
  font:
    60px Georgia,
    serif;
}
.trip-copy {
  padding: 22px;
}
.trip-copy h3,
.unfiled-card h3 {
  font:
    25px/1.3 Georgia,
    serif;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.trip-copy > p:not(.eyebrow),
.unfiled-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 11px 0 20px;
  overflow-wrap: anywhere;
}
.trip-meta {
  display: block;
  font-size: 11px;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.unfiled-card {
  padding: 28px;
  border-style: dashed;
  background: #f1ede4;
  min-height: 235px;
}
.unfiled-mark {
  display: block;
  font:
    42px Georgia,
    serif;
  color: #9c8c6e;
}
.timeline-section {
  margin: 32px 0;
}
.timeline-year {
  font:
    28px Georgia,
    serif;
  margin-bottom: 26px;
  color: var(--accent);
}
.timeline-items {
  border-left: 1px solid #d9cdb7;
  margin-left: 7px;
  padding-left: 30px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 30px;
  position: relative;
}
.timeline-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b78660;
  border: 4px solid var(--paper);
  box-sizing: content-box;
  position: absolute;
  left: -39px;
  top: 11px;
}
.timeline-date {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 11px;
}
.timeline-item .entry-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}
.timeline-item .entry-cover,
.timeline-item .entry-placeholder {
  height: 100%;
  min-height: 205px;
}
.timeline-item .entry-copy {
  padding: 24px;
}
.timeline-item .entry-experience {
  -webkit-line-clamp: 2;
}
.timeline-item .entry-city {
  font-size: 29px;
}
.map-panel {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 26px;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.map-heading h3 {
  font:
    24px Georgia,
    serif;
}
.map-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}
.map-legend {
  font-size: 10px;
  color: var(--accent);
  flex-shrink: 0;
}
.world-map {
  margin: 24px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #edf2ef;
}
.world-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.world-map path {
  fill: #d3dbd0;
  stroke: #f8faf7;
  stroke-width: 0.65;
}
.world-map path.visited {
  fill: #b36b48;
  cursor: pointer;
}
.world-map path.visited:hover,
.world-map path.visited:focus {
  fill: #85432d;
  stroke: #3e493b;
  stroke-width: 2;
  outline: none;
}
.map-coverage {
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.map-coverage-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.map-coverage-score {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.map-coverage-score strong {
  font:
    42px/1.2 Georgia,
    serif;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.map-coverage-score span {
  font-size: 13px;
}
#map-coverage-count {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.map-coverage progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 16px 0 12px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  appearance: none;
  background: #e9e5dc;
  accent-color: var(--accent);
}
.map-coverage progress::-webkit-progress-bar {
  background: #e9e5dc;
  border-radius: 8px;
}
.map-coverage progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 8px;
}
.map-coverage progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 8px;
}
.map-countries {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.country-chip {
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--paper);
  padding: 9px 14px;
  font-size: 12px;
}
.trip-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin: 24px 0 9px;
}
.photo-controls {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}
.photo-preview .photo-controls button {
  position: static;
  width: 30px;
  height: 30px;
}
.cover-label {
  position: absolute;
  bottom: 8px;
  left: 7px;
  background: #fffcf7e6;
  color: #555d4d;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
  border-radius: 3px;
  padding: 5px;
}
.visit-dialog .photo-heading {
  margin-top: 12px;
}
.visit-dialog .photo-picker {
  padding: 22px;
}
#draft-status {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.members-dialog {
  max-width: 610px;
}
.member-list {
  margin: 20px 0 28px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.member-row strong {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.member-row span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
#invite-form {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
#invite-form h3,
.help-copy h3 {
  font:
    21px Georgia,
    serif;
}
.help-copy h3 {
  margin-top: 25px;
}
.help-copy p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 9px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border: 1px solid #d7dfce;
  border-radius: 8px;
  padding: 14px 20px;
  background: #f4f7ef;
  box-shadow: 0 8px 25px #333e3520;
  max-width: calc(100vw - 32px);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 1000px) {
  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-item {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px;
  }
  .timeline-item .entry-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .journal-toolbar {
    flex-wrap: wrap;
  }
  .journal-toolbar .search-field {
    flex: 1;
    min-width: 190px;
  }
}
@media (max-width: 760px) {
  .journal-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .journal-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .journal-actions #refresh {
    margin-right: auto;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .timeline-item .entry-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .timeline-date {
    padding-top: 8px;
  }
  .trip-context {
    flex-wrap: wrap;
    gap: 15px;
  }
  .trip-context > div {
    min-width: 70%;
  }
  .trip-context #all-travels {
    width: 100%;
    text-align: left;
  }
  .notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .map-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .trip-grid {
    grid-template-columns: 1fr;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    padding: 8px 10px;
    flex: 1;
    font-size: 11px;
  }
  .journal-toolbar .search-field {
    width: 100%;
  }
  .search-field input {
    font-size: 16px;
  }
  .timeline-items {
    padding-left: 20px;
  }
  .timeline-item::before {
    left: -29px;
  }
  .timeline-item .entry-card {
    display: block;
  }
  .timeline-item .entry-cover,
  .timeline-item .entry-placeholder {
    height: 175px;
    min-height: 0;
  }
  .timeline-item .entry-copy {
    padding: 19px;
  }
  .map-panel {
    padding: 18px;
  }
  .map-panel h3 {
    font-size: 22px;
  }
  .header-actions {
    gap: 10px;
  }
  #help-open {
    font-size: 10px;
    max-width: 45px;
    line-height: 1.4;
  }
  #account-name {
    max-width: 80px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .notice {
    padding: 18px;
  }
  .filter-row select {
    max-width: 190px;
  }
}
.visit-dialog .form-footer {
  position: sticky;
  bottom: -32px;
  background: var(--paper);
  padding-bottom: 16px;
  z-index: 1;
}
@media (max-width: 480px) {
  .header {
    gap: 8px;
  }
  .header .brand {
    font-size: 30px;
    gap: 8px;
  }
  .header .brand svg {
    width: 24px;
  }
  #help-open {
    max-width: 36px;
  }
  #account-name {
    max-width: 55px;
  }
  #sign-out {
    white-space: nowrap;
    font-size: 11px;
  }
  .journal[data-trip="true"] .stats,
  .journal[data-trip="true"] > .journal-heading > div:first-child {
    display: none;
  }
  .journal[data-trip="true"] .journal-heading {
    margin-bottom: 12px;
  }
  .visit-dialog .form-footer {
    bottom: -23px;
  }
}

.journal-actions {
  flex-wrap: wrap;
}

/* The timeline is home; alternate views sit behind Browse. */
.story-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}
.story-home {
  border: 0;
  background: none;
  padding: 12px 0;
  font:
    22px Georgia,
    serif;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.story-home[aria-pressed="true"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.browse-views {
  position: relative;
  font-size: 13px;
}
.browse-views summary {
  cursor: pointer;
  padding: 12px 5px;
}
.browse-views .view-switch {
  position: absolute;
  top: 45px;
  left: 0;
  z-index: 3;
  width: 260px;
  box-shadow: 0 10px 25px #353c3320;
  background: var(--paper);
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 36px;
  align-items: start;
}
.story-layout .timeline {
  min-width: 0;
}
.story-layout .timeline-section {
  position: relative;
  padding-left: 62px;
  scroll-margin-top: 45px;
}
.story-layout .timeline-year {
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 23px;
}
.story-layout .timeline-section[data-year="Undated memories"] {
  padding-left: 0;
}
.story-layout .timeline-section[data-year="Undated memories"] .timeline-year {
  position: static;
  margin-bottom: 14px;
}
.story-layout .timeline-item {
  display: block;
}
.story-layout .timeline-date {
  margin: 0 0 12px;
  padding: 0;
  font-size: 11px;
}
.story-layout .timeline-item .entry-card {
  display: block;
}
.story-layout .timeline-item .entry-cover {
  height: 260px;
  min-height: 0;
}
.story-layout .timeline-item .entry-placeholder {
  height: 120px;
  min-height: 0;
}
.story-layout .entry-copy {
  padding: 22px;
}
.history-panel {
  position: sticky;
  top: 28px;
  margin-top: 32px;
}
.history-box {
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
}
.history-box summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.history-box summary::-webkit-details-marker {
  display: none;
}
.history-title {
  font:
    25px Georgia,
    serif;
}
.history-toggle {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.history-map {
  margin: 25px 0 16px;
}
.history-map path.earlier {
  fill: #94a38d;
}
.history-count {
  font-size: 13px;
  line-height: 1.8;
  color: var(--accent);
  margin: 15px 0;
}
.history-legend {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.history-box .country-chip {
  font-size: 10px;
  padding: 6px 9px;
}
.history-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.history-year-button {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: none;
  padding: 8px 13px;
  font-size: 12px;
  cursor: pointer;
}
.history-year-button[aria-current="true"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.batch-year-link {
  display: inline-block;
  margin-bottom: 22px;
}
@media (max-width: 1000px) {
  .story-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
  }
  .story-layout .timeline-section {
    padding-left: 0;
  }
  .story-layout .timeline-year {
    position: static;
    margin-bottom: 18px;
  }
  .history-box {
    padding: 20px;
  }
}
@media (max-width: 800px) {
  .story-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .story-layout .timeline {
    width: 100%;
    order: 2;
  }
  .history-panel {
    order: 1;
    width: 100%;
    top: 0;
    z-index: 2;
    margin-top: 0;
    padding: 10px 0;
    background: var(--bg, #f8f5ef);
  }
  .history-box {
    padding: 16px 18px;
  }
  .history-title {
    font-size: 21px;
  }
  .history-map {
    max-width: 460px;
    margin: 12px auto;
  }
  .history-box .map-countries,
  .history-box > p:last-child {
    display: none;
  }
  .history-years {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 8px;
    padding-bottom: 3px;
  }
  .history-year-button {
    flex-shrink: 0;
  }
  .story-layout .timeline-section {
    scroll-margin-top: 150px;
  }
  .story-layout .timeline-item .entry-cover {
    height: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#year-recap-link {
  padding: 12px;
  width: 100%;
  border-top: 1px solid var(--line);
  text-align: left;
}

.detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.detail-actions > .danger {
  margin-right: auto;
}

.timeline-visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
