/* unfolded.travel — hand-written, no framework.
   Mobile-first: written and tested at 390px first, everything else is a
   bonus. Palette lifted from the @thailand.unfolded carousel cards so the
   site reads as a continuation of the posts, not a different brand. */

:root {
  --berry: #5c1533;
  --blush: #ffeef4;
  --cream: #fff6ec;
  --pink: #a8134f;
  --pink-light: #ffa8c4;

  --berry-muted: rgba(255, 246, 236, 0.72);
  --blush-muted: rgba(92, 21, 51, 0.66);
  --border-on-blush: rgba(92, 21, 51, 0.14);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --radius: 14px;
  --max-width: 560px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blush);
  color: var(--berry);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.4em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

/* Belt and braces — this site ships no images, ever. */
img {
  display: none;
}

/* ---------- footer (every page) ---------- */

.site-footer {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 20px 20px 40px;
  font-size: 13px;
  color: var(--blush-muted);
  border-top: 1px solid var(--border-on-blush);
}

/* ---------- shared ".row" / ".row--cta" ----------
   Also used by the page-CTA block at the bottom of a destination page
   (see .page-cta .row--cta below) — kept here, unchanged, for that. The
   linktree page itself no longer uses these; it has its own row anatomy
   (.link / .lead / .soon), below. */

.row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  min-height: 44px;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--border-on-blush);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--berry);
  box-shadow: 0 1px 2px rgba(92, 21, 51, 0.06);
}

.row__title {
  font-weight: 700;
  font-size: 17px;
}

.row__sub {
  font-size: 14px;
  color: var(--blush-muted);
}

.row--cta {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--cream);
}

.row--cta .row__sub {
  color: var(--berry-muted);
}

/* ---------- linktree (/​<country>) ----------
   Ported from the @thailand.unfolded link-in-bio design artifact. A
   deliberately different, self-contained palette/typeface set from the
   rest of the site — a bio page has to look the same regardless of what
   else ships here — so every custom property below is scoped to
   body.linktree-page instead of living in the shared :root, and every
   selector is scoped under .linktree-page so none of it can bleed onto
   the destination page, which shares this stylesheet. */

body.linktree-page {
  --wine: #5c1533;
  --wine-dk: #4a0f27;
  --wine-dkr: #3a0a1e;
  --lt-cream: #f6efe3;
  --dim: #d4aebd;
  --faint: #a97e91;
  --rule: #7a2547;
  --lt-pink: #ffa8c4;
  --mint: #6fe0bd;

  --lt-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --lt-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --lt-label: "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;

  background: var(--wine);
  color: var(--lt-cream);
  font-family: var(--lt-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.linktree-page .page {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 22px 52px;
  overflow: hidden;
}

/* the creases of a map that gets folded and opened a lot */
.linktree-page .creases {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      90deg,
      transparent calc(33.3% - 1px),
      rgba(255, 228, 238, 0.07) 33.3%,
      transparent calc(33.3% + 1px)
    ),
    linear-gradient(
      90deg,
      transparent calc(66.6% - 1px),
      rgba(255, 228, 238, 0.07) 66.6%,
      transparent calc(66.6% + 1px)
    );
}

.linktree-page .inner {
  position: relative;
}

/* ---------- header ---------- */
.linktree-page header {
  text-align: center;
  margin-bottom: 30px;
}

.linktree-page .handle {
  font-family: var(--lt-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lt-pink);
  margin: 0 0 12px;
}

.linktree-page h1 {
  font-family: var(--lt-display);
  font-weight: 800;
  font-size: clamp(32px, 10vw, 44px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.linktree-page .bio {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--dim);
  font-size: 15px;
}

/* ---------- sections ---------- */
.linktree-page .sec {
  margin-top: 30px;
}

.linktree-page .sechead {
  font-family: var(--lt-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
}

.linktree-page .sechead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.linktree-page .stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ---------- link rows ---------- */
.linktree-page .link {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--wine-dk);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--lt-cream);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.linktree-page .link:hover,
.linktree-page .link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--lt-pink);
}

.linktree-page .link:focus-visible {
  outline: 2px solid var(--lt-pink);
  outline-offset: 3px;
}

.linktree-page .badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--wine-dkr);
  border: 1px solid var(--rule);
  font-family: var(--lt-label);
  font-weight: 600;
  font-size: 15px;
  color: var(--lt-pink);
}

.linktree-page .badge svg {
  width: 19px;
  height: 19px;
  display: block;
}

.linktree-page .txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.linktree-page .t {
  font-family: var(--lt-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.linktree-page .s {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.35;
}

.linktree-page .go {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--faint);
}

.linktree-page .go svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* the one link that is the point of the page */
.linktree-page .link.lead {
  background: var(--lt-cream);
  border-color: var(--lt-cream);
  color: var(--wine);
}

.linktree-page .link.lead .s {
  color: #8a4560;
}

.linktree-page .link.lead .go {
  color: #8a4560;
}

.linktree-page .link.lead .badge {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--lt-cream);
}

/* not built yet — visibly not a link */
.linktree-page .soon {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  padding: 13px 16px;
  color: var(--faint);
}

.linktree-page .soon .t {
  font-size: 15px;
  color: var(--faint);
}

.linktree-page .soon .tag {
  margin-left: auto;
  font-family: var(--lt-label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.linktree-page .nomon {
  font-family: var(--lt-label);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 7px;
  white-space: nowrap;
}

/* ---------- footer (linktree only) ---------- */
.linktree-page .site-footer--linktree {
  margin: 34px auto 0;
  padding: 20px 20px 40px;
  border-top: 1px solid var(--rule);
}

.linktree-page .socials {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
}

.linktree-page .socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wine-dk);
  border: 1px solid var(--rule);
  color: var(--lt-cream);
  text-decoration: none;
  transition: border-color 0.16s ease;
}

.linktree-page .socials a:hover,
.linktree-page .socials a:focus-visible {
  border-color: var(--lt-pink);
}

.linktree-page .socials a:focus-visible {
  outline: 2px solid var(--lt-pink);
  outline-offset: 2px;
}

.linktree-page .socials svg {
  width: 17px;
  height: 17px;
  display: block;
}

.linktree-page .disclosure {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .linktree-page * {
    transition: none !important;
  }
}

/* ---------- destination page (/​<country>/<city>) ---------- */

.destination__header {
  background: var(--berry);
  color: var(--cream);
  padding: 40px 20px 24px;
}

.destination__header .eyebrow {
  color: var(--pink-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.destination__header h1 {
  font-size: 30px;
}

.destination__intro {
  color: var(--berry-muted);
  margin-bottom: 0;
}

.hours-caveat {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--blush-muted);
}

.jumpnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  background: var(--blush);
  border-bottom: 1px solid var(--border-on-blush);
  padding: 10px 14px;
  margin: 12px 0 0;
}

.jumpnav a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--border-on-blush);
  color: var(--berry);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.neighbourhood {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 8px;
  scroll-margin-top: 56px;
}

.neighbourhood h2 {
  font-size: 20px;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 6px;
  display: inline-block;
}

.places {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.place {
  background: var(--cream);
  border: 1px solid var(--border-on-blush);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.place__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.place__name {
  font-size: 18px;
  margin: 0;
}

.place__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--berry);
  background: var(--pink-light);
  padding: 3px 9px;
  border-radius: 999px;
}

.place__meta {
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--blush-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.place__why {
  font-weight: 600;
  margin-bottom: 8px;
}

.place__desc,
.place__atmosphere {
  color: var(--berry);
  opacity: 0.92;
}

.place__section {
  margin: 12px 0;
}

.place__section h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pink);
  margin-bottom: 4px;
}

.place__section ul {
  margin-bottom: 0;
}

.place__hours {
  margin: 12px 0;
}

.place__hours summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
}

.place__hours ul {
  margin: 8px 0 0;
  font-size: 14px;
}

.place__website {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 640px) {
  body {
    font-size: 18px;
  }
}

/* ---------- page CTA (end of a destination list) ---------- */

.page-cta {
  margin: 3rem auto 0;
  max-width: var(--max-width);
  padding: 2rem 1.25rem 2.5rem;
  background: var(--berry);
  color: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}

.page-cta__line {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--cream);
}

.page-cta .row--cta {
  background: var(--pink-light);
  color: var(--berry);
}

.page-cta__back {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.page-cta__back a {
  color: var(--pink-light);
}

.site-footer__disclosure {
  margin: 0;
}

.site-footer__disclosure a {
  color: inherit;
  text-decoration: underline;
}
