@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/sfl-studio/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111514;
  --card: #1b211e;
  --ink: #faf3e5;
  --mute: #c4c7bb;
  --accent: #99d3b9;
  --accent2: #f0b472;
  --line: #414c44;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --wrap: 1312px;
  --gutter: clamp(20px, 5.1vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { color: var(--accent2); }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h1 { font-size: clamp(54px, 7.2vw, 110px); letter-spacing: -.032em; }
h2 { font-size: clamp(38px, 4.7vw, 67px); letter-spacing: -.014em; }
p { margin-block: .9em; }
[id] { scroll-margin-top: 90px; }

.skip-link { position: absolute; z-index: 10; top: .6rem; left: .6rem; background: var(--accent2); color: #121511; padding: .5rem 1rem; translate: 0 -180%; }
.skip-link:focus { translate: 0; }
.site-header { position: relative; z-index: 2; background: #141917; border-bottom: 1px solid #363e37; }
.site-header .wrap, .footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; }
.site-header .wrap { min-height: 74px; padding-block: 12px; }
.brand { color: var(--ink); font-weight: 760; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand span { color: var(--accent2); }
.brand svg { width: 34px; height: 34px; }
.site-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.site-nav a, .footer-nav a { color: var(--mute); text-decoration: none; font-size: .94rem; display: inline-flex; min-height: 42px; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current], .footer-nav a:hover { color: var(--accent2); }
.site-nav a[aria-current] { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); background: #161c18; margin-top: 64px; padding: 38px 0 28px; }
.footer-bottom { padding-top: 20px; margin-top: 20px; border-top: 1px solid #354038; color: var(--mute); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.site-footer a { color: var(--mute); }
.site-footer .brand { color: var(--ink); }
.site-footer .brand:hover { color: var(--accent2); }

.eyebrow, .project-meta {
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .125em;
  color: var(--accent2);
}
.feature, .studio { position: relative; isolation: isolate; overflow: hidden; }
.feature { display: grid; align-items: end; min-height: clamp(540px, 53vw, 750px); background: #242334; }
.feature-art, .feature-art img, .studio > img, .product-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-art img, .studio > img, .product-art { object-fit: cover; }
.feature-art img { object-position: 59% 55%; }
.feature::after, .studio::after, .product-feature::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #111214f2 0%, #121315d6 26%, #14131848 64%, transparent 100%),
              linear-gradient(0deg, #111514 0%, transparent 40%);
}
.feature-art, .studio > img, .product-art { z-index: -2; }
.feature-copy { padding-block: clamp(56px, 7vw, 104px); }
.feature h1, .product-feature h1 { text-transform: uppercase; }
.feature h1 { font-size: clamp(91px, 10.75vw, 164px); line-height: .82; margin: .14em 0 .19em; }
.feature-lead { font-size: clamp(1.03rem, 2vw, 1.26rem); max-width: 30rem; color: var(--ink); margin-bottom: 1.4rem; }

.btn, .store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--accent2);
  color: #151916;
  text-decoration: none;
  font-weight: 730;
}
.btn:hover, .store-button:hover { background: #ffe0b7; color: #151916; }
.btn.ghost { border-color: #b8bbae; background: #1115148c; color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent2); color: var(--accent2); }
.btn span[aria-hidden] { font-size: 1.25em; line-height: 1; }
.store-button svg { flex: none; width: 24px; height: 24px; }
.store-button span { line-height: 1.12; }
.store-button small { display: block; text-transform: uppercase; font-size: .65rem; letter-spacing: .065em; }

.section { padding-top: clamp(44px, 6.4vw, 90px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 24px; }
.section-head h2 { text-transform: uppercase; }
.section-head p { color: var(--mute); margin: 0; }
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalogue-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  transition: border-color .2s ease, background .2s ease;
}
.project-card:hover { background: #252e27; border-color: var(--accent2); color: var(--ink); }
.project-card > img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.catalogue-pair .project-card > img { aspect-ratio: 2.2; }
.project-copy { position: relative; flex: 1; padding: 18px 46px 19px 20px; }
.project-copy h3 { font: 800 clamp(30px, 3.3vw, 48px)/1 var(--display); letter-spacing: -.01em; }
.project-copy p { margin: .56em 0 0; color: var(--mute); }
.project-copy .project-meta { color: var(--accent2); margin: 0 0 .58em; }
.project-arrow { position: absolute; right: 18px; top: 45%; color: var(--accent2); font-size: 1.3rem; }
.studio { min-height: 410px; display: grid; align-items: center; margin-top: clamp(58px, 8vw, 110px); background: #322518; }
.studio-copy { padding-block: 56px; }
.studio-copy p { max-width: 25rem; font-size: 1.12rem; }
body[data-page="index"] .site-footer { margin-top: 0; }

.product-feature { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 495px; background: #252725; border-bottom: 1px solid var(--line); }
.product-feature .hero { padding: 63px 0 59px; }
.product-feature .gamehero { display: block; }
.product-feature .gamehero .txt { max-width: 45rem; }
.product-feature .gamehero > img { width: clamp(56px, 7vw, 92px); margin-bottom: 16px; border-radius: 18%; }
.product-feature .hero h1 { margin: 0 0 .1em; }
.product-feature .hero p, .product-feature .lead { max-width: 34rem; color: var(--ink); }
.product-feature .btn + .btn { margin-left: 8px; }
.product-feature .note { color: var(--ink); }
.product-feature .tag { color: var(--accent2); margin-bottom: .7em; }
body[data-page="dayzli"] .product-art { object-position: 50% 46%; }
body[data-page="beard-brawler"] .product-art { object-position: 66% center; }

.content { padding-block: 35px 8px; }
.prose { max-width: 850px; }
.prose .hero { padding-block: 28px 12px; }
.prose h1 { font-size: clamp(50px, 6.8vw, 88px); }
.content h2 { margin-block: 1.1em .33em; font-size: clamp(33px, 4.25vw, 54px); }
.content h3 { font-size: 1.23rem; margin-block: 1.5em .5em; }
.content h2[id] { scroll-margin-top: 20px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.29rem); color: var(--mute); max-width: 45rem; }
.note { border-left: 3px solid var(--accent2); padding-left: 16px; color: var(--mute); }
.tick { padding-left: 1.4rem; }
.tick li { padding-left: .2rem; margin-bottom: .5rem; }
.tick li::marker { color: var(--accent2); }
.tag { display: inline-block; color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 1.5rem 0; padding: 1.1rem 0; border-block: 1px solid var(--line); color: var(--mute); }
.stats b { display: block; color: var(--ink); }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; }
.shots figure { margin: 0; flex: 0 0 min(245px, 75vw); scroll-snap-align: start; }
.shots.land figure { flex-basis: min(590px, 80vw); }
.shots img, .wide img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.shots figcaption { color: var(--mute); margin-top: 7px; font-size: .92rem; }
.wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
pre { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; padding: 12px; }
table { border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .5rem .8rem .5rem 0; }
.product-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }

@media (max-width: 850px) {
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature::after, .product-feature::after { background: linear-gradient(90deg, #101312e5, #1013125c 80%), linear-gradient(0deg, #111514 0%, transparent 44%); }
}
@media (max-width: 650px) {
  .site-header .wrap { display: block; padding-block: 10px 2px; }
  .site-nav { gap: 0 15px; }
  .site-nav a { font-size: .81rem; min-height: 40px; }
  .site-footer { margin-top: 48px; padding-top: 29px; }
  .footer-nav { gap: 0 16px; }
  .feature { min-height: 570px; }
  .feature-copy { padding-block: 50px 42px; }
  .feature h1 { font-size: clamp(67px, 18vw, 109px); }
  .feature::after, .studio::after, .product-feature::after { background: linear-gradient(0deg, #111514 0%, #111514ef 29%, #15151538 75%); }
  .feature-art img { object-position: 56% 52%; }
  .catalogue, .catalogue-pair { grid-template-columns: 1fr; }
  .catalogue-pair .project-card > img { aspect-ratio: 16/9; }
  .section-head { margin-bottom: 19px; }
  .product-feature { min-height: 470px; }
  .product-feature .hero { padding-block: 85px 30px; }
  .studio { min-height: 350px; align-items: end; }
  .studio-copy { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.prose h2 { font-size: clamp(30px, 3.2vw, 46px); }
.world-art { margin: 38px 0 0; }
.world-art img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.world-art figcaption { margin-top: 7px; color: var(--mute); font-size: .92rem; }
