/* Jack Francis Group. Built from the Claude Design file
   "Jack Francis Website v13" and "Jack Francis Legal" (10 Nov 2026).
   Palette: deep green #0E2619, cream #FDF8EC, gold #DCAF40.
   No inline styles anywhere on the site, so a strict content security
   policy can be switched on at CloudFront, as on foyerapp.co.uk. */

:root {
  --green: #0e2619;
  --green-deep: #050f09;
  --cream: #fdf8ec;
  --cream-warm: #f3ebd3;
  --gold: #dcaf40;
  --gold-light: #e8c76a;
  --gold-dark: #a9822a;
  --gold-ink: #7a5c14;
  --ink: #1a1a1a;
  --footer-text: #e9e2ce;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --rule: rgba(14, 38, 25, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* The darker gold: the lighter one is too faint for body-size text on cream. */
a:hover {
  color: var(--gold-ink);
}

::selection {
  background: var(--gold);
  color: var(--green);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 80px;
}

.arrow {
  margin-left: 6px;
  vertical-align: -1px;
}

/* ---------- Home page ---------- */

.page {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--green);
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}

.skip:focus {
  top: 16px;
  color: var(--green);
}

/* The bar that slides in once the curtain has scrolled away. */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1),
    visibility 500ms;
  background: var(--green);
  border-bottom: 1px solid rgba(220, 175, 64, 0.35);
  box-shadow: 0 8px 24px rgba(5, 15, 9, 0.25);
}

.bar.is-shown {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bar__home {
  display: block;
}

.bar__home img {
  height: 38px;
  width: auto;
  display: block;
}

.bar__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bar__nav a {
  color: var(--cream);
}

.bar__nav a:hover {
  color: var(--gold);
}

.bar__nav a.bar__contact {
  color: var(--green);
  background: var(--gold);
  padding: 8px 18px;
  border-radius: 999px;
}

.bar__nav a.bar__contact:hover {
  background: var(--gold-light);
  color: var(--green);
}

/* The curtain. */
.hero {
  position: relative;
  height: 86vh;
  min-height: 560px;
  background: var(--green-deep) url("../assets/curtain-green.jpg") 50% 30% / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 9px) / 100% 1px no-repeat,
    linear-gradient(
      to bottom,
      rgba(3, 10, 6, 0.7) 0%,
      rgba(3, 10, 6, 0) 20%,
      rgba(3, 10, 6, 0) 70%,
      rgba(3, 10, 6, 0.6) 100%
    );
}

/* The follow spot: js/site.js moves --sx and --sy with the pointer. */
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__spot--dark {
  background: radial-gradient(
    circle max(420px, 46vw) at var(--sx, 50%) var(--sy, 42%),
    rgba(3, 10, 6, 0.4) 0%,
    rgba(3, 10, 6, 0.46) 38%,
    rgba(3, 10, 6, 0.78) 100%
  );
}

.hero__spot--light {
  mix-blend-mode: screen;
  background: radial-gradient(
    circle max(300px, 30vw) at var(--sx, 50%) var(--sy, 42%),
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero__nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 56px);
  padding: 30px 1.25rem;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  flex-wrap: wrap;
}

.hero__nav a {
  color: var(--cream);
}

.hero__nav a:hover {
  color: var(--gold);
}

.hero__centre {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem 2vh;
}

.hero__title {
  margin: 0;
}

.hero__title img {
  width: clamp(260px, 34vw, 520px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.55));
}

.hero__line {
  margin: clamp(22px, 3vw, 40px) 0 0;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.2;
  color: var(--cream);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

/* On a phone the curtain is as tall as the name needs, not most of the
   screen: at 86vh the name sat in the middle of a lot of empty curtain, and
   the page below did not show at all. The name is larger to match. */
@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 0;
  }

  .hero__nav {
    gap: 6px 22px;
    padding: 22px 1rem 0;
    font-size: 15px;
  }

  .hero__centre {
    padding: 8vh 1.25rem 10vh;
  }

  .hero__title img {
    width: min(80vw, 380px);
  }
}

/* Shared small pieces. */
.eyebrow {
  margin: 0;
  font-style: italic;
  font-size: 24px;
  color: var(--gold-ink);
  font-weight: 400;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--green);
  border-bottom: 1.5px solid var(--gold-dark);
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--gold-ink);
}

/* Statement. */
.statement {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

.statement h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.18;
  color: var(--green);
  text-wrap: balance;
  font-weight: 400;
}

.statement p {
  margin: clamp(24px, 3vw, 36px) auto 0;
  max-width: 36rem;
  text-wrap: pretty;
}

/* Full-width photograph. */
.band {
  margin: 0;
}

.band__photo {
  height: clamp(300px, 42vw, 600px);
  background: url("../assets/photo-goldcurtain.jpg") center 55% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

/* Foyer. */
.foyer {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.foyer__name {
  margin: 16px 0 0;
  line-height: 0;
}

.foyer__name img {
  width: clamp(220px, 30vw, 400px);
  height: auto;
  display: inline-block;
}

.foyer__text {
  margin: 22px auto 0;
  max-width: 34rem;
  text-wrap: pretty;
}

/* Three phones; the bottom of the group overlaps the next section. */
.phones {
  position: relative;
  z-index: 2;
  max-width: 900px;
  height: clamp(330px, 40vw, 490px);
  margin: clamp(36px, 4.5vw, 56px) auto clamp(-150px, -12vw, -90px);
}

.phone {
  position: absolute;
  left: 50%;
  top: 8%;
  width: clamp(140px, 17vw, 208px);
  aspect-ratio: 9 / 18.5;
  box-sizing: border-box;
  border-radius: 34px;
  padding: 6px;
  background: #0b0b0b;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3a,
    0 8px 24px rgba(14, 38, 25, 0.28),
    0 36px 90px rgba(14, 38, 25, 0.36);
}

.phone--left {
  transform: translateX(-135%) rotate(-6deg);
}

.phone--right {
  transform: translateX(35%) rotate(6deg);
}

.phone--centre {
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: clamp(158px, 19vw, 234px);
  aspect-ratio: 9 / 17.2;
  border-radius: 38px;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b0b;
}

.phone--centre .phone__screen {
  border-radius: 32px;
}

.phone__top {
  width: 100%;
  aspect-ratio: 9 / 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__island {
  width: 30%;
  aspect-ratio: 3.4 / 1;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px #1e1e1e;
}

.phone__screen img {
  width: 100%;
  height: auto;
  display: block;
}

.phone__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0), #0b0b0b 60%);
}

.phone__bar {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: #f8f8f6;
  transform: translateX(-50%);
}

/* Who we are. */
.story {
  background: linear-gradient(to bottom, var(--cream) 0, var(--cream-warm) clamp(180px, 24vw, 340px));
  padding: calc(clamp(3rem, 5vw, 4.5rem) + clamp(90px, 12vw, 150px)) clamp(1.5rem, 6vw, 4rem)
    clamp(3rem, 5.5vw, 5rem);
  overflow: hidden;
}

.story__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.story__figure {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.story__frame {
  border: 1px solid var(--gold-dark);
  padding: clamp(8px, 1vw, 12px);
}

.story__photo {
  aspect-ratio: 4 / 5;
  background: #1a0e08 url("../assets/photo-curtain2.jpg") 50% 0% / cover no-repeat;
}

.story__text {
  text-align: left;
}

.story__text h2 {
  margin: 14px 0 0;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--green);
  text-wrap: balance;
}

.story__text p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 32rem;
  text-wrap: pretty;
}

.story__text h2 + p:not(.eyebrow) {
  margin-top: 32px;
}

/* Principles. */
.principles {
  background: var(--cream-warm);
  color: var(--green);
  padding: 0 clamp(1.5rem, 6vw, 4rem) clamp(3.5rem, 6vw, 5.5rem);
}

.principles__inner {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--gold-dark);
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.principles h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--green);
  text-wrap: balance;
  font-weight: 400;
}

.principles h2 em {
  color: #96751f;
}

/* The applause picture from the first Jack Francis site, under the heading.
   It is a cut-out with its own gold brush stroke, so it has no frame. */
.principles__figure {
  margin: clamp(12px, 2vw, 24px) 0 0;
}

.principles__figure img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.principles__list {
  margin-top: clamp(24px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  color: var(--green);
}

/* One statement to a line, with a rule between: a short list to read, not
   three matching columns. */
.principles__list p {
  margin: 0;
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid rgba(14, 38, 25, 0.22);
  text-wrap: pretty;
}

.principles__list p:last-child {
  padding-bottom: 0;
}

/* With room, the heading stands to the left of the list. */
@media (min-width: 900px) {
  .principles__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }

  .principles__list {
    margin-top: 0;
  }

  .principles__list {
    align-self: center;
  }

  .principles__list p:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Investors. */
.investors {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 9px / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 9px) / 100% 1px no-repeat,
    linear-gradient(rgba(14, 38, 25, 0.86), rgba(14, 38, 25, 0.86)),
    var(--green) url("../assets/curtain-green.jpg") 50% 50% / cover no-repeat;
  color: var(--cream);
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

.investors h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  color: var(--cream);
  text-wrap: balance;
}

.investors h2 em {
  color: var(--gold);
}

.investors__text {
  margin: 22px auto 0;
  max-width: 34rem;
  color: var(--cream);
  text-wrap: pretty;
}

.button {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--green);
  background: var(--gold);
  padding: 15px 30px;
  border-radius: 999px;
}

.button:hover {
  background: var(--gold-light);
  color: var(--green);
}

.investors__small {
  margin: 36px auto 0;
  max-width: 40rem;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: #d9d2be;
  text-wrap: pretty;
}

.investors__small a {
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
}

.investors__small a:hover {
  color: var(--gold);
}

/* Contact. */
.contact {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 4rem) clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

.contact__email {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--green);
  word-break: break-word;
}

.contact__email:hover {
  color: var(--gold-dark);
}

/* On a narrow phone the address would otherwise break mid-word. */
@media (max-width: 520px) {
  .contact__email {
    font-size: 6.2vw;
  }
}

.routes {
  max-width: 880px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--rule);
}

.route {
  flex: 1 1 220px;
  padding: 22px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--green);
  transition:
    background 250ms ease,
    color 250ms ease;
}

.route:hover {
  background: var(--green);
  color: var(--cream);
}

.route__label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
}

.route__action {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

/* Footer. */
.footer {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 9px / 100% 1px no-repeat,
    var(--green);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--footer-text);
}

.footer__logo {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 5vw, 56px) 1.5rem 20px;
}

.footer__logo img {
  width: clamp(180px, 18vw, 240px);
  height: auto;
  display: block;
}

.footer__line {
  margin: 0 auto;
  padding: 0 1.5rem clamp(28px, 3.5vw, 40px);
  max-width: 34rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--footer-text);
}

.footer__base {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(1.5rem, 6vw, 4rem) 32px;
  border-top: 1px solid rgba(220, 175, 64, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--footer-text);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__links a.footer__top {
  color: var(--gold);
}

.footer__links a.footer__top:hover {
  color: var(--gold-light);
}

/* ---------- Legal page ---------- */

.legal {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

.legal [id] {
  scroll-margin-top: 32px;
}

.legal a {
  color: var(--green);
  border-bottom: 1px solid var(--gold-dark);
}

.legal a:hover {
  color: var(--gold-ink);
}

.legal__header {
  background: var(--green);
  border-bottom: 1px solid rgba(220, 175, 64, 0.35);
}

.legal__header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal a.legal__home {
  display: block;
  border: none;
}

.legal__home img {
  height: 40px;
  width: auto;
  display: block;
}

.legal a.legal__back {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold);
  border: none;
}

.legal a.legal__back:hover {
  color: var(--gold-light);
}

.legal__body {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 48px clamp(48px, 7vw, 112px);
  align-items: flex-start;
}

.legal__aside {
  flex: 0 1 240px;
  position: sticky;
  top: 32px;
}

.legal__aside-label {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-ink);
}

.legal__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--green);
}

.legal .legal__nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 24px;
  color: var(--green);
}

.legal .legal__nav a:hover {
  color: var(--gold-ink);
}

.legal__updated {
  margin: 18px 0 0;
  font-size: 15px;
  color: #555048;
}

.legal__main {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 46rem;
}

.legal__main p {
  margin: 12px 0 0;
}

.legal__main p.legal__lead {
  margin-top: 28px;
  text-wrap: pretty;
}

.legal__main p.legal__after-list {
  margin-top: 14px;
}

.legal__main ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal__main strong {
  font-weight: 500;
}

.legal__main h1,
.legal__main h2,
.legal__main h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
}

.legal__main h1,
.legal__main h2.legal__title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.legal__main h2 {
  margin: 48px 0 0;
  font-size: 30px;
}

.legal__main h2.legal__first {
  margin-top: 52px;
}

.legal__main h2.legal__part {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.legal__main h2.legal__part + p {
  margin-top: 22px;
}

.legal__main h3 {
  margin: 36px 0 0;
  font-size: 27px;
}

.legal__main h3.legal__first {
  margin-top: 44px;
}

.legal__main h3 + p {
  margin-top: 10px;
}

.legal__section {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--gold-dark);
}

.legal__footer {
  background: var(--green);
  color: var(--footer-text);
}

.legal__footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(1.25rem, 5vw, 3rem) 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bar,
  .route {
    transition: none;
  }
}
