/* Joe Foster — joefoster.co.uk
   One accent: ember. Type: Bebas Neue for the name, Outfit for everything else. */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/bebas-neue-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF;
}

:root {
  --bg: #0c0b0a;
  --bg-raised: #141311;
  --ink: #f4efe6;
  --muted: #b7afa3;
  --accent: #ff4c1a;
  --accent-hover: #ff6433;
  --accent-ink: #1a0a05;
  --line: rgba(244, 239, 230, 0.16);
  --header-h: 3.5rem;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

ul {
  list-style: none;
  padding: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip:focus-visible,
.button:focus-visible {
  outline-color: var(--ink);
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

p {
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left));
  top: 0;
  z-index: 20;
  transform: translateY(-120%);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
}

.skip:focus {
  position: fixed;
  top: 0.75rem;
  transform: none;
}

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

main:focus {
  outline: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background: var(--bg);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.brand-name {
  white-space: nowrap;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.brand-logo {
  display: block;
  width: auto;
  height: 2rem;
  flex: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-rows: auto minmax(16rem, 1fr);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  border-bottom: 1px solid var(--line);
  overflow-x: clip;
}

.hero-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem 1.25rem 1.35rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 0.75rem;
  line-height: 1;
}

.hero-mark {
  display: block;
  width: auto;
  height: 4.25rem;
  margin: 0 0 0.55rem -0.15rem;
}

.hero-logo {
  display: block;
  width: min(100%, 40rem);
  height: auto;
  margin-left: -0.3rem;
}

.role {
  margin-top: 0.9rem;
  color: var(--accent);
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 0.85rem;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.button:visited {
  color: var(--accent-ink);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.1rem;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.hero-media {
  position: relative;
  min-height: 16rem;
  background:
    radial-gradient(90% 70% at 68% 18%, rgba(255, 76, 26, 0.38), transparent 58%),
    linear-gradient(165deg, #2a1410 0%, #0c0b0a 58%, #120c0a 100%);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.frame {
  position: absolute;
  z-index: 1;
  inset: 0.75rem 0.75rem 3.4rem;
  pointer-events: none;
}

.frame span {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--accent);
}

.frame span:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.frame span:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.frame span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.frame span:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.hero-credit,
.hero-credit:visited {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.1rem 0.95rem;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.94) 18%, rgba(12, 11, 10, 0));
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

/* Sections */

.section {
  padding-top: clamp(2.75rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
}

.about {
  border-bottom: 1px solid var(--line);
}

.social {
  padding-top: clamp(2rem, 3vw, 2.5rem);
  padding-bottom: 0;
}

h2 {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lede {
  margin-top: 0.9rem;
  max-width: 38rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.about p + p {
  margin-top: 0.9rem;
  max-width: 38rem;
}

.about a {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.about .handle {
  white-space: nowrap;
}

.social h2 {
  margin-bottom: 1.25rem;
}

.social-list {
  border-bottom: 1px solid var(--line);
}

.social-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.9rem;
  min-height: 4.75rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.social-icon {
  display: block;
}

.social-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.social-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.social-handle {
  color: var(--muted);
  font-size: 0.95rem;
}

.arrow {
  display: block;
}

/* Enquiries */

.enquire {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.enquire-inner {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.enquire h2 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(1.85rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
}

.enquire p {
  margin-top: 0.85rem;
  max-width: 26rem;
  font-size: 1.0625rem;
}

.email-link,
.email-link:visited {
  display: inline-block;
  justify-self: start;
  min-height: 3rem;
  padding-block: 0.3rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.16em;
}

/* Footer */

.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 1.25rem;
}

/* Desktop */

@media (min-width: 52rem) {
  :root {
    --header-h: 4.25rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand-logo {
    height: 2.25rem;
  }

  .hero-mark {
    height: 6.25rem;
    margin-bottom: 0.7rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.82fr);
    grid-template-rows: auto;
  }

  .hero-copy,
  .hero-media {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .hero-copy {
    justify-content: center;
    padding: 3rem 3.25rem 3.5rem;
    padding-left: max(3.25rem, env(safe-area-inset-left));
  }

  .hero-media {
    border-left: 1px solid var(--line);
  }

  .enquire-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }

  .email-link {
    justify-self: end;
    text-align: right;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }

  .header-link:hover,
  .social-link:hover .social-name,
  .social-link:hover .social-icon {
    color: var(--accent);
  }

  .social-link:hover .arrow {
    transform: translate(2px, -2px);
  }

  .arrow {
    transition: transform 0.15s ease;
  }

  .button {
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #e4dcd0;
    --line: rgba(244, 239, 230, 0.5);
  }
}

@media (forced-colors: active) {
  .button,
  .social-link,
  .hero-credit,
  .header-link {
    border: 1px solid ButtonText;
  }

  .frame {
    display: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .hero-media,
  .frame {
    display: none;
  }

  .hero,
  .section,
  .enquire {
    border-color: #111;
  }

  .button,
  .email-link,
  .role,
  h2 {
    color: #111;
    background: transparent;
  }

  a {
    text-decoration: underline;
  }
}

.sponsor-badge{margin:.75rem 0 1rem;}
.sponsor-badge a{display:inline-block;padding:.4rem .9rem;border:1px solid currentColor;border-radius:999px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.85rem;color:#ff7a1a;text-decoration:none;}
