:root {
  color-scheme: light;
  --ink: #142a45;
  --deep: #172b48;
  --muted: #35515e;
  --pink: #b42466;
  --sky: #c5f7f2;
  --paper: #fffaf0;
  --lavender: #eee6ff;
  font-family: Avenir Next, Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sky);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Georgia, serif; }
html { scroll-padding-top: 1.5rem; }
.wrap { width: min(100% - 3rem, 75rem); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: white;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem max(1.5rem, calc((100% - 75rem) / 2));
  min-height: 4.375rem;
  border-bottom: 1px solid #267c7933;
  background: #ebfffa;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800;
}
.brand img { flex: 0 0 31px; }
.topbar nav a { font-weight: 700; text-underline-offset: .25em; }

.masthead, .project-intro { padding-block: clamp(2.25rem, 5vw, 4.5rem) 3rem; }
.masthead-text { text-align: center; margin-inline: auto; margin-bottom: 2rem; }
.masthead-text h1 {
  font-size: clamp(2.65rem, 7.5vw, 6.4rem);
  line-height: .93;
  letter-spacing: -.065em;
}
.masthead-text > p:not(.label) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-top: 1.15rem;
  font-weight: 600;
}
.pink { color: var(--pink); }
.label {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.project-intro .label { margin-bottom: .85rem; }

.project-card, .art {
  display: block;
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: 0 13px 32px #145c6429;
}
.project-card { text-decoration: none; max-width: 62rem; margin-inline: auto; }
.project-card-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.project-card-images img {
  width: 100%;
  height: auto;
}
.project-card-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
}
.project-card h3 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1; margin-top: .3rem; }

.home-hero, .home-projects { max-width: 62rem; }
.home-hero { display: grid; grid-template-columns: 1fr minmax(12rem, 19rem); align-items: center; gap: 2rem; }
.home-hero .masthead-text { margin: 0; text-align: left; }
.home-portrait figcaption { padding: .65rem .75rem; text-align: center; font-weight: 700; }
.home-projects { padding-bottom: 3rem; }
.home-projects > h2 { margin-bottom: 1rem; font-size: clamp(1.9rem, 4vw, 3rem); }

.landmark-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.landmark { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.landmark-heading { margin-bottom: 1.15rem; }
.landmark-heading h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
.landmark-heading p { color: var(--muted); font-weight: 600; margin-top: .55rem; }
.big-ben-section { background: #d7eeff; padding-top: clamp(2.5rem, 5vw, 4rem); }
.london-eye-section { background: #ffe5ee; padding-top: clamp(2.5rem, 5vw, 4rem); }
.tower-of-london-section { background: #e3f4ff; padding-top: clamp(2.5rem, 5vw, 4rem); }

.landmark-display { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 1.5rem; align-items: center; }
.landmark-notes h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.landmark-notes h3:not(:first-child) { margin-top: 1.25rem; }
.fact-bubbles { display: grid; gap: .85rem; margin: .8rem 0; padding: 0; list-style: none; }
.fact-bubble {
  padding: .75rem 1.1rem;
  border: 3px solid #000;
  border-radius: 1.85rem;
  background: #8debe0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}
.fact-bubble:nth-child(2) {
  background: linear-gradient(110deg, #ffb5bf 0 17%, #ffc998 17% 33%, #ffe77c 33% 50%,
    #aee9a7 50% 67%, #addaff 67% 83%, #d8b8f6 83% 100%);
}
.fact-bubble:nth-child(3) { background: #d8b8f6; }
.big-ben-section .fact-bubble:nth-child(3) { background: #ffc998; }
.london-eye-section .fact-bubble:nth-child(3) { background: #ffb8d6; }
.tower-of-london-section .fact-bubble:nth-child(3) { background: #addaff; }
.fact-sources { font-size: .875rem; line-height: 1.5; }

.prompt-page { max-width: 54rem; }
.prompt-group { margin-block: 2rem; }
.prompt-group h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.prompt-entry { margin-top: 1rem; padding: 1rem; border-radius: .9rem; background: var(--paper); }
.prompt-entry pre { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 1rem/1.55 Avenir Next, Avenir, system-ui, sans-serif; }

.art img { width: 100%; height: auto; }
.project-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.65rem;
  margin-top: 1.65rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .625rem 1.15rem;
  border-radius: 999px;
  background: var(--deep);
  color: white;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
.button:hover, .project-card:hover .button { background: #8b235b; }
.text-link { font-weight: 750; text-underline-offset: .25em; }
.text-link:hover { color: var(--pink); }

.real-bridge { background: var(--lavender); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.real-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.25rem); align-items: center; }
.real-layout h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.055em; line-height: 1; }
.real-layout p { margin-block: .9rem; font-size: 1.075rem; line-height: 1.6; }
.real-photo img { width: 100%; height: auto; border-radius: 1.25rem; }
.real-photo figcaption { margin-top: .65rem; font-size: .875rem; line-height: 1.5; }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 5.25rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 56rem) {
  .landmark-display { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .topbar { padding-inline: .85rem; }
  .project-card, .art { border-width: 3px; border-radius: .9rem; }
  .project-card-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card-caption { flex-wrap: wrap; }
  .home-hero { grid-template-columns: 1fr; justify-items: center; gap: 1.25rem; }
  .home-hero .masthead-text { text-align: center; }
  .home-portrait { max-width: 16rem; }
  .real-layout { grid-template-columns: 1fr; }
}
