/*
Theme Name: Passport Plates
Author: Passport Plates Student Team
Description: A colorful, responsive food-first travel publication featuring Japan, Ghana, Türkiye and Dubai. Built for the NMAC 3108 Passport Plates project.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: passport-plates
Tags: blog, food-and-drink, photography, custom-menu, featured-images, wide-blocks
*/
:root {
  --ink: #14242d;
  --muted: #5b6870;
  --cream: #fff8ee;
  --paper: #fffdf9;
  --coral: #f45d48;
  --coral-dark: #c9402e;
  --teal: #087d75;
  --teal-dark: #075c58;
  --gold: #f0b43c;
  --plum: #69527f;
  --line: rgba(20, 36, 45, .13);
  --shadow: 0 18px 45px rgba(20, 36, 45, .12);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 5%, rgba(240,180,60,.17), transparent 25rem),
    radial-gradient(circle at 96% 22%, rgba(8,125,117,.12), transparent 28rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .8rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255,248,238,.86);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: 1.2rem;
}
.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 55%;
  color: white;
  background: conic-gradient(from 210deg, var(--teal), var(--coral), var(--gold), var(--teal));
  box-shadow: 0 8px 18px rgba(8,125,117,.25);
  transform: rotate(-7deg);
}
.brand-mark svg { width: 23px; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .72rem .9rem;
  text-decoration: none;
  font-weight: 750;
  font-size: .92rem;
  border-radius: 999px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: white; box-shadow: 0 6px 16px rgba(20,36,45,.08); }
.nav-cta { background: var(--ink)!important; color: white!important; }
.menu-toggle { display: none; border: 0; background: white; border-radius: 12px; padding: .6rem .75rem; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
section { padding: 5.6rem 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 900;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1,h2,h3,h4 { margin: 0; line-height: 1.06; letter-spacing: -.04em; }
h1,h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(3.35rem, 7vw, 7.1rem); }
h2 { font-size: clamp(2.3rem, 4vw, 4.6rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.8rem); }
p { margin: .85rem 0 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.section-head p { max-width: 42rem; color: var(--muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--coral); box-shadow: 0 10px 22px rgba(244,93,72,.25); }
.btn-secondary { background: white; border-color: var(--line); }
.btn-dark { color: white; background: var(--ink); }

.hero { min-height: 770px; display: grid; align-items: center; padding: 4.4rem 0 5.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 em { color: var(--coral); font-style: italic; }
.hero-copy .lead { margin-top: 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.badge { padding: .45rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 850; background: rgba(255,255,255,.72); border: 1px solid var(--line); }

.hero-collage { position: relative; min-height: 580px; }
.photo-tile { position: absolute; overflow: hidden; border: 9px solid white; box-shadow: var(--shadow); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile.one { width: 56%; height: 47%; left: 2%; top: 1%; border-radius: 46% 54% 50% 50% / 45% 45% 55% 55%; transform: rotate(-3deg); }
.photo-tile.two { width: 48%; height: 42%; right: 0; top: 12%; border-radius: 27px 80px 27px 80px; transform: rotate(3deg); }
.photo-tile.three { width: 45%; height: 43%; left: 6%; bottom: 0; border-radius: 70px 24px 70px 24px; transform: rotate(2deg); }
.photo-tile.four { width: 49%; height: 47%; right: 1%; bottom: 1%; border-radius: 50% 50% 38% 62% / 62% 40% 60% 38%; transform: rotate(-2deg); }
.passport-stamp {
  position: absolute;
  left: 41%;
  top: 42%;
  z-index: 3;
  width: 145px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border: 4px double var(--coral);
  border-radius: 50%;
  color: var(--coral);
  background: rgba(255,248,238,.88);
  font-weight: 950;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-10deg);
  box-shadow: 0 9px 30px rgba(20,36,45,.15);
}
.passport-stamp span { display: block; font-size: 2rem; line-height: 1; letter-spacing: 0; }

.ticker { border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.ticker-track { display: flex; width: max-content; gap: 2rem; padding: .8rem 0; animation: ticker 30s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: .7rem; font-weight: 850; white-space: nowrap; }
.ticker-item::before { content: "✦"; color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

.destination-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.destination-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  box-shadow: var(--shadow);
  text-decoration: none;
  background: var(--ink);
}
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.destination-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(12,27,35,.12) 42%, rgba(12,27,35,.92) 100%); z-index: 1; }
.destination-card:hover img { transform: scale(1.06); }
.destination-content { position: absolute; z-index: 2; inset: auto 1.25rem 1.3rem; color: white; }
.destination-content .kicker { color: #fff1b6; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 900; }
.destination-content h3 { margin-top: .35rem; font-family: Georgia, serif; font-size: 2rem; }
.destination-content p { margin-top: .5rem; color: rgba(255,255,255,.86); font-size: .9rem; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1rem; }
.price-dots { letter-spacing: .18em; font-weight: 900; }
.card-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--ink); }

.band { background: var(--ink); color: white; }
.band .lead, .band .section-head p { color: rgba(255,255,255,.72); }
.flavor-finder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: stretch; }
.finder-panel, .result-panel { border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); }
.finder-panel { background: #21343e; }
.result-panel { min-height: 390px; color: var(--ink); background: var(--paper); position: relative; overflow: hidden; }
.field { margin-top: 1.2rem; }
.field label { display: block; font-weight: 850; margin-bottom: .45rem; }
.field select { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); color: white; background: #152831; }
.result-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.result-flag { font-size: 3rem; }
.result-list { display: grid; gap: .65rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.result-list li { display: flex; gap: .7rem; align-items: start; padding: .75rem; border-radius: 14px; background: #f6eee4; }
.result-list li::before { content: "✓"; color: var(--teal); font-weight: 950; }
.result-stamp { position: absolute; right: -16px; bottom: -20px; font-size: 8rem; opacity: .06; transform: rotate(-12deg); }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.article-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-number { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--teal); font-weight: 950; }
.article-card:nth-child(2) .article-number { background: var(--coral); }
.article-card:nth-child(3) .article-number { background: var(--gold); color: var(--ink); }
.article-card:nth-child(4) .article-number { background: var(--plum); }
.article-card h3 { margin-top: 1rem; }
.article-card p { color: var(--muted); }
.article-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; font-size: .84rem; font-weight: 850; }

.itinerary-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; }
.itinerary-intro { position: sticky; top: 105px; align-self: start; }
.timeline { display: grid; gap: 1rem; }
.timeline-item { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: 1.2rem; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.time { font-weight: 950; color: var(--coral-dark); }
.timeline-item p { color: var(--muted); }

.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tip { padding: 1.3rem; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.tip-icon { font-size: 1.6rem; }
.tip h3 { margin-top: .65rem; font-size: 1.25rem; }
.tip p { color: var(--muted); font-size: .94rem; }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.7rem, 4vw, 3.2rem); border-radius: 34px; color: white; background: linear-gradient(125deg, var(--teal-dark), var(--teal) 55%, #0fa69a); box-shadow: var(--shadow); }
.cta-panel h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.cta-panel p { color: rgba(255,255,255,.8); max-width: 56ch; }
.cta-panel .btn { background: white; color: var(--teal-dark); }

.site-footer { padding: 3rem 0 2rem; background: #0f2028; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.72); }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.55); font-size: .85rem; }

.page-hero { padding: 4.8rem 0 3rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end; }
.page-hero .mini-note { padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); }

.destination-list { display: grid; gap: 1.4rem; }
.destination-row { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 420px; overflow: hidden; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.destination-row:nth-child(even) { grid-template-columns: 1.15fr .85fr; }
.destination-row:nth-child(even) .destination-row-media { order: 2; }
.destination-row-media img { width: 100%; height: 100%; object-fit: cover; }
.destination-row-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 3.2rem); }
.destination-row-copy p { color: var(--muted); }
.food-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.food-tags span { padding: .42rem .65rem; border-radius: 999px; background: #f5eadc; font-weight: 800; font-size: .78rem; }

.guide-hero { position: relative; min-height: 670px; display: grid; align-items: end; color: white; overflow: hidden; background: var(--ink); }
.guide-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.guide-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,23,30,.14), rgba(10,23,30,.92)); }
.guide-hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 0 0 4rem; }
.guide-hero h1 { max-width: 10ch; }
.guide-hero p { max-width: 60ch; color: rgba(255,255,255,.82); }
.guide-stats { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.guide-stats span { padding: .5rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(15,32,40,.45); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 850; }
.guide-layout { display: grid; grid-template-columns: .73fr 1.27fr; gap: 2.2rem; }
.guide-aside { position: sticky; top: 105px; align-self: start; padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.guide-aside a { display: block; padding: .55rem .65rem; text-decoration: none; border-radius: 10px; font-weight: 750; }
.guide-aside a:hover { background: #f5eadc; }
.guide-body section { padding: 0 0 3.2rem; }
.guide-body h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
.guide-body p { color: var(--muted); }
.dish-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; margin-top: 1.2rem; }
.dish { padding: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.dish h3 { font-size: 1.16rem; }
.dish p { font-size: .92rem; }
.budget-box { margin-top: 1.2rem; padding: 1.3rem; border-left: 5px solid var(--gold); border-radius: 0 18px 18px 0; background: #fff3d8; }
.source-box { padding: 1.1rem; background: #edf8f6; border: 1px solid rgba(8,125,117,.22); border-radius: 18px; }
.source-box a { color: var(--teal-dark); font-weight: 800; }

.article-page { max-width: 830px; margin: 0 auto; }
.article-page h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.article-deck { font-size: 1.25rem; color: var(--muted); }
.article-meta { margin-top: 1rem; color: var(--teal-dark); font-weight: 850; }
.article-body { margin-top: 3rem; }
.article-body h2 { margin-top: 2.7rem; font-size: 2.4rem; }
.article-body h3 { margin-top: 1.7rem; }
.article-body p, .article-body li { color: #40505a; }
.article-body blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-radius: 22px; background: var(--ink); color: white; font-family: Georgia, serif; font-size: 1.4rem; }
.article-body blockquote p { color: white; margin: 0; }
.article-body ul { padding-left: 1.25rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.team-card { padding: 1.35rem; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.team-initials { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-weight: 950; font-size: 1.2rem; }
.team-card:nth-child(2) .team-initials { background: var(--coral); }
.team-card:nth-child(3) .team-initials { background: var(--gold); color: var(--ink); }
.team-card:nth-child(4) .team-initials { background: var(--plum); }
.team-card h3 { margin-top: .9rem; }
.team-card p { color: var(--muted); font-size: .92rem; }

.credits-list { display: grid; gap: .8rem; }
.credit { padding: 1.1rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.credit h3 { font-size: 1.1rem; }
.credit p { font-size: .9rem; color: var(--muted); word-break: break-word; }

@media (max-width: 980px) {
  .hero-grid, .page-hero-grid, .flavor-finder, .itinerary-wrap, .guide-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-collage { min-height: 520px; }
  .destination-grid { grid-template-columns: repeat(2,1fr); }
  .tip-grid { grid-template-columns: repeat(2,1fr); }
  .itinerary-intro, .guide-aside { position: static; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  section { padding: 4rem 0; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 76px; left: 1rem; right: 1rem; padding: .75rem; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-collage { min-height: 430px; }
  .passport-stamp { width: 112px; left: 38%; top: 42%; }
  .destination-grid, .article-grid, .tip-grid, .dish-grid, .team-grid { grid-template-columns: 1fr; }
  .destination-card { min-height: 430px; }
  .section-head { align-items: start; flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .destination-row, .destination-row:nth-child(even) { grid-template-columns: 1fr; }
  .destination-row-media, .destination-row:nth-child(even) .destination-row-media { min-height: 310px; order: 0; }
  .guide-hero { min-height: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}

/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
.wp-site-blocks, .site-main { min-height: 50vh; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.screen-reader-text:focus { clip:auto!important; width:auto; height:auto; margin:0; padding:.8rem 1rem; left:1rem; top:1rem; background:var(--ink); color:#fff; z-index:100000; }
.alignwide { width:min(1320px, calc(100% - 2rem)); margin-inline:auto; }
.alignfull { width:100%; }
.wp-caption, .gallery-caption { max-width:100%; }
.sticky { outline:2px solid rgba(8,125,117,.18); }
.bypostauthor { }
.generic-content { max-width:830px; margin:0 auto; }
.generic-content > * + * { margin-top:1rem; }
.generic-content h1 { font-size:clamp(2.8rem,6vw,5.5rem); }
.generic-content h2 { margin-top:2.2rem; font-size:clamp(2rem,4vw,3.4rem); }
.generic-content a { color:var(--teal-dark); font-weight:750; }
.post-list { display:grid; gap:1rem; }
.post-card { padding:1.4rem; border:1px solid var(--line); border-radius:22px; background:var(--paper); }
.post-card h2 { font-family:Georgia,serif; font-size:2rem; }
.post-card a { text-decoration:none; }
.pagination { margin-top:2rem; }
@media (max-width:782px) { body.admin-bar .site-header { top:46px; } }
