/*
 * THE WEEKENDER — COPENHAGEN / SATURDAY
 * Cleaned and organised for editing in Dreamweaver.
 * All images, layout rules, photo viewer and mobile styles retained.
 * The previous/next-day boxes are complete links and enlarge on hover.
 */

/* ============================================================
   01. COLOURS, RESETS AND SHARED LAYOUT
   ============================================================ */

:root {
  color-scheme: dark;
  --ink: #030b15;
  --text: #f6f2ea;
  --gold: #d9ad71;
  --gold2: #f0ce9d;
  --line: rgba(236,219,185,.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 4px;
}

h1, h2, p, figure {
  margin: 0;
}

h1, h2 {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
}

h1 em, h2 em {
  font-weight: 400;
  color: var(--gold2);
}

.wrap {
  width: min(1340px,90%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 40;
  top: -90px;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 12px;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================================
   02. TOP HEADER AND SITE NAVIGATION
   ============================================================ */

.site-header {
  height: 84px;
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 max(5vw,calc((100vw - 1340px)/2));
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg,rgba(0,7,16,.6),transparent);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand>span {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 21px;
  letter-spacing: .15em;
  white-space: nowrap;
}

.brand small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em;
  color: #ddc8ad;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
  color: #e9e4de;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--gold2);
}

.nav-break {
  color: var(--gold);
}

.site-header nav [aria-current] {
  color: var(--gold2);
}

.top-back {
  padding: 11px 14px;
  border: 1px solid #ffffff57;
  border-radius: 2px;
}

/* ============================================================
   03. LARGE OPENING PHOTOGRAPH AND HEADING
   ============================================================ */

.hero {
  height: min(830px,100svh);
  min-height: 600px;
  max-height: 950px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: .73;
  filter: saturate(.93);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#02101cf5 0%,#02101cc4 36%,#02101c40 72%,#02101c24 100%),linear-gradient(0deg,#030b15 0%,transparent 52%,#030b154d 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(200px,28vh,310px);
}

.eyebrow,.intro-label,.chapter-no,.chapter-time,.aside-kicker,.side-note,.bottom-kicker {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold2);
}

.dash {
  display: inline-block;
  background: var(--gold);
  width: 36px;
  height: 1px;
}

.sep {
  opacity: .65;
}

.hero h1 {
  font-size: clamp(58px,6.7vw,108px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-top: 29px;
  max-width: 900px;
  text-wrap: balance;
}

.hero h1 em {
  white-space: nowrap;
}

.hero-description {
  font-size: clamp(14px,1.45vw,18px);
  line-height: 1.8;
  max-width: 460px;
  margin: 26px 0 33px;
  color: #dadbdc;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 33px;
}

.gold-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-width: 212px;
  padding: 17px 19px;
  color: #071421;
  background: var(--gold);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  transition: background .2s,transform .2s;
}

.gold-button:hover {
  background: var(--gold2);
  transform: translateY(-2px);
}

.gold-button span {
  font-size: 20px;
}

.reading-time {
  font-size: 10px;
  font-weight: 700;
  color: #f5e3cd;
  letter-spacing: .15em;
}

.reading-time i {
  display: inline-block;
  height: 3px;
  width: 3px;
  margin: 0 11px 2px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 5%;
  right: 5%;
  width: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #d2c6b8;
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 600;
}

/* ============================================================
   04. INTRODUCTION BELOW THE HERO
   ============================================================ */

.opening {
  display: grid;
  grid-template-columns: 29% 1fr;
  gap: 30px;
  padding: 106px 0 110px;
  border-bottom: 1px solid var(--line);
}

.intro-label {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 13px;
  color: var(--gold);
}

.intro-label span {
  color: #8e9aaa;
}

.intro-copy {
  max-width: 820px;
}

.intro-copy h2 {
  font-size: clamp(42px,4.7vw,75px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.intro-copy p {
  max-width: 630px;
  color: #c5c7ca;
  line-height: 1.9;
  font-size: 17px;
  margin-top: 31px;
}

/* ============================================================
   05. STICKY CHAPTER MENU (LEFT COLUMN)
   ============================================================ */

.story-shell {
  display: grid;
  grid-template-columns: 24% minmax(0,1fr);
  gap: 5%;
  padding-bottom: 40px;
}

.story-aside {
  border-right: 1px solid var(--line);
}

.aside-inner {
  position: sticky;
  top: 35px;
  padding-top: 76px;
  padding-right: 22px;
}

.aside-kicker {
  color: var(--gold2);
}

.chapter-nav {
  display: grid;
  margin-top: 38px;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 3px;
  border-left: 1px solid #a6adb321;
  color: #a7aeb6;
  font-size: 13px;
  transition: color .2s,border-color .2s,background .2s;
}

.chapter-nav a:hover,.chapter-nav a.active {
  border-left-color: var(--gold);
  color: #fff;
  background: linear-gradient(90deg,#d9ad7114,transparent);
}

.chapter-nav b {
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 500;
  color: var(--gold);
  margin-left: 12px;
}

.side-note {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 39px;
  line-height: 1.9;
  color: var(--gold2);
}

.side-note small {
  color: #93a0aa;
  font-size: 9px;
  letter-spacing: .16em;
  margin-left: 16px;
}

.note-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-right: 7px;
}

/* ============================================================
   06. DIARY CHAPTERS AND GOOGLE EARTH LINKS
   ============================================================ */

.chapters {
  min-width: 0;
}

.chapter {
  padding: 85px 0 87px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.chapter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  margin-bottom: 34px;
}

.chapter-time {
  color: #a5afbb;
  font-size: 10px;
}

.chapter h2 {
  font-size: clamp(41px,4vw,68px);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.chapter-lead {
  font-size: 16px;
  line-height: 1.94;
  color: #bdc6d0;
  max-width: 685px;
  margin: 27px 0 22px;
}

.earth-link {
  color: var(--gold2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #d9ad7169;
  padding: 10px 0;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1.7;
  transition: color .2s,border-color .2s;
}

.earth-link:hover {
  color: white;
  border-color: white;
}

/* ============================================================
   07. PHOTOGRAPHS AND THE SATURDAY TWO-COLUMN GALLERY
   ============================================================ */

.photo-layout {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.photo-tile {
  position: relative;
  background: #112030;
  min-width: 0;
  overflow: hidden;
}

.image-open {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.image-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease,filter .35s ease;
}

.image-open:hover img {
  transform: scale(1.025);
  filter: brightness(1.12);
}

.photo-tile figcaption {
  padding: 11px 6px 6px;
  color: #94a1ad;
  font-size: 11px;
  letter-spacing: .035em;
  line-height: 1.4;
  background: var(--ink);
}

.photo-layout.saturday-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 100%;
  max-width: 770px;
  gap: 14px;
  margin-top: 30px;
  align-items: start;
}

.saturday-grid .photo-tile {
  min-width: 0;
  background: transparent;
  overflow: visible;
}

.saturday-grid .image-open {
  aspect-ratio: 1.37;
  background: #142131;
}

.saturday-grid .photo-tile.featured {
  grid-column: 1 / -1;
}

.saturday-grid .photo-tile.featured .image-open {
  aspect-ratio: 1.82;
}

.saturday-grid .image-open img {
  object-fit: cover;
}

.saturday-grid .photo-tile figcaption {
  padding: 10px 4px 8px;
}

.no-photo-note {
  max-width: 770px;
  border-left: 2px solid var(--gold);
  padding: 15px 20px;
  margin-top: 28px;
  color: #b8c3cc;
  background: #12202b;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
}

/* ============================================================
   08. END-OF-DAY CHAPTER
   ============================================================ */

.closing-chapter {
  padding-top: 102px;
  padding-bottom: 120px;
  text-align: center;
  border: 0;
  padding: 85px 0 87px;
}

.closing-chapter .chapter-top {
  justify-content: center;
  gap: 38px;
}

.closing-mark {
  font-family: Georgia,serif;
  color: var(--gold);
  font-size: 90px;
  line-height: .6;
  opacity: .7;
  margin: 26px;
}

.closing-chapter h2 {
  font-size: clamp(50px,6vw,96px);
}

.closing-chapter>p:not(.closing-mark) {
  max-width: 600px;
  margin: 32px auto 58px;
  font-size: 17px;
  line-height: 1.95;
  color: #c7cbd0;
}

.closing-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold2);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: left;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
}

/* ============================================================
   09. PREVIOUS / NEXT DAY BOXES — WHOLE BOX CLICKABLE
   ============================================================ */

.bottom-navigation {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 25px;
  padding: 35px 0 100px;
}

.bottom-navigation .nav-card {
  flex: 1;
  min-width: 0;
  min-height: 130px;
  padding: 28px 34px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 13px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.bottom-navigation .nav-card:hover, .bottom-navigation .nav-card:focus-visible {
  border-color: var(--gold);
}

.bottom-navigation .nav-card:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

.bottom-kicker {
  color: var(--gold2);
}

.bottom-navigation .nav-title {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.bottom-navigation .nav-card:hover .nav-title, .bottom-navigation .nav-card:focus-visible .nav-title {
  transform: scale(1.06);
}

/* ============================================================
   10. FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 5vw;
  background: #020911;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  letter-spacing: .14em;
  color: #b6bec8;
}

.footer>a:first-child {
  font-family: Georgia,serif;
  font-size: 17px;
  color: var(--text);
}

.footer a:hover {
  color: var(--gold);
}

/* ============================================================
   11. FULL-SCREEN PHOTO VIEWER (saturday.js)
   ============================================================ */

.image-dialog:not([open]) {
  display: none !important;
}

.image-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  border: 0;
  background: rgba(1,5,11,.96);
  color: #fff;
  overscroll-behavior: contain;
}

.image-dialog::backdrop {
  background: rgba(1,5,11,.96);
}

.dialog-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100dvh;
  position: relative;
}

.image-dialog figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100%;
  width: calc(100% - 140px);
  gap: 18px;
}

.image-dialog figure img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
}

.image-dialog figcaption {
  color: #b9c2cb;
  font-size: 12px;
  letter-spacing: .04em;
}

.image-dialog button {
  appearance: none;
  position: absolute;
  z-index: 5;
  color: white;
  background: #263343ad;
  border: 1px solid #a6a6a67a;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dialog-close {
  top: 22px;
  right: 26px;
  font-size: 34px;
  width: 47px;
  height: 47px;
}

.dialog-previous,.dialog-next {
  width: 43px;
  height: 56px;
  font-size: 34px;
}

.dialog-previous {
  left: 25px;
}

.dialog-next {
  right: 25px;
}

/* ============================================================
   12. TABLETS (UP TO 1050px)
   ============================================================ */

@media (max-width: 1050px) {
  .story-shell {
    grid-template-columns: 21% minmax(0,1fr);
    gap: 4%;
  }

  .opening {
    grid-template-columns: 26% 1fr;
  }

  .story-aside .chapter-nav a {
    gap: 8px;
    font-size: 12px;
  }
}

/* ============================================================
   13. PHONES AND TABLETS (UP TO 760px)
   ============================================================ */

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    padding: 0 5vw;
  }

  .brand>span {
    font-size: 15px;
  }

  .brand small {
    font-size: 7px;
  }

  .site-header nav {
    font-size: 10px;
    gap: 12px;
  }

  .site-header nav>a:not(.top-back),.site-header nav .nav-break,.site-header nav span[aria-current] {
    display: none;
  }

  .top-back {
    padding: 10px;
  }

  .hero {
    min-height: 630px;
    height: 85svh;
  }

  .hero-content {
    padding-top: 210px;
  }

  .hero h1 {
    font-size: clamp(48px,10vw,76px);
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero-description {
    font-size: 15px;
    max-width: 350px;
  }

  .hero-actions {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero-bottom {
    bottom: 26px;
  }

  .opening {
    display: block;
    padding: 70px 0;
  }

  .intro-label {
    margin-bottom: 25px;
  }

  .intro-copy h2 {
    font-size: clamp(40px,8vw,60px);
  }

  .intro-copy p {
    margin-top: 22px;
    font-size: 15px;
  }

  .story-shell {
    display: block;
  }

  .story-aside {
    display: none;
  }

  .chapter-lead {
    font-size: 15px;
  }

  .photo-layout {
    margin-top: 32px;
  }

  .bottom-navigation {
    padding: 35px 0 60px;
  }

  .footer p {
    display: none;
  }

  .chapter {
    padding: 70px 0;
  }

  .bottom-navigation .nav-card {
    padding: 19px 20px;
  }

  .bottom-navigation .nav-title {
    font-size: 19px;
  }

  .photo-layout.saturday-grid {
    gap: 10px;
  }
}

/* ============================================================
   14. SMALL PHONES (UP TO 510px)
   ============================================================ */

@media (max-width: 510px) {
  .eyebrow {
    font-size: 9px;
    gap: 8px;
    letter-spacing: .12em;
  }

  .dash {
    width: 20px;
  }

  .hero-description {
    max-width: 320px;
  }

  .hero-bottom {
    font-size: 8px;
  }

  .reading-time {
    display: none;
  }

  .story-shell {
    width: 92%;
  }

  .chapter-top {
    align-items: flex-start;
  }

  .chapter-no,.chapter-time {
    font-size: 9px;
  }

  .earth-link {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .bottom-navigation {
    flex-direction: column;
    gap: 12px;
  }

  .footer {
    font-size: 9px;
    letter-spacing: .06em;
  }

  .footer>a:first-child {
    font-size: 14px;
  }

  .image-dialog figure {
    width: calc(100% - 40px);
  }

  .image-dialog figure img {
    max-height: calc(100dvh - 180px);
  }

  .dialog-previous,.dialog-next {
    bottom: 18px;
    top: auto;
    opacity: .85;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
  }

  .photo-layout.saturday-grid {
    gap: 8px;
  }

  .saturday-grid .image-open {
    aspect-ratio: 1;
  }

  .saturday-grid .photo-tile.featured .image-open {
    aspect-ratio: 1.45;
  }

  .saturday-grid figcaption {
    font-size: 10px;
  }
}

/* ============================================================
   15. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*::before,*::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
/* ==========================================
   RESTAURANT BARR PHOTO GALLERY
   ========================================== */

/* Show the full photographs without cropping */
.saturday-grid.barr-grid .image-open,
.saturday-grid.barr-grid .photo-tile.featured .image-open {
    aspect-ratio: auto;
}

.saturday-grid.barr-grid .image-open img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Keep photographs steady on hover */
.saturday-grid.barr-grid .image-open:hover img {
    transform: none;
}

/* Display one photograph per row on phones */
@media (max-width: 510px) {

    .photo-layout.saturday-grid.barr-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .saturday-grid.barr-grid .photo-tile.featured {
        grid-column: auto;
    }
}
