/*
Theme Name: The Viking Abroad
Theme URI: http://localhost/wordpress9
Author: The Viking Abroad
Description: Rebuild of thevikingabroad.com from the August 2025 Wayback capture. Squarespace 7.1 layout, Orpheus-style headings, and the original pink and teal palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Text Domain: the-viking-abroad
*/

:root {
  --pink: #d8006a;
  --teal: #17a1aa;
  --ink: #111111;
  --muted: #3a3a3a;
  --line: #e6e6e6;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1440px;
  --gutter: 4vw;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.site-header {
  background: #fff;
  text-align: center;
  padding: 22px var(--gutter) 10px;
  position: relative;
  z-index: 20;
}

.logo img {
  height: 80px;
  width: auto;
  margin: 0 auto 6px;
}

.logo-text {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: 0.08em;
  color: var(--pink);
  text-decoration: none;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 8px 0 14px;
}

.primary-nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.primary-nav a:hover,
.primary-nav .is-current > a,
.primary-nav a[aria-current="page"] { color: var(--pink); }

.menu-item { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #fff;
  text-align: left;
  padding: 10px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f2f2f2;
  z-index: 30;
}

.menu-item:hover > .submenu,
.menu-item:focus-within > .submenu { display: block; }

.submenu a {
  display: block;
  padding: 8px 18px;
  letter-spacing: 0;
  font-size: 14px;
  white-space: nowrap;
}

.submenu a:hover { background: #faf7f8; }

.nav-toggle {
  display: none;
  margin: 0 auto 8px;
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 8px 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 42%;
}

.intro {
  max-width: 920px;
  margin: 72px auto 20px;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 19px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.intro .teal { color: var(--teal); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  margin-bottom: 28px;
}

.section-head h3,
.split h2,
.page-title,
.about-band h3,
.footer-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

.section-head h3 {
  color: var(--pink);
  font-size: 34px;
  text-align: center;
}

.carousel-nav {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: flex;
  gap: 14px;
}

.carousel-nav button {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #9a9a9a;
  cursor: pointer;
  padding: 0 4px;
}
.carousel-nav button:hover { color: var(--ink); }

.carousel-viewport {
  display: flex;
  gap: 36px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.card { text-align: center; }
.card-latest { flex: 0 0 calc((100% - 72px) / 3); }
.card a { text-decoration: none; }
.card-media {
  display: block;
  overflow: hidden;
  background: #f3f3f3;
}
.card-latest .card-media { aspect-ratio: 3 / 2; }
.card-portrait .card-media { aspect-ratio: 3 / 4; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-meta {
  margin: 14px 0 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.card-title {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 10px;
}
.card-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.read-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.read-more:hover { color: var(--pink); }

.split {
  max-width: var(--max);
  margin: 10px auto 30px;
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  align-items: start;
}

.split h2 {
  color: var(--pink);
  font-size: 52px;
  line-height: 1.05;
}

.split .lede {
  margin: 18px 0 28px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 190px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-left { text-align: left; }
.card-left .card-title { font-size: 22px; line-height: 1.25; }
.card-left .card-meta { color: #222; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  max-width: 124px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1.6px solid var(--pink);
  color: var(--pink);
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: transparent;
}
.btn:hover { background: var(--pink); color: #fff; }

.about-band {
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 72px 8vw 80px;
  margin-top: 30px;
}

.about-band img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 auto 28px;
}

.about-band h3 {
  font-size: 40px;
  margin-bottom: 18px;
}

.about-band p {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: 18px;
  line-height: 1.7;
}

.about-band .btn {
  border-color: #fff;
  color: #fff;
  margin-top: 18px;
  max-width: 140px;
}
.about-band .btn:hover { background: #fff; color: var(--pink); }

.site-footer {
  padding: 64px var(--gutter) 48px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 640px) 1fr;
  gap: 24px;
  align-items: start;
}

.footer-center { text-align: center; }
.footer-title {
  font-size: 40px;
  margin-bottom: 28px;
}

.footer-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.footer-links { margin-top: 8px; }
.footer-links a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-search { justify-self: end; padding-top: 46px; }
.footer-search p {
  margin: 0 0 10px;
  font-size: 16px;
  max-width: 120px;
  line-height: 1.35;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  background: #fff;
  min-width: 180px;
}
.search-form input[type="search"] {
  border: 0;
  padding: 10px 12px;
  width: 100%;
  font-size: 15px;
  outline: none;
}
.search-form button {
  border: 0;
  background: transparent;
  padding: 0 12px;
  cursor: pointer;
  color: #666;
}

.page-wrap,
.single-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px var(--gutter) 80px;
}

.page-title {
  color: var(--pink);
  font-size: 56px;
  line-height: 1;
  margin: 10px 0 12px;
}

.lede-page {
  font-size: 18px;
  margin: 0 0 36px;
  max-width: 420px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 28px;
}

.card-archive { text-align: left; }
.card-archive .card-media { aspect-ratio: 2 / 3; }
.card-archive .card-title { font-size: 22px; }

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.single-wrap .entry-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.single-meta { letter-spacing: 0.04em; font-size: 14px; margin-bottom: 24px; }
.single-meta a { color: var(--pink); text-decoration: none; }
.single-hero { margin: 0 0 28px; }
.single-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content p { margin: 0 0 1em; }
.entry-content a { color: var(--pink); }
.entry-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--pink);
  font-size: 36px;
  line-height: 1.2;
  margin: 1.5em 0 0.45em;
}
.entry-content figure { margin: 0 0 1.4em; }
.entry-content figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.about-layout { max-width: 820px; margin: 0 auto; text-align: center; }
.about-layout h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--pink);
  font-size: 40px;
  line-height: 1.2;
}
.about-layout .story { text-align: left; font-size: 18px; line-height: 1.75; }
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0;
  text-align: left;
}
.about-photos figcaption {
  margin-top: 8px;
  font-size: 14px;
}
.connect { margin-top: 10px; }
.connect h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
  margin: 0 0 40px;
}
.dest-grid a {
  text-decoration: none;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}
.dest-grid a:hover { color: var(--pink); }

.entry-pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.entry-pager a { text-decoration: none; }
.entry-pager a:hover { color: var(--pink); }

.pagination { margin-top: 36px; text-align: center; }
.pagination a, .pagination span {
  display: inline-block;
  margin: 0 4px;
  text-decoration: none;
}

.cookie {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 280px;
  background: #000;
  color: #fff;
  padding: 18px 18px 16px;
  z-index: 50;
  font-size: 14px;
  line-height: 1.45;
}
.cookie p { margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie button {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 16px;
  cursor: pointer;
}
.cookie button:hover { background: #fff; color: #000; }

.empty {
  padding: 20px 0 40px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
    padding-bottom: 12px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > .menu-item,
  .primary-nav > a { width: 100%; }
  .primary-nav a { display: block; padding: 10px 0; }
  .submenu {
    position: static;
    transform: none;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    min-width: 0;
  }
  .card-latest { flex-basis: 100%; }
  .split, .card-grid, .post-grid, .about-photos, .dest-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-search { justify-self: start; padding-top: 10px; }
  .split h2, .page-title { font-size: 40px; }
  .carousel-nav { position: static; margin-left: 16px; }
  .section-head { justify-content: center; }
}
