/* =========================================================================
   SPETSES — A TRAVELER'S GUIDE
   Aegean-editorial design system
   ========================================================================= */

:root {
  /* — Sea & ink — */
  --ink:        #112B38;   /* deep sea navy — primary text */
  --ink-soft:   #3A5563;   /* muted body / secondary */
  --sea-deep:   #0B2C3D;   /* darkest panel */
  --sea:        #14546F;   /* aegean mid */
  --aegean:     #2A7CA0;   /* links / accents */
  --aegean-br:  #4AA0C2;   /* bright sea */
  --sky:        #9FC9D9;   /* pale */
  --foam:       #E9F1F1;   /* pale wash background */
  --foam-2:     #DCE9EA;

  /* — Paper & warmth — */
  --paper:      #FBF8F1;   /* warm white page */
  --paper-2:    #F4ECDE;   /* sand panel */
  --whitewash:  #FFFFFF;

  /* — Accents — */
  --terracotta: #C2613D;   /* coral/sun — sparing highlight */
  --terra-deep: #A04C2E;
  --brass:      #B08A43;   /* gold hairline / eyebrow */
  --brass-soft: #C9A968;
  --olive:      #6E7B4E;   /* pine / nature category */

  /* — Lines — */
  --rule:       rgba(17, 43, 56, 0.14);
  --rule-soft:  rgba(17, 43, 56, 0.08);

  /* — Type — */
  --display: "Cormorant Garamond", Georgia, serif;
  --text:    "Newsreader", Georgia, serif;
  --label:   "Archivo", "Helvetica Neue", sans-serif;

  --measure: 46rem;        /* reading column */
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--aegean); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

/* ---------- Reading-progress + nav ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--aegean), var(--terracotta));
  z-index: 200; transition: width .1s linear;
}

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: 1180px; margin: 0 auto; padding: 11px var(--pad);
}
.topbar .mark {
  font-family: var(--display); font-size: 23px; font-weight: 600;
  letter-spacing: .01em; color: var(--ink); white-space: nowrap;
  display: flex; align-items: baseline; gap: 9px;
}
.topbar .mark small {
  font-family: var(--label); font-size: 9.5px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brass);
}
.topnav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin-left: auto; -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); padding: 7px 11px; border-radius: 7px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--foam); color: var(--ink); }
.topnav a.active { color: var(--terracotta); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.col  { max-width: var(--measure); margin-left: 0; margin-right: auto; }
/* Keep article text and all boxes on one shared measure / left edge */
.sec-head, .cards, .rows, .subhead, .checklist, .stops, .feature {
  max-width: var(--measure); margin-left: 0; margin-right: auto;
}
section[id] { scroll-margin-top: 64px; }

.eyebrow {
  font-family: var(--label); font-size: 11.5px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--brass);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--brass); opacity: .7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: ""; width: 26px; height: 1px; background: var(--brass); opacity: .7;
}

/* Section header block */
.sec-head { margin: 0 0 clamp(28px, 4vw, 48px); }
.sec-num {
  font-family: var(--display); font-size: clamp(40px, 7vw, 84px);
  font-weight: 500; line-height: .8; color: var(--brass-soft);
  font-style: italic; opacity: .9;
}
.sec-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 6vw, 62px); line-height: 1.02;
  letter-spacing: -0.01em; margin-top: 8px; color: var(--ink);
  text-wrap: balance;
}
.sec-lede {
  font-size: clamp(19px, 2.2vw, 23px); line-height: 1.6;
  color: var(--ink-soft); margin-top: 18px; max-width: 34rem;
  font-weight: 300;
}

/* Section spacing / dividers */
.band { padding: clamp(56px, 9vw, 120px) 0; }
.band--foam { background: var(--foam); }
.band--sand { background: var(--paper-2); }
.band--sea  { background: var(--sea-deep); color: #E6EEF1; }
.band--sea .sec-title, .band--sea h3 { color: #F4F8F9; }
.band--sea .sec-lede, .band--sea p { color: #C2D4DB; }
.band--sea .eyebrow { color: var(--brass-soft); }
.band--sea .eyebrow::before, .band--sea .eyebrow.center::after { background: var(--brass-soft); }
.band--sea a { color: var(--aegean-br); }

/* ---------- Prose ---------- */
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }
.band--sea .prose strong { color: #FFFFFF; }
.prose em { font-style: italic; }
.prose .lead {
  font-size: 1.28em; line-height: 1.55; color: var(--ink); font-weight: 300;
}
.prose h3 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.1;
  margin: 1.9em 0 .5em; letter-spacing: -0.005em;
}
.prose h3:first-child { margin-top: 0; }
.prose h3 .kk {
  display: block; font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 7px;
}

/* Drop cap */
.dropcap::first-letter {
  font-family: var(--display); font-weight: 600; font-style: italic;
  font-size: 4.1em; line-height: .78; float: left;
  padding: 8px 12px 0 0; color: var(--terracotta);
}

/* Pull quote */
.pullquote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.22;
  color: var(--ink); text-wrap: balance; margin: 0;
}
.pullquote cite {
  display: block; font-family: var(--label); font-style: normal;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 18px;
}
.band--sea .pullquote { color: #F4F8F9; }

/* Pull-quote block — aligned to the reading column */
.pq-block {
  margin: clamp(40px, 6vw, 76px) 0;
  max-width: var(--measure); text-align: left; padding: 0;
}
.pq-block .pullquote { text-align: left; }
.pq-block .pullquote cite { text-align: left; }

/* Feature figure */
.feature { margin: clamp(28px, 4vw, 48px) 0; }

/* Checklist (packing) */
.checklist {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 40px;
}
.checklist li {
  break-inside: avoid; position: relative; padding: 0 0 16px 32px;
  font-size: 16.5px; line-height: 1.5; color: var(--ink-soft);
}
.checklist li b { color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--brass); background: transparent;
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 9px;
  width: 6px; height: 9px; border: solid var(--terracotta);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}
@media (max-width: 600px) { .checklist { columns: 1; } }

/* Loop itinerary stops */
.stops { list-style: none; counter-reset: stop; margin: 0; padding: 0; max-width: var(--measure); }
.stop {
  display: grid; grid-template-columns: 60px 1fr; gap: 22px;
  padding: 0 0 36px; position: relative;
}
.stop::before {
  content: ""; position: absolute; left: 29px; top: 60px; bottom: 6px;
  width: 2px; background: var(--rule);
}
.stop:last-child { padding-bottom: 0; }
.stop:last-child::before { display: none; }
.stop-num {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 28px; font-weight: 600;
  color: var(--terracotta); background: var(--paper);
  border: 2px solid var(--terracotta); position: relative; z-index: 1;
}
.stop-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.stop-head h4 { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.1; color: var(--ink); }
.stop-dur {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brass);
  white-space: nowrap;
}
.stop-body p { margin: 0 0 .7em; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.stop-note {
  font-style: italic; color: var(--sea) !important; font-size: 15.5px !important;
  border-left: 2px solid var(--sky); padding-left: 14px; margin-top: 12px !important;
}
@media (max-width: 600px) {
  .stop { grid-template-columns: 46px 1fr; gap: 16px; }
  .stop-num { width: 46px; height: 46px; font-size: 22px; }
  .stop::before { left: 22px; top: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(72px, 16vw, 168px); line-height: 1;
  letter-spacing: -0.02em; color: var(--ink); margin: 12px 0 0;
}
.hero-sub {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 3.4vw, 34px); color: var(--sea); margin: 16px 0 0;
  line-height: 1.2;
}
.hero-lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.62; color: var(--ink-soft); max-width: 32rem; margin: 0; }
.hero-lede em { color: var(--ink); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-tags span {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 100px; padding: 7px 14px;
}
.hero-figure { margin: 0; }
.hero-slot { width: 100%; aspect-ratio: 4 / 5; display: block; object-fit: cover; border-radius: 10px; box-shadow: 0 22px 48px -26px rgba(11,44,61,.45); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-slot { aspect-ratio: 16 / 10; }
}

/* ---------- Stat / fact grid ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; list-style: none; margin: 0; padding: 0;
}
.fact {
  position: relative; background: #fff;
  border: 1px solid var(--rule); border-radius: 12px;
  padding: 22px 24px 20px;
  box-shadow: 0 1px 2px rgba(17,43,56,.04);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;
}
.fact:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(17,43,56,.28); }
.fact dt {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--label); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 10px;
}
.fact dt::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }
.fact dd {
  margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.1;
  font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.fact dd small { display:block; font-family: var(--text); font-size: 14.5px; color: var(--ink-soft); font-weight: 400; line-height: 1.4; margin-top: 5px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative; background: #fff;
  border: 1px solid var(--rule); border-radius: 13px;
  padding: 28px 30px 26px;
  box-shadow: 0 1px 2px rgba(17,43,56,.04);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.card:has(.chip--beach) { background: linear-gradient(166deg, #EAF4F5 0%, #fff 56%); }
.card:has(.chip--town)  { background: linear-gradient(166deg, #F8F1E1 0%, #fff 56%); }
.card:has(.chip--magus) { background: linear-gradient(166deg, #FaEEE5 0%, #fff 56%); }
.card:has(.chip--eat)   { background: linear-gradient(166deg, #EFF4E3 0%, #fff 56%); }
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px -22px rgba(17,43,56,.34);
  border-color: rgba(17,43,56,.04);
}
.card h4 {
  font-family: var(--display); font-size: 27px; font-weight: 600;
  line-height: 1.08; color: var(--ink); margin-bottom: 9px; letter-spacing: -0.005em;
}
.card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.card p + p { margin-top: .7em; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--label); font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 5px 12px 5px 10px; border-radius: 100px; margin-bottom: 15px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--beach { background: #DCEBEF; color: #185D7C; }
.chip--town  { background: #EFE4CD; color: #94661F; }
.chip--magus { background: #F6DECF; color: #A6472A; }
.chip--eat   { background: #E6EFD3; color: #586A36; }

.card .meta {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brass);
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--rule-soft);
}

/* Restaurant / list rows */
.rows { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.row .rname {
  font-family: var(--display); font-size: 23px; font-weight: 600; color: var(--ink);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.row .rtag {
  font-family: var(--label); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass);
}
.row p { margin: 0; font-size: 16.5px; color: var(--ink-soft); line-height: 1.55; }

.subhead {
  font-family: var(--label); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta);
  margin: 38px 0 4px;
}
.subhead:first-child { margin-top: 0; }

/* ---------- Callout ---------- */
.callout {
  position: relative;
  background: linear-gradient(166deg, #F7EEDC 0%, #FCF9F2 70%);
  border: 1px solid rgba(176,138,67,.28); border-radius: 13px;
  padding: 26px 30px;
  box-shadow: 0 1px 2px rgba(17,43,56,.04);
}
.callout .ct {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 11px;
}
.callout .ct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.callout p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.band--sea .callout { background: rgba(255,255,255,.05); border-color: rgba(201,169,104,.32); }
.band--sea .callout p { color: #DCE7EB; }

/* ---------- Image slots ---------- */
image-slot {
  --is-bg: var(--foam-2);
  border-radius: 6px; overflow: hidden;
}
.figure { margin: 0; }
.figure figcaption {
  font-family: var(--label); font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-soft); margin-top: 10px; line-height: 1.4;
}
.figure figcaption b { color: var(--brass); font-weight: 600; }

/* ---------- Comparison table (Magus) ---------- */
.ctable { width: 100%; border-collapse: collapse; font-size: 17px; }
.ctable th {
  font-family: var(--label); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  text-align: left; padding: 0 0 12px; color: var(--brass-soft);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.ctable td {
  padding: 16px 24px 16px 0; vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.1); line-height: 1.5;
}
.ctable td:first-child { font-family: var(--display); font-size: 21px; color: #F4F8F9; width: 42%; font-weight: 500; }
.ctable td:last-child { color: #C2D4DB; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 8px 0; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--brass-soft), var(--rule));
}
.tl-item { position: relative; padding: 0 0 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--terracotta);
}
.tl-year {
  font-family: var(--label); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; color: var(--terracotta); text-transform: uppercase;
}
.tl-item h4 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 2px 0 5px; }
.tl-item p { margin: 0; font-size: 16px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Misc ---------- */
.lede-rule { width: 54px; height: 2px; background: var(--terracotta); margin: 0 0 26px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ---------- Footer ---------- */
.foot {
  background: var(--sea-deep); color: #9FB4BD; padding: 60px 0 70px;
  font-size: 14.5px; line-height: 1.7;
}
.foot .wrap { max-width: 760px; }
.foot h4 { font-family: var(--display); color: #EAF1F3; font-size: 28px; font-weight: 500; margin-bottom: 14px; }
.foot a { color: var(--aegean-br); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .topbar .mark small { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact dd { font-size: 26px; }
}
@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
