Travel — Classic Guidebook Landing
A warm, trustworthy landing page for Meridian, a fictional Lonely-Planet-style guidebook publisher, built entirely from CSS and inline SVG. A layered ridge-and-sky hero carries a stamped field-tested passport badge, a live destination search with keyboard-navigable suggestions, and count-up coverage stats. Below it sit filterable featured guidebook cards with save and add-to-trip controls, a resident-expert grid, a reader-community band, and a boarding-pass newsletter ticket with inline validation.
MCP
Code
/* ============================================================
Meridian — Classic Guidebook Landing
Palette: cream + teal + coral, serif display + clean sans
============================================================ */
:root {
--bg: #fbf7f1;
--paper: #fffdf9;
--ink: #241f1a;
--muted: #6b6259;
--teal: #1f8a8a;
--teal-deep: #14625f;
--coral: #e8623f;
--coral-deep: #c4471f;
--sand: #e7d8c3;
--gold: #caa23a;
--line: rgba(36, 31, 26, 0.12);
--line-strong: rgba(36, 31, 26, 0.22);
--shadow: 0 18px 40px -22px rgba(36, 31, 26, 0.45);
--shadow-sm: 0 6px 18px -12px rgba(36, 31, 26, 0.5);
--serif: "Playfair Display", Georgia, "Times New Roman", serif;
--sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--radius: 16px;
--maxw: 1160px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: var(--sans);
color: var(--ink);
background: var(--bg);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* subtle paper texture */
background-image:
radial-gradient(rgba(36, 31, 26, 0.025) 1px, transparent 1px);
background-size: 22px 22px;
}
img,
svg {
display: block;
max-width: 100%;
}
h1,
h2,
h3,
h4 {
font-family: var(--serif);
font-weight: 700;
line-height: 1.1;
margin: 0;
color: var(--ink);
}
p {
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
:focus-visible {
outline: 3px solid var(--teal);
outline-offset: 2px;
border-radius: 4px;
}
.skip-link {
position: absolute;
left: 12px;
top: -50px;
z-index: 100;
background: var(--ink);
color: var(--paper);
padding: 0.55rem 1rem;
border-radius: 8px;
transition: top 0.2s ease;
}
.skip-link:focus {
top: 12px;
}
/* ---------- Buttons ---------- */
.btn {
font-family: var(--sans);
font-weight: 600;
font-size: 0.95rem;
border: 1.5px solid transparent;
border-radius: 999px;
padding: 0.7rem 1.3rem;
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
color 0.2s ease;
white-space: nowrap;
}
.btn-solid {
background: var(--coral);
color: #fff;
box-shadow: var(--shadow-sm);
}
.btn-solid:hover {
background: var(--coral-deep);
transform: translateY(-2px);
}
.btn-solid:active {
transform: translateY(0);
}
/* ---------- Nav ---------- */
.nav {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
background: rgba(251, 247, 241, 0.86);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
align-items: center;
gap: 0.65rem;
margin-right: auto;
}
.brand-stamp {
color: var(--teal);
display: grid;
place-items: center;
width: 44px;
height: 44px;
flex: none;
}
.brand-words {
display: flex;
flex-direction: column;
line-height: 1.05;
}
.brand-name {
font-family: var(--serif);
font-weight: 800;
font-size: 1.25rem;
letter-spacing: 0.01em;
}
.brand-tag {
font-size: 0.66rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
}
.nav-links {
display: flex;
gap: 1.4rem;
font-weight: 500;
font-size: 0.95rem;
}
.nav-links a {
position: relative;
padding: 0.25rem 0;
color: var(--ink);
}
.nav-links a::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
height: 2px;
width: 0;
background: var(--coral);
transition: width 0.22s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-current::after {
width: 100%;
}
.nav-links a.is-current {
color: var(--teal-deep);
}
.nav-actions {
display: flex;
align-items: center;
gap: 0.9rem;
}
.trip-link {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-weight: 600;
font-size: 0.9rem;
}
.trip-dot {
display: inline-grid;
place-items: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: var(--teal);
color: #fff;
font-size: 0.72rem;
font-weight: 700;
transition: transform 0.2s ease, background 0.2s ease;
}
.trip-dot.pulse {
animation: pop 0.4s ease;
}
@keyframes pop {
40% {
transform: scale(1.45);
background: var(--coral);
}
}
.nav-toggle {
display: none;
flex-direction: column;
gap: 4px;
width: 42px;
height: 38px;
padding: 9px;
background: var(--paper);
border: 1px solid var(--line);
border-radius: 10px;
cursor: pointer;
}
.nav-toggle span {
height: 2px;
background: var(--ink);
border-radius: 2px;
transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
transform: translateY(-6px) rotate(-45deg);
}
.mobile-nav {
display: none;
flex-direction: column;
padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1rem;
background: var(--paper);
border-bottom: 1px solid var(--line);
}
.mobile-nav a {
padding: 0.75rem 0;
border-bottom: 1px solid var(--line);
font-weight: 600;
}
.mobile-nav a:last-child {
border-bottom: 0;
}
.mobile-nav.open {
display: flex;
}
/* ---------- Hero ---------- */
.hero {
position: relative;
overflow: hidden;
padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(4rem, 9vw, 6.5rem);
}
.hero-scene {
position: absolute;
inset: auto 0 0 0;
height: 62%;
z-index: 0;
}
.hero-svg {
width: 100%;
height: 100%;
}
.hero::after {
/* fade scene into page */
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 80px;
background: linear-gradient(transparent, var(--bg));
z-index: 1;
}
.hero-inner {
position: relative;
z-index: 2;
max-width: 720px;
margin: 0 auto;
text-align: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--paper);
border: 1px solid var(--line-strong);
border-radius: 999px;
padding: 0.4rem 0.95rem;
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--teal-deep);
box-shadow: var(--shadow-sm);
}
.eyebrow-stamp {
color: var(--gold);
}
.hero h1 {
font-size: clamp(2.5rem, 7vw, 4.6rem);
margin: 1.1rem 0 0.6rem;
letter-spacing: -0.01em;
}
.hero h1 em {
font-style: italic;
color: var(--coral);
}
.hero-lede {
font-size: clamp(1.02rem, 2vw, 1.2rem);
color: var(--muted);
max-width: 36em;
margin: 0 auto;
}
.hero-search {
position: relative;
display: flex;
align-items: center;
gap: 0.5rem;
margin: 1.8rem auto 0;
max-width: 540px;
background: var(--paper);
border: 1.5px solid var(--line-strong);
border-radius: 999px;
padding: 0.4rem 0.4rem 0.4rem 1rem;
box-shadow: var(--shadow);
}
.hero-search:focus-within {
border-color: var(--teal);
}
.search-ico {
color: var(--teal);
font-size: 1.2rem;
flex: none;
}
.hero-search input {
flex: 1;
border: 0;
background: transparent;
font-family: var(--sans);
font-size: 1rem;
color: var(--ink);
padding: 0.5rem 0;
min-width: 0;
}
.hero-search input:focus {
outline: none;
}
.search-suggest {
position: absolute;
top: calc(100% + 8px);
left: 0;
right: 0;
background: var(--paper);
border: 1px solid var(--line);
border-radius: 14px;
box-shadow: var(--shadow);
overflow: hidden;
z-index: 5;
text-align: left;
}
.search-suggest button {
display: flex;
width: 100%;
align-items: center;
gap: 0.6rem;
padding: 0.65rem 1rem;
background: none;
border: 0;
border-bottom: 1px solid var(--line);
font-family: var(--sans);
font-size: 0.92rem;
color: var(--ink);
cursor: pointer;
text-align: left;
}
.search-suggest button:last-child {
border-bottom: 0;
}
.search-suggest button:hover,
.search-suggest button.active {
background: var(--sand);
}
.search-suggest .s-region {
margin-left: auto;
font-size: 0.74rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.hero-stats {
list-style: none;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.5rem 1.5rem;
margin: 2.4rem auto 0;
padding: 0;
max-width: 620px;
}
.hero-stats li {
display: flex;
flex-direction: column;
}
.hero-stats strong {
font-family: var(--serif);
font-size: clamp(1.6rem, 4vw, 2.2rem);
font-weight: 800;
color: var(--teal-deep);
}
.hero-stats span {
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
/* passport / stamp badge */
.passport-badge {
position: absolute;
top: clamp(2rem, 6vw, 3.5rem);
right: clamp(1rem, 5vw, 4rem);
z-index: 2;
width: 118px;
height: 118px;
transform: rotate(-9deg);
filter: drop-shadow(0 8px 16px rgba(36, 31, 26, 0.25));
}
.pb-ring {
position: relative;
width: 100%;
height: 100%;
border-radius: 50%;
border: 3px double var(--coral);
background: var(--paper);
display: grid;
place-items: center;
color: var(--coral-deep);
}
.pb-core {
font-family: var(--serif);
font-weight: 800;
font-size: 2rem;
color: var(--teal);
}
.pb-top,
.pb-bottom {
position: absolute;
left: 0;
right: 0;
text-align: center;
font-size: 0.5rem;
font-weight: 700;
letter-spacing: 0.14em;
}
.pb-top {
top: 9px;
}
.pb-bottom {
bottom: 9px;
}
/* ---------- Ticket strip ---------- */
.strip {
background: var(--teal-deep);
color: #f4efe7;
border-top: 3px solid var(--gold);
border-bottom: 3px solid var(--gold);
}
.strip-list {
list-style: none;
margin: 0 auto;
padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
max-width: var(--maxw);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0.5rem 1.5rem;
font-size: 0.9rem;
font-weight: 500;
}
.strip-list li {
display: inline-flex;
align-items: center;
gap: 0.45rem;
}
/* ---------- Sections ---------- */
.section {
max-width: var(--maxw);
margin: 0 auto;
padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}
.section-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 1rem 1.5rem;
flex-wrap: wrap;
margin-bottom: 2rem;
}
.kicker {
display: inline-block;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--coral);
margin-bottom: 0.4rem;
}
.kicker.light {
color: var(--sand);
}
.section-head h2 {
font-size: clamp(1.8rem, 4vw, 2.6rem);
}
/* filter chips */
.filter {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.chip {
font-family: var(--sans);
font-weight: 600;
font-size: 0.85rem;
padding: 0.45rem 1rem;
border-radius: 999px;
border: 1.5px solid var(--line-strong);
background: var(--paper);
color: var(--muted);
cursor: pointer;
transition: all 0.18s ease;
}
.chip:hover {
border-color: var(--teal);
color: var(--teal-deep);
}
.chip.is-active {
background: var(--teal);
border-color: var(--teal);
color: #fff;
}
/* ---------- Guide cards ---------- */
.guide-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.6rem;
}
.guide {
position: relative;
display: flex;
flex-direction: column;
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: transform 0.2s ease, box-shadow 0.2s ease;
animation: rise 0.4s ease both;
}
.guide:hover {
transform: translateY(-6px);
box-shadow: var(--shadow);
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(16px);
}
}
.guide-cover {
position: relative;
aspect-ratio: 16 / 10;
display: grid;
place-items: end start;
padding: 1rem;
color: #fff;
}
.guide-cover svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.cover-label {
position: relative;
z-index: 1;
font-family: var(--serif);
font-weight: 800;
font-size: 1.5rem;
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
line-height: 1.05;
}
.guide-fav {
position: absolute;
top: 0.7rem;
right: 0.7rem;
z-index: 2;
width: 38px;
height: 38px;
border-radius: 50%;
border: 0;
background: rgba(255, 253, 249, 0.92);
color: var(--coral);
font-size: 1.1rem;
cursor: pointer;
display: grid;
place-items: center;
transition: transform 0.15s ease, background 0.2s ease;
}
.guide-fav:hover {
transform: scale(1.12);
}
.guide-fav[aria-pressed="true"] {
background: var(--coral);
color: #fff;
}
.guide-fav[aria-pressed="true"].beat {
animation: beat 0.4s ease;
}
@keyframes beat {
30% {
transform: scale(1.35);
}
}
.best-badge {
position: absolute;
top: 0.7rem;
left: 0.7rem;
z-index: 2;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
background: var(--gold);
color: #2a1f06;
padding: 0.28rem 0.6rem;
border-radius: 999px;
}
.guide-body {
padding: 1.1rem 1.2rem 1.3rem;
display: flex;
flex-direction: column;
gap: 0.55rem;
flex: 1;
}
.guide-meta {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.78rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.06em;
}
.guide-meta .dot {
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--line-strong);
}
.guide h3 {
font-size: 1.3rem;
}
.guide-blurb {
font-size: 0.92rem;
color: var(--muted);
flex: 1;
}
.guide-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin-top: 0.4rem;
padding-top: 0.85rem;
border-top: 1px dashed var(--line-strong);
}
.guide-rating {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-weight: 700;
font-size: 0.92rem;
color: var(--ink);
}
.guide-rating .stars {
color: var(--gold);
letter-spacing: 1px;
}
.guide-price {
font-weight: 600;
color: var(--teal-deep);
}
.add-trip {
font-family: var(--sans);
font-weight: 600;
font-size: 0.82rem;
padding: 0.45rem 0.85rem;
border-radius: 999px;
border: 1.5px solid var(--teal);
background: transparent;
color: var(--teal-deep);
cursor: pointer;
transition: all 0.18s ease;
}
.add-trip:hover {
background: var(--teal);
color: #fff;
}
.add-trip.added {
background: var(--teal-deep);
border-color: var(--teal-deep);
color: #fff;
}
.empty {
text-align: center;
color: var(--muted);
padding: 2rem 0;
font-style: italic;
}
/* ---------- Experts ---------- */
.experts {
background: linear-gradient(180deg, transparent, rgba(231, 216, 195, 0.35));
max-width: none;
}
.experts > .section-head,
.experts > .expert-grid {
max-width: var(--maxw);
margin-inline: auto;
}
.expert-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.4rem;
}
.expert {
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.5rem 1.3rem;
box-shadow: var(--shadow-sm);
transition: transform 0.2s ease;
}
.expert:hover {
transform: translateY(-4px);
}
.expert-face {
display: grid;
place-items: center;
width: 58px;
height: 58px;
border-radius: 50%;
font-family: var(--serif);
font-weight: 800;
font-size: 1.25rem;
color: #fff;
background: linear-gradient(135deg, var(--c1), var(--c2));
margin-bottom: 0.9rem;
}
.expert h3 {
font-size: 1.2rem;
}
.expert-role {
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--coral);
margin: 0.15rem 0 0.5rem;
}
.expert-bio {
font-size: 0.9rem;
color: var(--muted);
}
/* ---------- Community ---------- */
.community {
background: var(--teal-deep);
color: #f4efe7;
max-width: none;
}
.community-wrap {
max-width: var(--maxw);
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2.5rem;
align-items: center;
}
.community-copy h2 {
color: #fffdf9;
font-size: clamp(1.9rem, 4vw, 2.8rem);
margin-bottom: 0.8rem;
}
.community-copy p {
color: rgba(255, 253, 249, 0.85);
max-width: 40ch;
}
.community-stats {
display: flex;
gap: 1.8rem;
margin-top: 1.6rem;
flex-wrap: wrap;
}
.community-stats strong {
display: block;
font-family: var(--serif);
font-size: 1.9rem;
font-weight: 800;
color: var(--gold);
}
.community-stats span {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: rgba(255, 253, 249, 0.7);
}
.quote-stack {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 1rem;
}
.quote {
background: rgba(255, 253, 249, 0.07);
border: 1px solid rgba(255, 253, 249, 0.16);
border-left: 3px solid var(--coral);
border-radius: 12px;
padding: 1.1rem 1.3rem;
}
.quote p {
font-family: var(--serif);
font-style: italic;
font-size: 1.05rem;
color: #fffdf9;
}
.quote footer {
margin-top: 0.6rem;
font-size: 0.82rem;
color: rgba(255, 253, 249, 0.7);
}
/* ---------- Newsletter ticket ---------- */
.newsletter {
max-width: var(--maxw);
}
.ticket {
display: grid;
grid-template-columns: 130px 1fr;
background: var(--paper);
border: 1.5px solid var(--line-strong);
border-radius: 20px;
box-shadow: var(--shadow);
overflow: hidden;
}
.ticket-stub {
position: relative;
background: repeating-linear-gradient(
45deg,
var(--coral) 0 14px,
var(--coral-deep) 14px 28px
);
display: grid;
place-items: center;
color: #fff;
}
.ticket-stub-text {
writing-mode: vertical-rl;
transform: rotate(180deg);
font-weight: 800;
letter-spacing: 0.3em;
font-size: 0.85rem;
}
.ticket-perf {
position: absolute;
top: 0;
right: -1px;
bottom: 0;
width: 4px;
background-image: radial-gradient(
circle,
var(--paper) 0 3px,
transparent 3px
);
background-size: 4px 14px;
background-repeat: repeat-y;
background-position: center;
}
.ticket-body {
padding: clamp(1.6rem, 4vw, 2.6rem);
}
.ticket-body h2 {
font-size: clamp(1.6rem, 4vw, 2.4rem);
margin-bottom: 0.5rem;
}
.ticket-body > p {
color: var(--muted);
max-width: 46ch;
}
.news-form {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin-top: 1.4rem;
align-items: center;
}
.news-form input {
flex: 1;
min-width: 200px;
font-family: var(--sans);
font-size: 1rem;
padding: 0.75rem 1rem;
border: 1.5px solid var(--line-strong);
border-radius: 999px;
background: var(--bg);
color: var(--ink);
}
.news-form input:focus-visible {
outline-color: var(--coral);
border-color: var(--coral);
}
.news-form input.invalid {
border-color: var(--coral-deep);
background: #fdeee9;
}
.news-msg {
flex-basis: 100%;
font-size: 0.88rem;
font-weight: 600;
min-height: 1.2em;
margin-top: 0.1rem;
}
.news-msg.ok {
color: var(--teal-deep);
}
.news-msg.err {
color: var(--coral-deep);
}
.news-fine {
margin-top: 0.9rem;
font-size: 0.78rem;
color: var(--muted);
}
/* ---------- Footer ---------- */
.foot {
background: var(--ink);
color: #e9e2d8;
padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
}
.foot-inner {
max-width: var(--maxw);
margin: 0 auto;
display: flex;
flex-wrap: wrap;
gap: 2rem 3rem;
justify-content: space-between;
}
.foot-brand .brand-name {
color: #fffdf9;
font-size: 1.5rem;
}
.foot-brand p {
color: rgba(233, 226, 216, 0.7);
margin-top: 0.4rem;
max-width: 28ch;
font-size: 0.92rem;
}
.foot-cols {
display: flex;
gap: 2.5rem;
flex-wrap: wrap;
}
.foot-cols h4 {
font-family: var(--sans);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--gold);
margin-bottom: 0.7rem;
}
.foot-cols a {
display: block;
padding: 0.25rem 0;
font-size: 0.92rem;
color: rgba(233, 226, 216, 0.82);
}
.foot-cols a:hover {
color: #fffdf9;
}
.foot-note {
max-width: var(--maxw);
margin: 2rem auto 0;
padding-top: 1.2rem;
border-top: 1px solid rgba(233, 226, 216, 0.15);
font-size: 0.82rem;
color: rgba(233, 226, 216, 0.6);
}
/* ---------- Toast ---------- */
.toast {
position: fixed;
left: 50%;
bottom: 28px;
transform: translateX(-50%) translateY(20px);
background: var(--ink);
color: #fffdf9;
padding: 0.85rem 1.3rem;
border-radius: 12px;
box-shadow: var(--shadow);
font-size: 0.92rem;
font-weight: 500;
z-index: 80;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
max-width: calc(100vw - 32px);
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.toast::before {
content: "✦ ";
color: var(--gold);
}
/* ---------- Responsive ---------- */
@media (max-width: 860px) {
.nav-links,
.nav-actions .btn,
.trip-link {
display: none;
}
.nav-toggle {
display: flex;
}
.community-wrap {
grid-template-columns: 1fr;
gap: 1.8rem;
}
}
@media (max-width: 560px) {
.hero-stats {
grid-template-columns: repeat(2, 1fr);
gap: 1.2rem;
}
.passport-badge {
width: 86px;
height: 86px;
top: 0.5rem;
right: 0.5rem;
}
.pb-core {
font-size: 1.5rem;
}
.hero-search {
flex-wrap: wrap;
border-radius: 18px;
padding: 0.7rem;
}
.hero-search .btn {
width: 100%;
}
.ticket {
grid-template-columns: 1fr;
}
.ticket-stub {
height: 46px;
}
.ticket-stub-text {
writing-mode: horizontal-tb;
transform: none;
letter-spacing: 0.4em;
}
.ticket-perf {
top: auto;
bottom: -1px;
left: 0;
right: 0;
width: auto;
height: 4px;
background-image: radial-gradient(circle, var(--paper) 0 3px, transparent 3px);
background-size: 14px 4px;
background-repeat: repeat-x;
}
.section-head {
align-items: flex-start;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
}/* ============================================================
Meridian — Classic Guidebook Landing
Vanilla JS. No libs. Every interaction works.
============================================================ */
(function () {
"use strict";
/* ---------- tiny helpers ---------- */
const $ = (sel, root) => (root || document).querySelector(sel);
const $$ = (sel, root) => Array.from((root || document).querySelectorAll(sel));
const prefersReduced = window.matchMedia(
"(prefers-reduced-motion: reduce)"
).matches;
/* ---------- toast ---------- */
const toastEl = $("#toast");
let toastTimer = null;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.hidden = false;
void toastEl.offsetWidth;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => {
toastEl.classList.remove("show");
}, 2600);
}
/* ---------- smooth scroll for [data-scroll] ---------- */
function scrollToTarget(target) {
const el =
typeof target === "string" ? document.querySelector(target) : target;
if (!el) return;
el.scrollIntoView({
behavior: prefersReduced ? "auto" : "smooth",
block: "start",
});
}
$$("[data-scroll]").forEach((btn) => {
btn.addEventListener("click", () => scrollToTarget(btn.dataset.scroll));
});
/* ---------- mobile nav ---------- */
const navToggle = $(".nav-toggle");
const mobileNav = $("#mobileNav");
function closeMobileNav() {
if (!navToggle || !mobileNav) return;
navToggle.setAttribute("aria-expanded", "false");
mobileNav.classList.remove("open");
mobileNav.hidden = true;
}
function toggleMobileNav() {
if (!navToggle || !mobileNav) return;
const open = navToggle.getAttribute("aria-expanded") === "true";
if (open) {
closeMobileNav();
} else {
navToggle.setAttribute("aria-expanded", "true");
mobileNav.hidden = false;
requestAnimationFrame(() => mobileNav.classList.add("open"));
}
}
if (navToggle) navToggle.addEventListener("click", toggleMobileNav);
if (mobileNav) {
$$("a", mobileNav).forEach((a) =>
a.addEventListener("click", closeMobileNav)
);
}
window.addEventListener("resize", () => {
if (window.innerWidth > 860) closeMobileNav();
});
/* ---------- count-up stats ---------- */
function formatNumber(n) {
return n.toLocaleString("en-US");
}
function countUp(el) {
const target = parseInt(el.dataset.count, 10) || 0;
if (prefersReduced) {
el.textContent = formatNumber(target);
return;
}
const duration = 1400;
const start = performance.now();
function tick(now) {
const p = Math.min((now - start) / duration, 1);
const eased = 1 - Math.pow(1 - p, 3);
el.textContent = formatNumber(Math.round(target * eased));
if (p < 1) requestAnimationFrame(tick);
else el.textContent = formatNumber(target);
}
requestAnimationFrame(tick);
}
const counters = $$("[data-count]");
if (counters.length) {
if ("IntersectionObserver" in window) {
const io = new IntersectionObserver(
(entries, obs) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
countUp(entry.target);
obs.unobserve(entry.target);
}
});
},
{ threshold: 0.4 }
);
counters.forEach((c) => io.observe(c));
} else {
counters.forEach(countUp);
}
}
/* ============================================================
GUIDE DATA + RENDERING
============================================================ */
const GUIDES = [
{
id: "lisbon",
title: "Lisbon & the Algarve",
region: "europe",
regionLabel: "Europe",
country: "Portugal",
blurb:
"Tram 28 done right, the tascas locals queue for, and a coast walk that ends in grilled sardines.",
rating: 4.9,
reviews: 2140,
price: "$24",
best: "Apr–Jun",
c1: "#f4c9a3",
c2: "#e8623f",
scene: "coast",
},
{
id: "kyoto",
title: "Kyoto & Kansai",
region: "asia",
regionLabel: "Asia",
country: "Japan",
blurb:
"Back-route temple walks before the crowds, the ryokan that kept its old onsen, and a kaiseki worth saving for.",
rating: 4.8,
reviews: 3015,
price: "$28",
best: "Mar & Nov",
c1: "#7fb8b3",
c2: "#1f6a68",
scene: "mountain",
},
{
id: "oaxaca",
title: "Oaxaca & the South",
region: "americas",
regionLabel: "Americas",
country: "Mexico",
blurb:
"Mezcalerías with no sign on the door, market stalls by name, and hand-drawn maps of every barrio.",
rating: 4.9,
reviews: 1680,
price: "$22",
best: "Oct–Dec",
c1: "#e8a98a",
c2: "#caa23a",
scene: "city",
},
{
id: "kerry",
title: "West Ireland Coast",
region: "europe",
regionLabel: "Europe",
country: "Ireland",
blurb:
"The Wild Atlantic Way without the tour buses — sea cliffs, trad sessions, and where to wait out the rain.",
rating: 4.7,
reviews: 980,
price: "$21",
best: "May–Sep",
c1: "#5a7d3c",
c2: "#1f8a8a",
scene: "coast",
},
{
id: "hanoi",
title: "Hanoi & the North",
region: "asia",
regionLabel: "Asia",
country: "Vietnam",
blurb:
"A cheap-eats map that pays for itself by lunch, the sleeper train to Sa Pa, and tea hills above the clouds.",
rating: 4.8,
reviews: 2530,
price: "$23",
best: "Sep–Nov",
c1: "#7fb8b3",
c2: "#5a7d3c",
scene: "mountain",
},
{
id: "patagonia",
title: "Patagonia Crossing",
region: "americas",
regionLabel: "Americas",
country: "Chile & Argentina",
blurb:
"The W trek paced for real legs, border crossings without the headache, and which refugio to book first.",
rating: 4.9,
reviews: 1420,
price: "$29",
best: "Nov–Mar",
c1: "#4f9591",
c2: "#1b5b5a",
scene: "mountain",
},
];
function coverSVG(g) {
const gid = "g_" + g.id;
const scenes = {
coast:
'<path d="M0 78 Q40 70 80 78 T160 78 T240 78 T320 78 L320 200 L0 200 Z" fill="rgba(255,255,255,.18)"/>' +
'<path d="M0 92 Q60 84 120 92 T240 92 T360 92 L360 200 L0 200 Z" fill="rgba(20,40,40,.28)"/>',
mountain:
'<path d="M0 120 L70 60 L120 100 L180 40 L250 110 L320 70 L320 200 L0 200 Z" fill="rgba(20,40,40,.32)"/>' +
'<path d="M150 70 L180 40 L210 70 Z" fill="rgba(255,255,255,.55)"/>',
city:
'<g fill="rgba(20,30,40,.32)">' +
'<rect x="30" y="90" width="34" height="80"/>' +
'<rect x="72" y="60" width="30" height="110"/>' +
'<rect x="110" y="100" width="40" height="70"/>' +
'<rect x="158" y="48" width="26" height="122"/>' +
'<rect x="192" y="84" width="36" height="86"/>' +
'<rect x="236" y="66" width="30" height="104"/>' +
'<rect x="274" y="96" width="34" height="74"/></g>',
};
return (
'<svg viewBox="0 0 320 200" preserveAspectRatio="xMidYMid slice" role="img" aria-label="' +
g.country +
' cover illustration">' +
'<defs><linearGradient id="' +
gid +
'" x1="0" y1="0" x2="0" y2="1">' +
'<stop offset="0" stop-color="' +
g.c1 +
'"/><stop offset="1" stop-color="' +
g.c2 +
'"/></linearGradient></defs>' +
'<rect width="320" height="200" fill="url(#' +
gid +
')"/>' +
'<circle cx="262" cy="44" r="22" fill="rgba(255,253,233,.85)"/>' +
(scenes[g.scene] || scenes.mountain) +
"</svg>"
);
}
function stars(rating) {
const full = Math.round(rating);
return "★".repeat(full) + "☆".repeat(5 - full);
}
const tripSet = new Set();
const favSet = new Set();
function guideCard(g) {
const li = document.createElement("article");
li.className = "guide";
li.dataset.region = g.region;
li.dataset.id = g.id;
li.innerHTML =
'<div class="guide-cover">' +
coverSVG(g) +
'<span class="best-badge">Best: ' +
g.best +
"</span>" +
'<button class="guide-fav" type="button" aria-pressed="false" aria-label="Save ' +
g.title +
' to favorites">♥</button>' +
'<span class="cover-label">' +
g.title +
"</span>" +
"</div>" +
'<div class="guide-body">' +
'<p class="guide-meta">' +
g.country +
'<span class="dot"></span>' +
g.regionLabel +
"</p>" +
'<p class="guide-blurb">' +
g.blurb +
"</p>" +
'<div class="guide-foot">' +
'<span class="guide-rating"><span class="stars" aria-hidden="true">' +
stars(g.rating) +
"</span>" +
g.rating.toFixed(1) +
' <span class="sr-only">out of 5 from ' +
g.reviews +
' reviews</span></span>' +
'<span class="guide-price">' +
g.price +
"</span>" +
"</div>" +
'<button class="add-trip" type="button">+ Add to trip</button>' +
"</div>";
const fav = $(".guide-fav", li);
fav.addEventListener("click", () => {
const on = fav.getAttribute("aria-pressed") === "true";
fav.setAttribute("aria-pressed", String(!on));
if (!on) {
favSet.add(g.id);
fav.classList.add("beat");
setTimeout(() => fav.classList.remove("beat"), 400);
toast("Saved " + g.title + " to favorites");
} else {
favSet.delete(g.id);
toast("Removed " + g.title + " from favorites");
}
});
const add = $(".add-trip", li);
add.addEventListener("click", () => {
if (tripSet.has(g.id)) {
tripSet.delete(g.id);
add.classList.remove("added");
add.textContent = "+ Add to trip";
toast("Removed " + g.title + " from your trip");
} else {
tripSet.add(g.id);
add.classList.add("added");
add.textContent = "✓ In your trip";
toast("Added " + g.title + " to your trip");
}
updateTripCount();
});
return li;
}
const grid = $("#guideGrid");
const emptyState = $("#emptyState");
function renderGuides(filter) {
if (!grid) return;
grid.innerHTML = "";
const list =
filter && filter !== "all"
? GUIDES.filter((g) => g.region === filter)
: GUIDES.slice();
list.forEach((g, i) => {
const card = guideCard(g);
if (favSet.has(g.id)) {
$(".guide-fav", card).setAttribute("aria-pressed", "true");
}
if (tripSet.has(g.id)) {
const add = $(".add-trip", card);
add.classList.add("added");
add.textContent = "✓ In your trip";
}
card.style.animationDelay = (prefersReduced ? 0 : i * 60) + "ms";
grid.appendChild(card);
});
if (emptyState) emptyState.hidden = list.length > 0;
}
renderGuides("all");
$$(".filter .chip").forEach((chip) => {
chip.addEventListener("click", () => {
$$(".filter .chip").forEach((c) => {
c.classList.remove("is-active");
c.setAttribute("aria-pressed", "false");
});
chip.classList.add("is-active");
chip.setAttribute("aria-pressed", "true");
renderGuides(chip.dataset.filter);
});
});
/* ---------- trip count badge ---------- */
const tripCountEl = $("#tripCount");
function updateTripCount() {
if (!tripCountEl) return;
tripCountEl.textContent = String(tripSet.size);
tripCountEl.classList.remove("pulse");
void tripCountEl.offsetWidth;
tripCountEl.classList.add("pulse");
}
/* ============================================================
HERO SEARCH — live suggestions
============================================================ */
const PLACES = [
{ name: "Lisbon", region: "Europe", id: "lisbon" },
{ name: "Porto", region: "Europe", id: "lisbon" },
{ name: "Kyoto", region: "Asia", id: "kyoto" },
{ name: "Osaka", region: "Asia", id: "kyoto" },
{ name: "Oaxaca", region: "Americas", id: "oaxaca" },
{ name: "Mexico City", region: "Americas", id: "oaxaca" },
{ name: "Dingle", region: "Europe", id: "kerry" },
{ name: "Galway", region: "Europe", id: "kerry" },
{ name: "Hanoi", region: "Asia", id: "hanoi" },
{ name: "Sa Pa", region: "Asia", id: "hanoi" },
{ name: "Torres del Paine", region: "Americas", id: "patagonia" },
{ name: "El Chaltén", region: "Americas", id: "patagonia" },
];
const destInput = $("#dest");
const suggestBox = $("#suggest");
const searchBtn = $("#searchBtn");
let activeIdx = -1;
let currentMatches = [];
function closeSuggest() {
if (!suggestBox) return;
suggestBox.hidden = true;
suggestBox.innerHTML = "";
activeIdx = -1;
currentMatches = [];
if (destInput) destInput.setAttribute("aria-expanded", "false");
}
function highlightActive() {
if (!suggestBox) return;
$$("button", suggestBox).forEach((b, i) => {
b.classList.toggle("active", i === activeIdx);
if (i === activeIdx) b.scrollIntoView({ block: "nearest" });
});
}
function pickPlace(place) {
if (destInput) destInput.value = place.name;
closeSuggest();
toast("Opening the " + place.name + " guide");
scrollToTarget("#guides");
const card = grid && grid.querySelector('[data-id="' + place.id + '"]');
if (card && !prefersReduced) {
card.animate(
[
{ boxShadow: "0 0 0 0 rgba(31,138,138,0)" },
{ boxShadow: "0 0 0 4px rgba(31,138,138,.45)" },
{ boxShadow: "0 0 0 0 rgba(31,138,138,0)" },
],
{ duration: 1200, easing: "ease-out" }
);
}
}
function renderSuggest(query) {
if (!suggestBox) return;
const q = query.trim().toLowerCase();
if (!q) {
closeSuggest();
return;
}
currentMatches = PLACES.filter((p) =>
p.name.toLowerCase().includes(q)
).slice(0, 6);
if (!currentMatches.length) {
suggestBox.innerHTML =
'<button type="button" disabled style="cursor:default;color:var(--muted)">No match — try Lisbon, Kyoto or Oaxaca</button>';
suggestBox.hidden = false;
activeIdx = -1;
return;
}
suggestBox.innerHTML = currentMatches
.map(
(p) =>
'<button type="button"><span aria-hidden="true">📍</span> ' +
p.name +
'<span class="s-region">' +
p.region +
"</span></button>"
)
.join("");
$$("button", suggestBox).forEach((b, i) => {
if (currentMatches[i]) {
b.addEventListener("click", () => pickPlace(currentMatches[i]));
b.addEventListener("mousemove", () => {
activeIdx = i;
highlightActive();
});
}
});
suggestBox.hidden = false;
activeIdx = -1;
if (destInput) destInput.setAttribute("aria-expanded", "true");
}
function runSearch() {
if (!destInput) return;
const q = destInput.value.trim();
if (!q) {
toast("Type a city, country or trail to search");
destInput.focus();
return;
}
if (activeIdx >= 0 && currentMatches[activeIdx]) {
pickPlace(currentMatches[activeIdx]);
return;
}
if (currentMatches.length) {
pickPlace(currentMatches[0]);
return;
}
toast('No guide for "' + q + '" yet — browse the collection');
scrollToTarget("#guides");
closeSuggest();
}
if (destInput) {
destInput.setAttribute("role", "combobox");
destInput.setAttribute("aria-autocomplete", "list");
destInput.setAttribute("aria-expanded", "false");
destInput.setAttribute("aria-controls", "suggest");
destInput.addEventListener("input", () => renderSuggest(destInput.value));
destInput.addEventListener("keydown", (e) => {
if (suggestBox.hidden || !currentMatches.length) {
if (e.key === "Enter") {
e.preventDefault();
runSearch();
}
return;
}
if (e.key === "ArrowDown") {
e.preventDefault();
activeIdx = (activeIdx + 1) % currentMatches.length;
highlightActive();
} else if (e.key === "ArrowUp") {
e.preventDefault();
activeIdx =
(activeIdx - 1 + currentMatches.length) % currentMatches.length;
highlightActive();
} else if (e.key === "Enter") {
e.preventDefault();
runSearch();
} else if (e.key === "Escape") {
closeSuggest();
}
});
}
if (searchBtn) searchBtn.addEventListener("click", runSearch);
document.addEventListener("click", (e) => {
if (suggestBox && !suggestBox.hidden) {
if (!e.target.closest(".hero-search")) closeSuggest();
}
});
/* ============================================================
NEWSLETTER — inline validation
============================================================ */
const newsForm = $("#newsForm");
const emailInput = $("#email");
const newsMsg = $("#newsMsg");
const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
function setNews(kind, msg) {
if (!newsMsg) return;
newsMsg.textContent = msg;
newsMsg.className = "news-msg" + (kind ? " " + kind : "");
}
if (newsForm && emailInput && newsMsg) {
newsForm.addEventListener("submit", (e) => {
e.preventDefault();
const val = emailInput.value.trim();
if (!val) {
setNews("err", "Pop in an email so we know where to send it.");
emailInput.classList.add("invalid");
emailInput.focus();
return;
}
if (!EMAIL_RE.test(val)) {
setNews("err", "That email looks off — mind checking it?");
emailInput.classList.add("invalid");
emailInput.focus();
return;
}
emailInput.classList.remove("invalid");
setNews("ok", "You're in — the next dispatch lands this Friday. ✉");
toast("Subscribed to The Dispatch");
newsForm.reset();
});
emailInput.addEventListener("input", () => {
if (emailInput.classList.contains("invalid")) {
emailInput.classList.remove("invalid");
setNews("", "");
}
});
}
/* ---------- scroll-spy ---------- */
const navLinkMap = {};
$$(".nav-links a").forEach((a) => {
const id = a.getAttribute("href");
if (id && id.startsWith("#")) navLinkMap[id.slice(1)] = a;
});
const spyTargets = ["guides", "experts", "community", "newsletter"]
.map((id) => document.getElementById(id))
.filter(Boolean);
if (spyTargets.length && "IntersectionObserver" in window) {
const spy = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
const link = navLinkMap[entry.target.id];
if (link) link.classList.toggle("is-current", entry.isIntersecting);
});
},
{ rootMargin: "-45% 0px -50% 0px" }
);
spyTargets.forEach((t) => spy.observe(t));
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&family=Work+Sans:wght@400;500;600;700&display=swap"
/>
<link rel="stylesheet" href="style.css" />
<title>Meridian — The Classic Guidebook</title>
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header class="nav" id="top">
<a class="brand" href="#top" aria-label="Meridian Guidebooks, home">
<span class="brand-stamp" aria-hidden="true">
<svg viewBox="0 0 48 48" width="40" height="40" role="img" aria-hidden="true">
<circle cx="24" cy="24" r="21" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="3 3" />
<circle cx="24" cy="24" r="15" fill="none" stroke="currentColor" stroke-width="1.5" />
<path d="M24 11 L27 22 L38 24 L27 26 L24 37 L21 26 L10 24 L21 22 Z" fill="currentColor" />
</svg>
</span>
<span class="brand-words">
<span class="brand-name">Meridian</span>
<span class="brand-tag">Guidebooks since 1974</span>
</span>
</a>
<nav class="nav-links" aria-label="Primary">
<a href="#guides">Guides</a>
<a href="#experts">Experts</a>
<a href="#community">Community</a>
<a href="#newsletter">Newsletter</a>
</nav>
<div class="nav-actions">
<a class="trip-link" href="#guides">
<span class="trip-dot" id="tripCount" aria-hidden="true">0</span>
<span>My Trip</span>
</a>
<button class="btn btn-solid" type="button" data-scroll="#newsletter">Get the kit</button>
</div>
<button class="nav-toggle" type="button" aria-expanded="false" aria-controls="mobileNav" aria-label="Toggle menu">
<span></span><span></span><span></span>
</button>
</header>
<nav class="mobile-nav" id="mobileNav" aria-label="Mobile" hidden>
<a href="#guides">Guides</a>
<a href="#experts">Experts</a>
<a href="#community">Community</a>
<a href="#newsletter">Newsletter</a>
</nav>
<main id="main">
<!-- HERO -->
<section class="hero" aria-labelledby="hero-title">
<div class="hero-scene" aria-hidden="true">
<svg viewBox="0 0 1200 520" preserveAspectRatio="xMidYMax slice" class="hero-svg">
<defs>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#fbe7c9" />
<stop offset="0.55" stop-color="#f4c9a3" />
<stop offset="1" stop-color="#e8a98a" />
</linearGradient>
<linearGradient id="ridgeBack" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#7fb8b3" />
<stop offset="1" stop-color="#4f9591" />
</linearGradient>
<linearGradient id="ridgeMid" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#2f8784" />
<stop offset="1" stop-color="#1f6a68" />
</linearGradient>
<linearGradient id="ridgeFront" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#1b5b5a" />
<stop offset="1" stop-color="#10403f" />
</linearGradient>
</defs>
<rect width="1200" height="520" fill="url(#sky)" />
<circle cx="930" cy="150" r="58" fill="#fff3df" opacity="0.92" />
<path d="M0 300 L150 230 L320 290 L470 215 L640 285 L820 220 L1000 295 L1200 245 L1200 520 L0 520 Z" fill="url(#ridgeBack)" />
<path d="M0 360 L180 300 L360 360 L520 295 L720 370 L900 300 L1080 365 L1200 320 L1200 520 L0 520 Z" fill="url(#ridgeMid)" />
<path d="M0 430 L200 380 L420 440 L640 375 L860 445 L1080 385 L1200 430 L1200 520 L0 520 Z" fill="url(#ridgeFront)" />
<g stroke="#fff3df" stroke-width="2" stroke-dasharray="2 8" stroke-linecap="round" opacity="0.7" fill="none">
<path d="M120 470 C 360 410, 560 470, 760 400 S 1080 420, 1140 360" />
</g>
</svg>
</div>
<div class="hero-inner">
<span class="eyebrow">
<span class="eyebrow-stamp" aria-hidden="true">★</span>
Trusted by travelers in 142 countries
</span>
<h1 id="hero-title">The world, <em>worth</em> the detour.</h1>
<p class="hero-lede">
Honest, on-the-ground guidebooks written by people who actually live there. No sponsored
fluff — just the routes, meals and miradors worth your one wild trip.
</p>
<div class="hero-search" role="search">
<label class="sr-only" for="dest">Search a destination</label>
<span class="search-ico" aria-hidden="true">⌖</span>
<input id="dest" type="text" autocomplete="off" placeholder="Search a city, country or trail…" />
<button class="btn btn-solid" type="button" id="searchBtn">Find a guide</button>
<div class="search-suggest" id="suggest" role="listbox" aria-label="Suggestions" hidden></div>
</div>
<ul class="hero-stats" aria-label="Catalog at a glance">
<li><strong data-count="142">0</strong><span>Countries mapped</span></li>
<li><strong data-count="3680">0</strong><span>Walking routes</span></li>
<li><strong data-count="58">0</strong><span>Resident experts</span></li>
<li><strong data-count="29">0</strong><span>Languages</span></li>
</ul>
</div>
<div class="passport-badge" aria-hidden="true">
<div class="pb-ring">
<span class="pb-top">★ MERIDIAN ★ FIELD TESTED ★</span>
<span class="pb-bottom">EST · 1974 · ON FOOT</span>
<span class="pb-core">FT</span>
</div>
</div>
</section>
<!-- TICKET STRIP -->
<section class="strip" aria-label="What's inside every guide">
<ul class="strip-list">
<li><span aria-hidden="true">🧭</span> Day-by-day itineraries</li>
<li><span aria-hidden="true">🍜</span> Where locals actually eat</li>
<li><span aria-hidden="true">🗺️</span> Hand-drawn neighborhood maps</li>
<li><span aria-hidden="true">💸</span> Real costs, every budget</li>
<li><span aria-hidden="true">🚆</span> Getting around without the scams</li>
</ul>
</section>
<!-- FEATURED GUIDES -->
<section class="section" id="guides" aria-labelledby="guides-title">
<div class="section-head">
<div>
<span class="kicker">The collection</span>
<h2 id="guides-title">Featured guidebooks</h2>
</div>
<div class="filter" role="group" aria-label="Filter guides by region">
<button class="chip is-active" type="button" data-filter="all" aria-pressed="true">All</button>
<button class="chip" type="button" data-filter="europe" aria-pressed="false">Europe</button>
<button class="chip" type="button" data-filter="asia" aria-pressed="false">Asia</button>
<button class="chip" type="button" data-filter="americas" aria-pressed="false">Americas</button>
</div>
</div>
<div class="guide-grid" id="guideGrid">
<!-- cards injected by script.js -->
</div>
<p class="empty" id="emptyState" hidden>No guides in this region yet — try another filter.</p>
</section>
<!-- EXPERTS -->
<section class="section experts" id="experts" aria-labelledby="experts-title">
<div class="section-head">
<div>
<span class="kicker">Who writes these</span>
<h2 id="experts-title">Resident experts, not tourists</h2>
</div>
</div>
<div class="expert-grid">
<article class="expert">
<span class="expert-face" style="--c1:#1f8a8a;--c2:#e8623f" aria-hidden="true">AM</span>
<h3>Amara Okafor</h3>
<p class="expert-role">Lagos & West Africa</p>
<p class="expert-bio">Food writer who has eaten at every suya stand worth the queue. 9 editions, zero shortcuts.</p>
</article>
<article class="expert">
<span class="expert-face" style="--c1:#e8623f;--c2:#caa23a" aria-hidden="true">TN</span>
<h3>Takeshi Nakamura</h3>
<p class="expert-role">Kyoto & Kansai</p>
<p class="expert-bio">Hikes the Kumano Kodo twice a year. Knows which ryokan still keeps the old onsen.</p>
</article>
<article class="expert">
<span class="expert-face" style="--c1:#5a7d3c;--c2:#1f8a8a" aria-hidden="true">SV</span>
<h3>Sofía Vargas</h3>
<p class="expert-role">Oaxaca & the South</p>
<p class="expert-bio">Cartographer turned guide. Every map in our Mexico volume is drawn by her hand.</p>
</article>
<article class="expert">
<span class="expert-face" style="--c1:#3a6ea5;--c2:#e8623f" aria-hidden="true">LR</span>
<h3>Liam Ríordáin</h3>
<p class="expert-role">West Ireland coast</p>
<p class="expert-bio">Walked all 2,500km of the Wild Atlantic Way. Twice. In the rain. On purpose.</p>
</article>
</div>
</section>
<!-- COMMUNITY -->
<section class="section community" id="community" aria-labelledby="community-title">
<div class="community-wrap">
<div class="community-copy">
<span class="kicker light">From the road</span>
<h2 id="community-title">A million notes in the margins</h2>
<p>
Readers mark up every Meridian. Their corrections, new finds and warnings flow straight
into the next edition — so each guide quietly gets better between trips.
</p>
<div class="community-stats">
<div><strong>1.2M</strong><span>Marginal notes</span></div>
<div><strong>94%</strong><span>Routes verified yearly</span></div>
<div><strong>4.8★</strong><span>Reader rating</span></div>
</div>
</div>
<ul class="quote-stack" aria-label="Reader notes">
<li class="quote">
<p>"Followed the Lisbon back-streets walk at dawn — had the miradouro completely to myself."</p>
<footer>— Priya, on the Portugal edition</footer>
</li>
<li class="quote">
<p>"The 'avoid this taxi line' tip alone paid for the book three times over in Marrakech."</p>
<footer>— Daniel, on the Morocco edition</footer>
</li>
<li class="quote">
<p>"Cheap-eats map for Hanoi is unbeatable. Ate like royalty for the price of a coffee."</p>
<footer>— Mei, on the Vietnam edition</footer>
</li>
</ul>
</div>
</section>
<!-- NEWSLETTER -->
<section class="section newsletter" id="newsletter" aria-labelledby="news-title">
<div class="ticket">
<div class="ticket-stub" aria-hidden="true">
<span class="ticket-stub-text">BOARDING · PASS</span>
<span class="ticket-perf"></span>
</div>
<div class="ticket-body">
<span class="kicker">The dispatch</span>
<h2 id="news-title">One great trip idea, every Friday.</h2>
<p>Seasonal routes, off-peak windows and a fresh local tip from our experts. No spam, unsubscribe anytime.</p>
<form class="news-form" id="newsForm" novalidate>
<label class="sr-only" for="email">Email address</label>
<input id="email" name="email" type="email" inputmode="email" placeholder="you@example.com" required />
<button class="btn btn-solid" type="submit">Send me the dispatch</button>
<p class="news-msg" id="newsMsg" role="status" aria-live="polite"></p>
</form>
<p class="news-fine">Fictional newsletter — nothing is actually sent.</p>
</div>
</div>
</section>
</main>
<footer class="foot">
<div class="foot-inner">
<div class="foot-brand">
<span class="brand-name">Meridian</span>
<p>Guidebooks for people who'd rather walk it.</p>
</div>
<nav class="foot-cols" aria-label="Footer">
<div>
<h4>Guides</h4>
<a href="#guides">Europe</a><a href="#guides">Asia</a><a href="#guides">Americas</a>
</div>
<div>
<h4>Company</h4>
<a href="#experts">Our experts</a><a href="#community">Community</a><a href="#top">About</a>
</div>
<div>
<h4>More</h4>
<a href="#newsletter">Newsletter</a><a href="#top">Press</a><a href="#top">Stockists</a>
</div>
</nav>
</div>
<p class="foot-note">© 1974–2026 Meridian Guidebooks · Fictional demo · Made on the road.</p>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
<script src="script.js"></script>
</body>
</html>Classic Guidebook Landing
A cream-teal-and-coral landing page for Meridian Guidebooks, a fictional independent publisher in the Lonely-Planet mould. The mood is practical and credible: a friendly Playfair Display serif paired with Work Sans, a subtle paper-grain background, and travel ephemera — a circular stamped “field tested” passport badge, a ticket strip of what’s inside every guide, and a perforated boarding-pass newsletter card. The hero scene — sky, three mountain ridges and a dashed trail — is layered inline SVG, and every guidebook cover is a gradient-and-silhouette illustration generated in JavaScript, so there are no external images anywhere.
The page is genuinely interactive. The hero destination search filters a place list as you
type and shows a suggestion listbox you can drive entirely from the keyboard (arrow keys, Enter,
Escape), jumping to and pulsing the matching guide card. The featured guides grid is built and
re-rendered in JS: region chips filter the collection, each card has a heart save toggle and an
add-to-trip button that updates the nav trip counter, and ratings, price tiers and best-time
badges round out the detail. Coverage stats count up when scrolled into view, the newsletter
form validates inline before confirming, and a mobile menu, scroll-spy nav, toast helper and a
prefers-reduced-motion guard complete it. Contrast meets WCAG AA and the layout reflows cleanly
to ~360px.
Illustrative travel UI only — fictional destinations, prices, and maps.