/* Stockholm — Sweden 2017 */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef2f5;
  --text: #20262d;
  --muted: #64707c;
  --border: #dce2e8;
  --accent: #465c70;
  --accent-dark: #2e4152;
  --sidebar: #18242e;
  --sidebar-text: #eef3f6;
  --sidebar-muted: #aebbc5;
  --shadow: 0 8px 24px rgba(20, 32, 43, 0.07);
  --radius: 14px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

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

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

a:focus-visible {
  outline: 3px solid rgba(70, 92, 112, 0.35);
  outline-offset: 3px;
}

figure {
  margin: 0;
}

figcaption {
  padding: 10px 6px 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sidebar */

.page-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 34px 26px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  margin-bottom: 34px;
  color: var(--sidebar-text);
  text-decoration: none;
}

.brand-main,
.brand-sub {
  display: block;
}

.brand-main {
  font-size: 1.42rem;
  font-weight: 780;
}

.brand-sub {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 0.88rem;
}

.site-nav {
  display: grid;
  gap: 4px;
}

.site-nav a,
.sidebar-footer a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--sidebar-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.sidebar-footer a:hover,
.sidebar-footer a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: var(--sidebar-text);
}

.site-nav a.active {
  background: rgba(255,255,255,0.11);
  color: var(--sidebar-text);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 4px;
}

/* Main content */

.content {
  margin-left: 240px;
  padding: 48px clamp(26px, 5vw, 72px) 34px;
}

.content > * {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0;
  font-size: 1.8rem;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--accent-dark);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 650;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: #bdc8d1;
  background: #fafbfd;
}

.button.primary {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.button.primary:hover {
  background: #203444;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 24px 0 46px;
  border-bottom: 1px solid var(--border);
}

.hero-photo {
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  min-height: 350px;
  max-height: 570px;
  object-fit: contain;
  border-radius: 9px;
  background: #fafafa;
}

/* Overview */

.overview-section {
  padding: 46px 0 6px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.65fr);
  gap: 22px;
}

.overview-card,
.stay-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.overview-card {
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.overview-card p {
  color: var(--muted);
}

.stay-card {
  padding: 25px;
  background: var(--surface-alt);
}

.stay-card address {
  margin: 16px 0 20px;
  color: var(--muted);
  font-style: normal;
}

.stay-card dl {
  margin: 0 0 22px;
}

.stay-card dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.stay-card dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.stay-card dd {
  margin: 2px 0 0;
  font-weight: 700;
}

/* Shared sections */

.page-section {
  padding: 50px 0 6px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 20px;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

/* Photo cards */

.photo-grid {
  display: grid;
  gap: 14px;
}

.photo-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-card a {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: #fafafa;
}

.photo-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.photo-card a:hover img {
  transform: scale(1.018);
}

/* Story sections */

.story-layout,
.dinner-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.story-copy {
  padding: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.story-copy p {
  color: var(--muted);
}

.two-photo-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.two-photo-stack .photo-card img {
  height: 350px;
}

/* Feature sections */

.feature-section {
  margin-top: 52px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-section.reverse-feature {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
}

.feature-section.compact-feature {
  margin-top: 0;
  background: var(--surface);
}

.feature-copy p:not(.eyebrow) {
  color: var(--muted);
}

.feature-photo {
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 9px;
}

/* Dinner */

.dinner-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.dinner-layout .photo-card img {
  height: 430px;
}

/* More photos */

.more-photos {
  margin-top: 54px;
  padding: 26px 28px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.more-photos > div {
  max-width: 720px;
}

.more-photos p:not(.eyebrow) {
  color: var(--muted);
}

.flickr-note {
  font-size: 0.88rem;
}

/* Previous / next */

.trip-pagination {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trip-pagination a {
  min-height: 105px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trip-pagination a:hover {
  border-color: #c0cad3;
}

.trip-pagination .next {
  text-align: right;
}

.trip-pagination span {
  color: var(--muted);
  font-size: 0.82rem;
}

.trip-pagination strong {
  margin-top: 3px;
  font-size: 1.08rem;
}

/* Footer */

.footer {
  margin-top: 30px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
}

/* Responsive */

@media (max-width: 1050px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px 22px;
  }

  .brand {
    margin-bottom: 13px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }

  .sidebar-footer {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 30px 20px 26px;
  }

  .hero,
  .overview-section,
  .story-layout,
  .dinner-layout,
  .feature-section,
  .feature-section.reverse-feature {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .feature-photo {
    max-width: 760px;
  }

  .photo-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-heading > p {
    text-align: left;
  }

  .photo-grid.four-up,
  .photo-grid.three-up,
  .two-photo-stack,
  .trip-pagination {
    grid-template-columns: 1fr;
  }

  .photo-card img,
  .two-photo-stack .photo-card img,
  .dinner-layout .photo-card img {
    height: auto;
    max-height: 520px;
  }

  .more-photos,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .trip-pagination .next {
    text-align: left;
  }
}
