/* Playfulspirit — budget travel reference.
   Identity: warm travel-journal paper, terracotta "ticket" accents, perforated slips. */

:root {
  --paper: #fdf7ef;
  --paper-2: #fffdf9;
  --ink: #2b2f38;
  --muted: #7a7468;
  --line: #e6dccb;
  --coral: #df5f3b;
  --teal: #1f7a72;
  --gold: #e0a63a;
  --shadow: 0 10px 30px rgba(80, 54, 20, .09);
  --accent: var(--coral);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0, rgba(224, 166, 58, .10), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(31, 122, 114, .08), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---- header ---- */
.site-head {
  border-bottom: 2px dashed var(--line);
  background: rgba(253, 247, 239, .92);
  backdrop-filter: blur(4px);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 16px 22px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-badge {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--coral); color: #fff;
  font: 700 15px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
  box-shadow: 3px 3px 0 rgba(31, 122, 114, .85);
}
.brand-word { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--muted); padding: 6px 11px; border-radius: 999px;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 600;
}
.nav a:hover { background: #f3e8d6; color: var(--ink); text-decoration: none; }
.nav a.is-on { background: var(--ink); color: var(--paper); }

/* ---- hero ticket ---- */
.hero { margin: 40px 0 46px; }
.ticket {
  display: grid; grid-template-columns: 150px 1fr; position: relative;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.ticket-stub {
  background: var(--coral); color: #fff; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.ticket-stub::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 0;
  border-right: 2px dashed rgba(255, 255, 255, .7);
}
.stub-top { font: 700 11px/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .16em; opacity: .9; }
.stub-code { font: 700 20px/1.15 ui-sans-serif, system-ui, sans-serif; letter-spacing: .02em; margin-top: auto; }
.stub-perf { height: 10px; background-image: radial-gradient(circle, rgba(255,255,255,.85) 2px, transparent 2.5px); background-size: 12px 12px; background-position: center; }
.ticket-body { padding: 30px 34px 34px; }
.eyebrow {
  font: 700 12px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .18em;
  text-transform: uppercase; color: var(--coral); margin: 0 0 12px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.01em; }
.hero-sub { font-size: 18px; color: #4b463c; max-width: 60ch; margin: 0; }

/* ---- category blocks ---- */
.cat-block { margin: 46px 0; scroll-margin-top: 20px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-title { display: flex; align-items: baseline; gap: 12px; font-size: 26px; margin: 0 0 6px; }
.cat-no {
  font: 700 14px/1 ui-sans-serif, system-ui, sans-serif; color: #fff;
  background: var(--accent); padding: 6px 8px; border-radius: 7px;
}
.cat-more { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); }
.cat-blurb { color: var(--muted); max-width: 74ch; margin: 4px 0 20px; }
.cat-blurb.big { font-size: 19px; color: #4b463c; }

/* ---- tip cards ---- */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tip-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper-2); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 12px; padding: 18px 18px 16px; color: var(--ink);
  box-shadow: 0 4px 14px rgba(80, 54, 20, .05);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative; overflow: hidden;
}
.tip-card::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 60px; height: 100%;
  background-image: radial-gradient(circle, var(--paper) 3px, transparent 3.5px);
  background-size: 14px 14px; opacity: .55; pointer-events: none;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(80, 54, 20, .12); text-decoration: none; }
.tip-no { font: 700 12px/1 ui-sans-serif, system-ui, sans-serif; color: var(--accent); letter-spacing: .1em; }
.tip-name { font-size: 19px; font-weight: 700; line-height: 1.24; }
.tip-meta { margin-top: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font: 600 11.5px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .03em;
  background: #f1e6d4; color: #5c5344; padding: 5px 9px; border-radius: 999px;
}
.chip-alt { background: #e2efec; color: #1f7a72; }

/* ---- article ---- */
.article { max-width: 820px; }
.breadcrumb { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; color: var(--muted); margin: 24px 0 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 8px; color: #c7bda9; }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; margin: 6px 0 20px; }
.zh { display: block; font-size: 16px; color: var(--muted); font-weight: 400; margin-top: 8px; font-family: ui-sans-serif, system-ui, sans-serif; }

.tipbox {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  margin: 0 0 34px; background: var(--paper-2); box-shadow: var(--shadow);
}
.tipbox-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent); color: #fff; padding: 11px 18px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.tipbox-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tipbox-no { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.facts { margin: 0; padding: 8px 18px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 26px; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 600; }
.fact dd { margin: 0; text-align: right; font-weight: 600; }

.sections { counter-reset: none; }
.sec { margin: 30px 0; }
.sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: 23px; margin: 0 0 12px; line-height: 1.25; }
.sec-no {
  font: 700 13px/1 ui-sans-serif, system-ui, sans-serif; color: #fff;
  background: var(--ink); padding: 6px 7px; border-radius: 6px; flex: none;
}
.sec p { margin: 0 0 15px; }
.sec p:last-child { margin-bottom: 0; }

.related-nav { margin: 46px 0 10px; padding-top: 22px; border-top: 2px dashed var(--line); }
.related-nav h2 { font-size: 18px; margin: 0 0 14px; font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: .02em; }
.tag-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 0; }
.tag {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: #e2efec; color: #1f7a72; font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px; font-weight: 600;
}
.tag:hover { background: #d0e5e0; text-decoration: none; }
.tag-dim { background: #f1e6d4; color: #9a907c; }

/* ---- legal / 404 ---- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0 20px; }
.legal-body h2 { font-size: 20px; margin: 30px 0 10px; }
.legal-body p { margin: 0 0 14px; }
.notfound { max-width: 640px; padding: 70px 22px; }
.notfound h1 { font-size: 32px; }
.back { margin: 36px 0; }
.back a { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 600; }

/* ---- footer ---- */
.site-foot { border-top: 2px dashed var(--line); margin-top: 60px; padding: 30px 0 50px; background: rgba(255,255,255,.35); }
.site-foot p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.foot-links { display: flex; gap: 10px; flex-wrap: wrap; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
.foot-links span { color: #cdc3b0; }
.foot-fine { font-size: 13px; color: #a79c88; margin-top: 14px; }

/* ---- per-chapter accents ---- */
.accent-planning { --accent: #df5f3b; }
.accent-stay { --accent: #1f7a72; }
.accent-getting-around { --accent: #3f6fb0; }
.accent-food-and-experiences { --accent: #cf7b1e; }
.accent-long-term-and-solo { --accent: #7a4fb0; }

@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { flex-direction: row; align-items: center; justify-content: space-between; }
  .ticket-stub::after { top: auto; left: 0; right: 0; bottom: -1px; height: 0; width: auto; border-right: 0; border-bottom: 2px dashed rgba(255,255,255,.7); }
  .stub-perf { display: none; }
  .facts { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
