:root {
  --pink-page: #FFCFDC;
  --pink-card: #FFD7E2;
  --pink-panel: #FFDBEE;
  --pink-accent: #FFA5BE;
  --link-blue: #101BEE;
  --ink: #000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  color: var(--ink);
}

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

h1, h2 {
  margin: 0;
  font-weight: 400;
}

.text-link {
  color: var(--link-blue);
  text-decoration: underline;
}

.retro-button,
.subscribe-form button {
  padding: 8px 16px;
  background: var(--pink-accent);
  outline: 1px solid black;
  outline-offset: -1px;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 27px;
  cursor: pointer;
}

/* Page + card frames, textured like the original Figma fills */
.page {
  min-height: 100vh;
  background-color: var(--pink-page);
  background-image: url("Assets/bg-tile.jpg");
  background-blend-mode: overlay;
  background-attachment: fixed;
  padding: clamp(10px, 3vw, 20px) clamp(10px, 3vw, 20px);
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 960px;
  padding: clamp(8px, 2vw, 16px);
  background-color: var(--pink-card);
  background-image: url("Assets/fg-tile.jpg");
  background-blend-mode: overlay;
  outline: 1px solid black;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Masthead */
.masthead {
  padding: 14px;
  background: var(--pink-panel);
  outline: 1px solid black;
  outline-offset: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.masthead h1 {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
}

.masthead h1 strong {
  font-weight: 700;
}

.masthead .scissors {
  flex: 0 0 auto;
  align-self: flex-start;
}

/* Fake browser address bar under the title; the REFRESH button does nothing */
.address-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.site-url {
  min-width: 0;
  padding: 4px 10px;
  background: white;
  outline: 1px solid black;
  outline-offset: -1px;
  overflow-wrap: anywhere;
}

.address-bar .retro-button {
  padding: 4px 12px;
  font-size: 16px;
  line-height: 24px;
}

.address-bar .retro-button:active {
  background: #E8819E;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45);
}

.click-here {
  font-weight: 700;
}

/* Layout: main content + sidebar */
.layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 900px) {
  .layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.main {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(14px, 3vw, 24px);
  background: var(--pink-panel);
  outline: 1px solid black;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-image {
  width: 100%;
  height: auto;
}

.hero-copy {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 24px);
}

.section-title {
  color: var(--link-blue);
  text-decoration: underline;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
}

.map-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  outline: 1px solid black;
  outline-offset: -1px;
}

/* Opening Ceremony film: poster with a big old-school play button, swapped for
   the YouTube player on click (see script.js) */
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(72px, 20%, 120px);
  aspect-ratio: 10 / 7;
  transform: translate(-50%, -50%);
  border-radius: 22% / 30%;
  background: linear-gradient(to bottom, #5c5c5c 0%, #262626 49%, #0d0d0d 51%, #2e2e2e 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 3px 10px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* Triangle */
.play-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 7 / 8;
  transform: translate(-40%, -50%);
  background: white;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Glossy highlight */
.play-button::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 4%;
  height: 45%;
  border-radius: 20% / 45%;
  background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05));
}

.video:hover .play-button,
.video:focus-visible .play-button {
  background: linear-gradient(to bottom, #ff6a6a 0%, #d40000 49%, #b00000 51%, #e01b1b 100%);
  opacity: 1;
}

/* Gallery dropdowns: a strip of sample thumbnails while closed, a grid of small
   thumbnails when open, and a lightbox carousel for the full images */
.dropdown summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

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

.dropdown-preview {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.dropdown-preview img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  outline: 1px solid black;
  outline-offset: -1px;
}

.dropdown[open] .dropdown-preview {
  display: none;
}

.dropdown-label {
  color: var(--link-blue);
  text-decoration: underline;
  font-size: 18px;
  line-height: 27px;
}

.dropdown-label::before {
  content: "▼ ";
}

.dropdown[open] .dropdown-label::before {
  content: "▲ ";
}

.thumb-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
}

.thumb {
  display: block;
  outline: 1px solid black;
  outline-offset: -1px;
}

.thumb:hover,
.thumb:focus-visible {
  outline: 3px solid var(--link-blue);
}

.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-note {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.lightbox {
  width: min(100% - 24px, 1100px);
  max-width: none;
  max-height: none;
  padding: 12px;
  border: none;
  outline: 1px solid black;
  background: var(--pink-panel);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  margin: 0 auto;
}

.lightbox-caption {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.lightbox-controls {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 900px) {
  .sidebar {
    flex: 0 0 300px;
  }
}

.panel {
  padding: 18px;
  outline: 1px solid black;
  outline-offset: -1px;
}

.day-counter {
  padding: 24px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--pink-accent) 0%, var(--pink-panel) 100%);
  font-size: 20px;
  line-height: 30px;
}

.site-nav {
  padding-top: 18px;
  padding-bottom: 30px;
  background: radial-gradient(ellipse 102.88% 102.88% at 50% 50%, var(--pink-panel) 20%, var(--pink-accent) 100%), var(--pink-panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-nav h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

.nav-list {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-list li {
  padding-left: 0.4em;
}

.site-nav a {
  font-size: 18px;
  line-height: 27px;
}

.newsletter {
  padding-top: 18px;
  padding-bottom: 30px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--pink-accent) 0%, var(--pink-panel) 100%), var(--pink-panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.newsletter-success,
.newsletter-error {
  margin: 0;
  font-size: 18px;
  line-height: 27px;
}

.subscribe-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 8px 16px;
  background: white;
  outline: 1px solid black;
  outline-offset: -1px;
  border: none;
  font-family: inherit;
  font-size: 18px;
  line-height: 27px;
}

.under-construction {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.site-footer {
  background: var(--pink-panel);
  outline-offset: -0.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
