/* Wordmark: "uk" in ruby, "ruby" in the neutral colour, "conference" smaller and regular weight. */
.wordmark { font-weight: 700; letter-spacing: -0.045em; word-spacing: -0.04em; white-space: nowrap; line-height: 1; text-decoration: none; color: var(--cream) }
.wordmark__uk { color: var(--ruby) }
.wordmark__conference { font-size: 0.45em; font-weight: 400; letter-spacing: 0 }
/* Small type needs looser tracking than display type. */
.masthead .wordmark, .site-footer .wordmark { letter-spacing: -0.02em; word-spacing: 0 }

.label { font: 600 var(--t-small)/1.3 var(--label); color: var(--amber); margin: 0 }
.muted { color: var(--muted) }

.button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-3);
  font: 600 18px/1 var(--label);
  text-decoration: none;
  color: var(--cream);
  background: var(--ruby);
  border: 2px solid var(--ruby);
  cursor: pointer;
}
.button:hover { color: var(--cream); background: var(--ruby-dark); border-color: var(--ruby-dark) }

/* Site header */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0 }
.masthead .wordmark { font-size: 32px }
.masthead__nav { display: flex; align-items: center; gap: var(--s-3); margin-left: auto }
.masthead__link { font: 600 18px/1 var(--label); text-decoration: none }

/* Pages other than the home page */
.page-intro { max-width: var(--measure) }
.person__avatar { width: 160px; height: 160px; border-radius: 50%; margin-bottom: var(--s-3) }
.person__link { display: flex; align-items: center; gap: var(--s-1); width: fit-content; font: 400 var(--t-small)/1.4 var(--label); margin-bottom: var(--s-1) }
.person__link svg { flex: none }

/* Hero */
.hero { padding: var(--s-6) 0 0 }
.hero__title { font-size: var(--t-display); margin: var(--s-3) 0 0 }

/* "conference" and the year take turns in the same place in the wordmark. */
.hero__title > .hero__rotator { display: inline-grid; overflow: hidden; vertical-align: baseline; padding-bottom: 0.08em }
.hero__rotator > span { grid-area: 1 / 1 }
.hero__year { color: var(--amber); font-weight: 700 }
.hero__tagline { font-size: var(--t-lead); line-height: 1.15; letter-spacing: -0.015em; margin: var(--s-3) 0 0 }
.hero__intro { max-width: var(--measure); margin: var(--s-3) 0 0 }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: var(--s-3) 0 0 }

/* Sign-up form */
.signup { margin: var(--s-5) 0 0; max-width: 720px }
.signup__row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-end }
.signup__field { display: flex; flex-direction: column; gap: var(--s-1); flex: 1 1 320px }
.signup__field label { font: 600 var(--t-small) var(--label) }
.signup__field input { min-height: var(--tap); padding: 0 var(--s-2); font: var(--t-body) var(--sans); color: var(--night); background: var(--cream); border: 2px solid var(--cream) }
.signup__field input:focus { outline: 3px solid var(--amber); outline-offset: 2px }
.signup__note { margin: var(--s-2) 0 0; font-size: var(--t-small) }
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }

.notice { margin: 0 0 var(--s-2); font: 600 var(--t-small)/1.4 var(--label); color: var(--amber) }
.notice--error { color: var(--ruby) }

/* Bristol skyline on a ruby ground line that runs the full width of the page */
.skyline { margin: var(--s-6) 0 0; border-bottom: 6px solid var(--ruby) }
.skyline__art { display: block; width: 100%; height: auto; overflow: visible }
.skyline__art g { transform-box: fill-box; transform-origin: 50% 100% }
/* The tour: one landmark lit and glowing at a time, named under the ground line. */
.skyline__landmark { cursor: pointer; outline: none }
.skyline__landmark > svg { transition: opacity 400ms ease, filter 400ms ease }
.skyline--touring .skyline__landmark > svg { opacity: 0.6 }
.skyline--touring .skyline__landmark--lit > svg { opacity: 1; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--amber) 70%, transparent)) }
.skyline__landmark:focus-visible > svg { opacity: 1; filter: drop-shadow(0 0 3px var(--amber)) drop-shadow(0 0 3px var(--amber)) }
.wrap.skyline__caption { min-height: calc(var(--s-8) + var(--s-3)); padding-top: var(--s-4); padding-bottom: var(--s-3) }
.skyline__name { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; margin: var(--s-1) 0 }
.skyline__text { max-width: var(--measure); margin: 0 }

/* Facts and people */
.fact__icon { width: 72px; height: 72px; margin-bottom: var(--s-3) }
.person__bio { color: var(--muted); font: 400 18px/1.4 var(--label) }

/* FAQ: category tabs over a list of questions that open in place */
.faq { max-width: 880px; margin-top: var(--s-5) }
.faq__tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); border-bottom: 1px solid var(--rule) }
.faq__tab { padding: var(--s-2) 0; margin-bottom: -1px; font: 600 18px/1.2 var(--label); color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent }
.faq__tab--active { color: var(--cream); border-bottom-color: var(--ruby) }
.faq__tab--contact { margin-left: auto; color: var(--amber) }
.faq__entry { border-bottom: 1px solid var(--rule) }
.faq__question { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); padding: var(--s-3) 0; font: 700 24px/1.25 var(--sans); cursor: pointer; list-style: none }
.faq__question::-webkit-details-marker { display: none }
.faq__question::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: -6px; border: solid var(--amber); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 200ms }
.faq__entry[open] .faq__question::after { margin-top: 6px; transform: rotate(-135deg) }
.faq__question:hover { color: var(--amber) }
.faq__question:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px }
.faq__answer { max-width: var(--measure); padding-bottom: var(--s-3) }
.faq__answer ul { margin: 0 0 var(--s-2); padding-left: 1.2em }

/* AI speaker experiment */
.experiment { background: var(--ruby-night); border-top: 0 }
.experiment .label { color: var(--cream) }
.experiment ol { margin: 0; padding-left: 1.2em }
.experiment__art { width: 100%; max-width: 320px; justify-self: center }

/* Venue art */
.venue-art { display: flex; gap: var(--s-3); align-items: flex-end; justify-content: center; border-bottom: 6px solid var(--ruby) }
.venue-art img { width: 30% }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: var(--s-5) 0 var(--s-6) }
.site-footer .wordmark { font-size: 40px; margin-bottom: var(--s-2) }
.site-footer__organisers { display: inline-flex; align-items: center; gap: var(--s-1) }

@media (max-width: 600px) {
  .masthead { flex-wrap: wrap; row-gap: var(--s-2) }
  .masthead .wordmark { font-size: 26px }
  .masthead__nav { gap: var(--s-2) }
}

/* Focus */
a:focus-visible, .button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px }

/* Motion: one sequence on page load, and the balloon lifting when someone signs up. */
@keyframes set-in { from { opacity: 0; transform: translateY(0.3em) } }
@keyframes rise { from { opacity: 0; transform: translateY(32px) } }
@keyframes lift {
  0% { transform: translateY(0) }
  55% { transform: translateY(-90px) rotate(-3deg) }
  100% { transform: translateY(-70px) rotate(2deg) }
}
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px) } }

.hero__title > span { display: inline-block; animation: set-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both }
.hero__title > span:nth-child(2) { animation-delay: 120ms }
.hero__title > span:nth-child(3) { animation-delay: 260ms }

@keyframes word-out {
  0%, 40% { transform: translateY(0); opacity: 1 }
  48%, 92% { transform: translateY(-110%); opacity: 0 }
  93% { transform: translateY(110%); opacity: 0 }
  100% { transform: translateY(0); opacity: 1 }
}
@keyframes word-in {
  0%, 40% { transform: translateY(110%); opacity: 0 }
  48%, 88% { transform: translateY(0); opacity: 1 }
  96% { transform: translateY(-110%); opacity: 0 }
  100% { transform: translateY(110%); opacity: 0 }
}
.hero__rotator > span:first-child { animation: word-out 7s cubic-bezier(0.6, 0, 0.2, 1) 1.2s infinite both }
.hero__rotator > span:last-child { animation: word-in 7s cubic-bezier(0.6, 0, 0.2, 1) 1.2s infinite both }

.skyline__ground > g { animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both }
.skyline__ground > g:nth-child(1) { animation-delay: 500ms }
.skyline__ground > g:nth-child(2) { animation-delay: 560ms }
.skyline__ground > g:nth-child(3) { animation-delay: 620ms }
.skyline__ground > g:nth-child(4) { animation-delay: 680ms }
.skyline__ground > g:nth-child(5) { animation-delay: 740ms }
.skyline__ground > g:nth-child(6) { animation-delay: 800ms }
.skyline__ground > g:nth-child(7) { animation-delay: 860ms }
.skyline__ground > g:nth-child(8) { animation-delay: 920ms }

/* Concorde flies in along its trail, then the sun-gem and the balloon appear. */
@keyframes fly-in { from { transform: translateX(-760px); opacity: 0 } 15% { opacity: 1 } }
@keyframes fade-in { from { opacity: 0 } }
.skyline__concorde { animation: fly-in 1800ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both }
.skyline__trail { animation: fade-in 500ms ease-out 1700ms both }
.skyline__gem { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 1100ms both }
.skyline__balloon { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 1300ms both }

.hero--settled .hero__title > span,
.hero--settled .skyline__art g { animation: none }

.hero--subscribed .skyline__art .skyline__balloon { animation: lift 2400ms cubic-bezier(0.3, 0, 0.2, 1) 200ms both }

.notice { animation: notice-in 400ms ease-out both }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  .hero__title > .hero__rotator { display: inline-flex; gap: 0.25em }
}

/* Development copy editor */
[data-copy-key][contenteditable]:hover { outline: 1px dashed var(--amber); outline-offset: 4px; cursor: text }
[data-copy-key][contenteditable]:focus { outline: 2px solid var(--amber); outline-offset: 4px }
[data-copy-key][data-copy-state="saved"] { outline: 2px solid var(--cream); outline-offset: 4px }
[data-copy-key][data-copy-state="failed"] { outline: 2px solid var(--ruby); outline-offset: 4px }

/* Development notes */
.dev-tools { position: fixed; right: var(--s-2); bottom: var(--s-2); z-index: 1000; display: flex; gap: var(--s-1); align-items: center; padding: var(--s-1); background: var(--panel); border: 1px solid var(--rule); font: 400 14px/1 var(--label) }
.dev-tools__button { min-height: 36px; padding: 0 var(--s-2); font: 600 14px/1 var(--label); color: var(--night); background: var(--amber); border: 0; cursor: pointer }
.dev-tools__link { min-height: 36px; padding: 0 var(--s-1); font: 400 14px/1 var(--label); color: var(--cream); background: none; border: 0; cursor: pointer; text-decoration: underline }
.dev-tools__count { color: var(--cream); padding-right: var(--s-1) }
.dev-popover { position: absolute; z-index: 1001; width: 360px; padding: var(--s-2); background: var(--panel); border: 1px solid var(--amber); font: 400 15px/1.4 var(--label); color: var(--cream) }
.dev-popover label { display: block; margin-bottom: var(--s-1) }
.dev-popover textarea { width: 100%; padding: var(--s-1); font: 16px/1.4 var(--sans); color: var(--night); background: var(--cream); border: 0 }
.dev-popover p { margin: 0 }
.dev-popover__actions { display: flex; gap: var(--s-1); align-items: center; margin-top: var(--s-1) }
.dev-note-pin { position: absolute; z-index: 999; width: 28px; height: 28px; border-radius: 50%; font: 600 14px/28px var(--label); color: var(--night); background: var(--amber); border: 2px solid var(--night); cursor: pointer; padding: 0 }
[data-note-hover] { outline: 2px dashed var(--amber) !important; outline-offset: 3px; cursor: crosshair }

/* Journeys map: trains are solid ruby lines, flights dashed amber arcs. */
.journeys { align-items: start }
.journeys__map { width: 100%; height: auto; overflow: visible }
.journeys__land { fill: none; stroke: var(--rule); stroke-width: 6; stroke-linecap: round }
.journeys__route { fill: none; stroke-linecap: round }
.journeys__route--train { stroke: var(--ruby); stroke-width: 5 }
.journeys__route--air { stroke: var(--amber); stroke-width: 4; stroke-dasharray: 0.012 0.012 }
.journeys__city { fill: var(--cream) }
.journeys__name { fill: var(--cream); font: 600 24px var(--label) }
.journeys__name--home { fill: var(--ruby); font-size: 28px }
.journeys__lists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin: var(--s-4) 0 var(--s-3) }
.journeys__lists h3 { display: flex; align-items: center; gap: var(--s-1); font-size: 22px }
.journeys__key { display: inline-block; width: 28px; height: 0; border-top: 4px solid var(--ruby) }
.journeys__key--air { border-top: 3px dashed var(--amber) }
.journeys__list { list-style: none; margin: 0; padding: 0 }
.journeys__list li { display: flex; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) 0; border-top: 1px solid var(--rule); font-size: 18px }
.journeys__via { margin-top: var(--s-4) }
.journeys__note { margin: 0 0 var(--s-1); font-size: var(--t-small) }
.journeys__time { font: 600 16px/1.6 var(--label); color: var(--amber); white-space: nowrap }

@keyframes draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
.journeys__map .journeys__route--train { stroke-dasharray: 1 1 }
.journeys__map:not(.revealed) .journeys__route--train { stroke-dashoffset: 1 }
.journeys__map.revealed .journeys__route--train { animation: draw 1200ms cubic-bezier(0.3, 0, 0.2, 1) both }
.journeys__map:not(.revealed) .journeys__route--air { opacity: 0 }
.journeys__map.revealed .journeys__route--air { animation: fade-in 900ms ease-out 700ms both }

@media (max-width: 600px) {
  .journeys__lists { grid-template-columns: 1fr }
}

/* Full-width photo, shown whole: its licence (CC BY-ND) does not allow cropping or editing. */
.photo-band { position: relative; margin: 0; border-top: 1px solid var(--rule) }
.photo-band img { display: block; width: 100%; height: auto }
.photo-band__credit { position: absolute; right: 0; bottom: 0; padding: 4px 8px; font: 400 12px/1.3 var(--label); color: var(--cream); background: rgb(11 18 48 / 0.72) }
.photo-band__credit a { color: inherit }

/* Speakers */
.speakers__more { margin: var(--s-4) 0 0; color: var(--muted) }

/* Venue: photos, then the map, site plan and cutaway */
.venue__photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); margin: var(--s-5) 0 0 }
.venue__photos img { grid-column: span 3; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px }
.venue__figures { display: grid; gap: var(--s-5); margin-top: var(--s-5) }
.venue__figure { margin: 0 }
.venue__figure img { width: 100%; height: auto; border-radius: 10px }
.venue__caption { margin-top: var(--s-1); font: 400 var(--t-small)/1.4 var(--label); color: var(--muted) }

@media (max-width: 600px) {
  .wrap.skyline__caption { min-height: calc(var(--s-8) + var(--s-7) + var(--s-5)) }
  .venue__photos { grid-template-columns: 1fr }
  .venue__photos img { grid-column: auto }
}

/* Local guide: a table of places per day, and numbered pins on the wapping wharf map */
.guide__days { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); font: 600 18px/1 var(--label) }
.guide__table { overflow-x: auto; margin-top: var(--s-4) }
.guide__table table { width: 100%; border-collapse: collapse; font: 400 var(--t-small)/1.4 var(--label) }
.guide__table th, .guide__table td { padding: var(--s-1) var(--s-2) var(--s-1) 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top }
.guide__table thead th { border-top: 0; color: var(--muted); font-weight: 600 }
.guide__table tbody th { font: 700 18px/1.4 var(--sans); white-space: nowrap }
.guide__nowrap { white-space: nowrap }
.guide__number { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: var(--s-1); border-radius: 50%; background: var(--ruby); color: var(--cream); font: 600 var(--t-small)/1 var(--label) }
.guide__map { margin: var(--s-4) 0 0 }
.guide__map-frame { position: relative }
.guide__map img { width: 100%; height: auto; border-radius: 10px }
.guide__pins { position: absolute; inset: 0; width: 100%; height: 100% }
.guide__pin { fill: var(--ruby); stroke: var(--cream); stroke-width: 4 }
.guide__pin-line { stroke: var(--cream); stroke-width: 3 }
.guide__pin-place { fill: var(--cream) }
.guide__pin-number { fill: var(--cream); font: 600 var(--t-h3) var(--label) }
.guide__outing p { color: var(--muted); font: 400 18px/1.4 var(--label) }
.guide__facts { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-2); margin: 0; font: 400 var(--t-small)/1.4 var(--label) }
.guide__facts dt { color: var(--amber); font-weight: 600 }
.guide__facts dd { margin: 0 }
.guide__facts--meetup { max-width: var(--measure); margin-top: var(--s-4); font-size: 18px }
.guide__sources { max-width: var(--measure); font: 400 var(--t-small)/1.4 var(--label) }
