/* travelgridcobalt.com: shared tokens, header, footer and homepage.
   White page, serif sentence-case headings, logo teal and rose. */

:root {
  --paper: #FFFFFF;
  --mist: #F2F4F3;
  --ink: #1C3438;
  --ink-soft: #4B5E61;
  --rose: #A5434A;
  --rose-dark: #8A353C;
  --coral: #E87888;
  --line: #DCE2E0;
  --font-head: "Alike", Georgia, "Times New Roman", serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--rose);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rose-dark);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
}

/* ---------- Header: postcard row. Stamp logo, serif links, luggage-tag CTA ---------- */

.site-header {
  position: static;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  column-gap: 44px;
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
}

/* Perforated stamp edge: holes on a 10px grid, solid content box inside */
.stamp {
  display: block;
  padding: 7px;
  background: #D6E2DF;
  -webkit-mask:
    radial-gradient(circle at center, transparent 3px, #000 3.5px) -5px -5px / 10px 10px round,
    linear-gradient(#000 0 0) content-box;
  mask:
    radial-gradient(circle at center, transparent 3px, #000 3.5px) -5px -5px / 10px 10px round,
    linear-gradient(#000 0 0) content-box;
}

.stamp-face {
  display: block;
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid #B9CBC7;
}

.brand img {
  width: auto;
  height: 40px;
}

.header-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Luggage tag: notched left end with a punched hole, drawn behind the text */
.header-cta {
  grid-area: cta;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px 0 40px;
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--rose);
  border-radius: 0 5px 5px 0;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 13px), 0 13px);
}

.header-cta::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: -1;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 2px #C9767D;
}

.header-cta:hover {
  color: #FFFFFF;
}

.header-cta:hover::after {
  background: var(--rose-dark);
}

/* ---------- Hero: full-bleed photo, flat teal panel, torn edge ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 50vw, 680px);
  padding: 72px 0 104px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-inner {
  position: relative;
}

.hero-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 28px 22px;
  background: rgba(28, 52, 56, 0.9);
  color: #FFFFFF;
}

.hero h1 {
  margin: 0 0 18px;
  color: #FFFFFF;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
  text-align: center;
}

.example-bar {
  display: flex;
  gap: 10px;
}

.example-text {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.example-text svg {
  flex: none;
  color: var(--ink-soft);
}

.example-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--coral);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.example-go:hover {
  background: #F0919E;
  color: var(--ink);
}

.example-go:focus-visible {
  outline-color: #FFFFFF;
}

.hero-sub {
  max-width: 62ch;
  margin: 16px auto 0;
  color: #E4ECEA;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.hero-credit {
  position: absolute;
  left: 0;
  bottom: 30px;
  margin: 0;
  padding: 8px 18px 14px;
  background: rgba(28, 52, 56, 0.9);
  color: #FFFFFF;
  font-size: 14px;
}

.torn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 40px;
  fill: var(--paper);
}

/* ---------- First lines: four small drawings ---------- */

.ideas {
  padding: 40px 0 clamp(64px, 8vw, 96px);
}

.ideas h2 {
  margin-bottom: 36px;
  font-size: clamp(26px, 3vw, 34px);
  text-align: center;
}

.spots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spots li {
  text-align: center;
}

.spot-art {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
}

.spots h3 {
  max-width: 22ch;
  margin: 0 auto 6px;
  font-size: 19px;
  line-height: 1.3;
}

.spots p {
  max-width: 26ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- Steps: grey band with three photo cards ---------- */

.moves {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--mist);
}

.moves h2 {
  margin-bottom: clamp(32px, 4vw, 48px);
  font-size: clamp(28px, 3.4vw, 38px);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  scroll-margin-top: 16px;
}

.step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-body {
  padding: 22px 24px 26px;
}

.step-label {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 15px;
  font-weight: 600;
}

.step h3 {
  font-size: 23px;
}

.step-body > p {
  color: var(--ink-soft);
  font-size: 16px;
}

.step-body > .step-label {
  color: var(--rose);
}

.notes-title {
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.step-body > .notes-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  padding: 3px 0 3px 14px;
  border-left: 2px solid var(--coral);
  color: var(--ink-soft);
  font-size: 15.5px;
  font-style: italic;
}

.notes li + li {
  margin-top: 6px;
}

/* ---------- FAQ: heading left, quiet accordion right ---------- */

.faq {
  padding: clamp(64px, 8vw, 104px) 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.faq-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.faq-head p {
  max-width: 34ch;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 14px 44px 14px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.8px;
  background: var(--ink);
}

.faq summary::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  max-width: 64ch;
  margin: 0;
  padding: 0 0 20px;
  color: var(--ink-soft);
}

/* ---------- Closing: photo beside text ---------- */

.closing {
  padding: 0 0 clamp(64px, 8vw, 104px);
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.closing-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.closing-copy h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.closing-copy > p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 6px 0 14px;
  padding: 0 30px;
  border-radius: 4px;
  background: var(--rose);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--rose-dark);
  color: #FFFFFF;
}

.closing-copy > .cta-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 28px;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-note {
  max-width: 52ch;
  margin: 14px 0 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.footer-note a {
  color: var(--rose);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-base p {
  margin: 0;
  font-size: 14px;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 999px) {
  .spots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }

  .step {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .step img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 780px) {
  .faq-inner,
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-id {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-row {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 12px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .stamp {
    padding: 6px;
  }

  .stamp-face {
    padding: 5px 9px;
  }

  .brand img {
    height: 34px;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 16px 0 36px;
    font-size: 15px;
  }

  .header-nav {
    gap: 26px;
    padding: 0 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--mist);
  }

  .header-nav a {
    flex: 0 0 auto;
    font-size: 18px;
  }

  .header-nav a:focus-visible {
    outline-offset: -3px;
  }

  .hero {
    min-height: 0;
    padding: 0 0 56px;
    align-items: start;
  }

  .hero-photo {
    position: relative;
    height: 260px;
  }

  .hero-inner {
    margin-top: -48px;
  }

  .hero-panel {
    padding: 22px 18px 20px;
    background: var(--ink);
  }

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

  .example-bar {
    flex-direction: column;
  }

  .example-text {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .example-text svg {
    margin-top: 1px;
  }

  .hero-sub {
    text-align: left;
  }

  .hero-credit {
    top: 0;
    bottom: auto;
    padding: 6px 12px;
    font-size: 13px;
  }

  .torn {
    display: none;
  }


  .step {
    display: flex;
  }

  .step img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .step-body {
    padding: 20px 20px 24px;
  }
}

@media (max-width: 560px) {
  .spots {
    gap: 32px 16px;
  }

  .spot-art {
    width: 68px;
    height: 68px;
  }

  .spots h3 {
    font-size: 17px;
  }

  .spots p {
    font-size: 14.5px;
  }
}

@media (max-width: 339px) {
  .spots {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq summary::after {
    transition: none;
  }
}

/* hdr6:start */
/* Header v6: symmetrical postcard. Centred stamp, one-word links either side,
   a small luggage tag hanging from the top-right corner. */
.tg-head {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.tg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "l brand r";
  align-items: center;
  column-gap: 40px;
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.tg-brand {
  grid-area: brand;
  display: inline-flex;
  border-radius: 2px;
}

.tg-brand img {
  width: auto;
  height: 40px;
}

.tg-nav {
  display: contents;
}

.tg-side {
  display: flex;
  align-items: center;
  gap: 32px;
}

.tg-l {
  grid-area: l;
  justify-content: flex-end;
}

.tg-r {
  grid-area: r;
  justify-content: flex-start;
}

.tg-side a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  text-decoration: none;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.tg-side a:hover {
  color: var(--rose);
  text-decoration-line: underline;
}

/* Tag on a short string, punched hole at the top */
.tg-tag {
  position: absolute;
  top: 0;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 - 40px));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 80px;
  margin-top: 14px;
  padding: 21px 0 9px;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: var(--rose);
  border-radius: 0 0 6px 6px;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  transform: rotate(-4deg);
  transform-origin: 50% -14px;
  transition: transform .2s ease, background-color .2s ease;
}

.tg-tag::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--paper);
}

/* the string, drawn outside the clipped tag */
.tg-head::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(max(var(--gutter), calc((100vw - var(--wrap)) / 2 - 40px)) + 39px);
  width: 1.5px;
  height: 23px;
  background: #B9CBC7;
  transform: rotate(-4deg);
  transform-origin: 50% 0;
  pointer-events: none;
}

.tg-tag svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-tag:hover {
  color: #FFFFFF;
  background: var(--rose-dark);
  transform: rotate(0deg);
}

.tg-tag:focus-visible {
  clip-path: none;
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tg-tag { transition: none; }
}

@media (max-width: 640px) {
  .tg-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "l r";
    column-gap: 26px;
    row-gap: 4px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 6px;
  }

  .tg-brand {
    justify-self: center;
  }

  .tg-brand .stamp { padding: 6px; }
  .tg-brand .stamp-face { padding: 5px 9px; }
  .tg-brand img { height: 32px; }

  .tg-side { gap: 22px; }
  .tg-side a { font-size: 17.5px; }

  .tg-tag {
    right: var(--gutter);
    width: 72px;
    margin-top: 10px;
    padding: 19px 0 8px;
    font-size: 13.5px;
  }

  .tg-head::after {
    right: calc(var(--gutter) + 35px);
    height: 19px;
  }
}
/* hdr6:end */

/* blog-latest:start */
/* Homepage "From the blog" (WordPress only): newest guide with a photo, two text entries beside it. */
.latest {
  padding: clamp(56px, 7vw, 88px) 0 0;
}

.latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.latest-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
}

.latest-all {
  font-weight: 500;
}

.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.latest-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.latest-fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.latest h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.latest-main h3 {
  font-size: clamp(23px, 2.2vw, 27px);
}

.latest h3 a {
  color: var(--ink);
  text-decoration: none;
}

.latest h3 a:hover {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.latest-label {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 14.5px;
  font-weight: 600;
}

.latest-ex {
  color: var(--ink-soft);
  font-size: 16px;
}

.latest-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.latest-more {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--coral);
}

.latest-more li {
  padding: 4px 0 22px 22px;
}

.latest-more li + li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .latest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .latest-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .latest-fig img {
    aspect-ratio: 3 / 2;
  }

  .latest-more li {
    padding-left: 16px;
  }
}
/* blog-latest:end */
