/* --------- Fonts --------- */

/* Script font (swap later if you want) */
@font-face {
  font-family: "scriptDummy";
  src: url("fonts/Kadabra01-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Your “one font everywhere” */
@font-face {
  font-family: "Favorit";
  src: url("fonts/ABCDiatype-Bold.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------- Base --------- */

:root {
  --page-max: 980px;
  --flyer-max: 44rem; /* desktop flyer width */
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
  --pad-y: clamp(2.75rem, 6vw, 4.5rem);

  /* Flyer colors */
  --bg: #e8e2df;;
 
  --ink: hsl(197, 29%, 26%);



  --font-display: var(--font-all);
  --font-body: var(--font-all);
  --font-ui: var(--font-all);

  --flyer-sans: "Favorit", sans-serif;
  --flyer-serif: "Times", serif;
  --flyer-humanist: var(--font-all);

  --flyer-script: "scriptDummy", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);

  display: flex;
  justify-content: center;

  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  font-synthesis: none;

  background: var(--bg);
  position: relative;
  isolation: isolate;
}

/* --------- Subtle paper grain overlay --------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  /* sit above everything */
  z-index: 9999;

  /* Slight tint helps blend modes show up on flat backgrounds */
  background-color: rgba(255, 255, 255, 0.01);

  /* Primary grain: SVG turbulence + a couple micro-speckles */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 62%, rgba(0, 0, 0, 0.06) 0 2px, transparent 1px 100%);

  background-size: 260px 260px, 14px 14px, 16px 16px;
  background-position: 0 0, 0 0, 7px 9px;

  /* Make it actually visible by default */
  opacity: 0.32;
  mix-blend-mode: overlay;
  filter: contrast(140%) brightness(118%);
}

/* Fallback if blend modes aren't supported / are buggy */
@supports not (mix-blend-mode: overlay) {
  body::before {
    opacity: 0.12;
    mix-blend-mode: normal;
    filter: none;
  }
}

/* --------- Panels (hidden until clicked) --------- */

.panel {
  display: none !important;
}

.panel:target {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.panel {
  width: min(var(--flyer-max), 100%);
  margin: 0 auto;
}

/* --------- Page layout --------- */

.page {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--page-max);
  padding: var(--pad-y) var(--pad-x);

  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);

  min-height: 100svh;
  justify-content: space-between;
  align-items: center;
}

/* --------- Header / Flyer --------- */

.masthead {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;

  width: min(var(--flyer-max), 100%);
  margin: 0 auto;
  container-type: inline-size;
}

.flyer-script {
  font-family: var(--flyer-script);
  font-size: clamp(3.4rem, 22vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  margin: 0;
 padding-bottom: .88rem;
  width: 100%;
  color: var(--ink);
  text-align: left;
  display: block;
  
}

/* Name: ONE line (desktop + mobile) */
.flyer-name-1,
.flyer-name-2 {
  display: inline;
}

/* tiny couture nudge */
.flyer-name-2 {
  display: inline-block;
  transform: translateX(20px);
}

/* amp stays smaller */
.flyer-amp {
  display: inline-block;
  font-family: var(--flyer-sans);
  font-weight: 500;
  font-size: 0.32em;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0.18em;
  transform: translateY(-0.15em);
}

.flyer-subheading {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: clamp(0.25rem, 2.5vw, 0.75rem);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  font-family: var(--flyer-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  padding-bottom:30px;
  padding-left:10px;
  padding-right:8px;
  max-width: 100%;
}

.flyer-subheading .left,
.flyer-subheading .right {
  white-space: nowrap;
}

.flyer-subheading .rule {
  flex: 1;
  min-width: 2rem;
  height: 0;
  border: none;
  background: transparent;
  opacity: 0;
}

/* desktop vs mobile subheading toggles */
.sub-mobile { display: none; }
.sub-desktop { display: inline; }

/* Nav row desktop */
.flyer-spaced {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: space-between;
color:var(--ink);
  max-width: 100%;
  
  font-family: var(--flyer-sans);
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.02rem, 2.35vw, 1.22rem);
}

.flyer-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;

  padding: 0.15em 0.05em;
  line-height: 1.1;
  display: inline-block;
}

.flyer-link:hover,
.flyer-link:focus-visible {
  opacity: 0.88;
  outline: none;
}

.flyer-link:focus-visible {
  text-decoration-thickness: 3px;
}

/* Outbound arrow indicator */
.flyer-link--external::after {
  content: "\00A0↗";
  font-size: 0.92em;
  letter-spacing: 0;
  opacity: 0.9;
}

/* --------- Timeline --------- */

.section-title {
  margin: 0;
  font-family: var(--flyer-sans);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  opacity: 0.92;

  display: inline-block;
  padding-bottom: 0.35rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 0.8rem 1.25rem;
  align-items: baseline;

  font-family: var(--flyer-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  padding-top: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.timeline-grid .timeline-item:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline-time {
  justify-self: start;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.timeline-what {
  line-height: 1.2;
  text-wrap: balance;
}

.timeline-where {
  grid-column: 2;
  opacity: 0.85;
  letter-spacing: 0.04em;
  font-style: italic;
  text-wrap: balance;
}

.meta--subtle {
  font-family: var(--flyer-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  opacity: 0.65;
  text-wrap: balance;
}

/* --------- Details --------- */

.details {
  width: 100%;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.details .section-title {
  align-self: center;
  text-align: center;
}

.details-grid {
  width: min(66%, 36rem);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 1.65rem;

  text-align: center;
}

.details-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.details-item:not(:last-child) {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.details-k {
  font-family: var(--flyer-sans);
  font-weight: 500;
  text-transform: UPPERCASE;
  letter-spacing: 0.34em;
  font-size: 0.82rem;
  opacity: 0.9;
}

.details-v {
  font-family: var(--flyer-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  line-height: 1.28;
  text-wrap: balance;
}

.details-note {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.85;
  line-height: 1.35;
  text-transform: none; /* keep sentence-case so it reads friendly */
}

.details-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
  letter-spacing: 0.02em;
}

.details-note a:hover,
.details-note a:focus-visible {
  opacity: 0.88;
  outline: none;
}

.details-v a {
  text-transform: none;
  letter-spacing: 0.02em;
}

.map-hint {
  font-size: 0.7rem;   /* was 0.625 */
  opacity: 0.7;        /* was 0.6 */
}

/* --------- Addresses (desktop “flyer corners”) --------- */

.bottom-row {
  margin-top: auto;

  /* footer corners match flyer corners */
  width: min(var(--flyer-max), 100%);
  margin-left: auto;
  margin-right: auto;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(1.25rem, 4vw, 3rem);

  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: 0.25rem;
}

.address-card {
  text-align: left;
  margin: 0;
  max-width: 34ch;
}

.address-card--right {
  text-align: right;
}

.address-title {
  display: inline-block;
  padding: 0;
  margin-bottom: 0.75rem;

  font-family: var(--flyer-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.address-body {
  font-family: var(--flyer-sans);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
  line-height: 1.25;
}

.address-body div {
  margin: 0.15rem 0;
}

/* full address clickable */
.map-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.map-link:hover,
.map-link:focus-visible {
  opacity: 0.88;
  outline: none;
}

.address-card--right .map-link {
  text-align: right;
}

/* bounded hint “OPEN IN MAPS ↗” */
.map-hint {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;

  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-top: 0.25rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-hint::after {
  content: "↗";
  font-size: 0.98em;
  letter-spacing: 0;
  opacity: 0.9;
}

/* --------- Desktop wider layout for timeline grid --------- */
@media (min-width: 700px) {
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 2.25rem;
  }
}

/* ===================================================================== */
/* ========================== MOBILE REDESIGN =========================== */
/* ===================================================================== */

@media (max-width: 450px) {
  :root {
    --pad-x: 0.2rem;
    --pad-y: 0.2rem;
    --flyer-max: 100%;
  }
  html, body { overflow-x: hidden; }

  /* Top anchored / no huge padding */
  .page {
    min-height: 100svh;
    justify-content: flex-start;

    /* tighter top so the hero/title feels top-anchored */
    padding-top: calc(env(safe-area-inset-top) + 1.15rem);
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    padding-bottom: calc(env(safe-area-inset-bottom) + 1.15rem);

    gap: 0.95rem;
  }

  .masthead,
  .panel,
  .bottom-row {
    width: 100%;
    max-width: 100%;
  }

  .masthead {
    gap: 0.55rem;
  }

  /* Script title stays one line; slightly smaller */
  .flyer-script {
    font-size: clamp(3.35rem, 15vw, 5.25rem);
    line-height: 1.01;
    padding-top: .06em;
  }

  /* keep the “Yuri nudge” but smaller */
  .flyer-name-2 {
    transform: translateX(18px);
  }

  .flyer-subheading {
    /* keep the 430px composition: left phrase + right date */
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;

    gap: 0.65rem;
    text-align: left;

    letter-spacing: 0.07em;
    margin-top: -0.15rem;

    /* remove desktop padding that can steal width on tiny screens */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0.85rem;

    max-width: 100%;
  }

  /* this invisible flex item was still consuming width and pushing the date */
  .flyer-subheading .rule {
    display: none;
  }

  .flyer-subheading .left {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .flyer-subheading .right {
    flex: 0 0 auto;
    white-space: nowrap;
  }

 .flyer-spaced {
  position: relative;

  /* reliable full-bleed breakout inside centered layouts */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);

  /* keep content aligned */
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;   /* FORCE 2×2 */
  grid-auto-flow: row;

  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

  /* middle horizontal divider (full bleed) */
  .flyer-spaced::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--ink);
    pointer-events: none;
  }
  
 


  .flyer-link {
    min-width: 0;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.35rem 0.9rem;

    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.13em;
    font-size: 1.02rem;
    text-transform: uppercase;

    /* inner dividers */
    border-right: 1px solid var(--ink);
  }

  .flyer-link:active {
    opacity: 0.78;
  }

  .flyer-link:nth-child(2n) {
    border-right: none;
  }

  .flyer-link:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}
@media (max-width: 360px) {
  .flyer-subheading {
    font-size: 1.05rem;
    gap: 0.55rem;
    letter-spacing: 0.06em;
  }
}