/* Ultra Nebulum's site: the game's own walnut, gold and parchment. */
@font-face { font-family: "Almendra"; src: url(fonts/Almendra-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almendra"; src: url(fonts/Almendra-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Almendra"; src: url(fonts/Almendra-Italic.ttf); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #120d0a; --walnut: #2a1a10; --walnut-2: #3a2416; --gold: #e9c36a; --gold-dim: #b08a45;
  --cream: #f1e3c4; --parchment: #e8d8b4; --ink: #3d240f; --crimson: #7a1b16;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font: 19px/1.6 "Almendra", Georgia, serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); text-align: center; }
h2.ink, .ink h3 { color: var(--ink); text-shadow: none; }
h3 { font-size: 27px; color: var(--gold); margin-bottom: 10px; }
.sub { text-align: center; max-width: 720px; margin: 12px auto 44px; opacity: .85; }
.sub.ink, .ink p, .ink { color: var(--ink); opacity: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.band { padding: 88px 0; background: linear-gradient(#1c120c, #17100b); }
.band.dark { background: radial-gradient(1200px 500px at 50% 0, #241710, var(--night)); }
.band.parchment { background: #e6d5ae url(img/parchment.jpg) center/480px; color: var(--ink); box-shadow: inset 0 14px 30px -14px rgba(60, 30, 5, .6), inset 0 -14px 30px -14px rgba(60, 30, 5, .6); }
.divider { width: 300px; margin: 0 auto 18px; opacity: .8; }

/* the bar at the top */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(26, 16, 10, .94); box-shadow: 0 1px 0 var(--gold-dim), 0 6px 20px rgba(0, 0, 0, .5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 700; font-size: 22px; text-shadow: 0 2px 4px #000; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--cream); text-decoration: none; text-shadow: 0 1px 4px #000; }
.nav nav a:hover { color: var(--gold); }

/* the painting */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: #1a1420 center/cover no-repeat; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.1) translateY(-1.5%); } }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(10, 6, 12, .25), rgba(10, 6, 12, .72) 75%), linear-gradient(transparent 60%, var(--night)); }
.hero-text { position: relative; padding: 110px 24px 90px; max-width: 900px; }
h1 { font-size: clamp(54px, 11vw, 132px); letter-spacing: .04em; text-transform: uppercase; line-height: .95; color: #f2cb66;
  text-shadow: 0 -1px 0 #fff0b8, 0 2px 0 #b47b23, 0 4px 0 #6b4310, 0 6px 0 #3b2208, 0 12px 26px rgba(0, 0, 0, .85); }
h1 span { display: inline-block; }
.tagline { display: inline-block; margin: 26px 0 0; padding: 8px 26px; font-size: clamp(19px, 2.6vw, 27px); font-style: italic; color: var(--cream);
  background: rgba(30, 18, 10, .78); border: 1px solid var(--gold-dim); border-radius: 10px; }
.lede { font-size: clamp(18px, 2.1vw, 22px); max-width: 640px; margin: 26px auto 0; text-shadow: 0 2px 8px #000; }
.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.soon-line { margin: 34px 0 0; font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #3b2208, 0 4px 14px #000; }
.soon-line::before, .soon-line::after { content: "❧"; margin: 0 .6em; color: var(--cream); opacity: .7; letter-spacing: 0; }
.soon-line::before { display: inline-block; transform: scaleX(-1); }
.platforms { margin-top: 8px; font-size: 16px; opacity: .8; text-shadow: 0 1px 4px #000; }
.scroll { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .7; animation: nod 2s infinite; }
@keyframes nod { 50% { transform: translateY(8px) rotate(45deg); } }

/* the game's carved plaque */
.plaque { display: inline-block; padding: 12px 30px; font-weight: 700; font-size: 21px; color: #fbe6ac; text-decoration: none;
  background: linear-gradient(#4a2c18, #2c190d); border: 2px solid var(--gold); outline: 1px solid #1a0e06; outline-offset: -5px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  transition: transform .15s, background .15s; }
.plaque:hover { background: linear-gradient(#8c211b, #5d1410); transform: translateY(-2px); }
.plaque.ghost { background: rgba(30, 18, 10, .7); }

/* trailers */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 34px; }
.video h3 { margin: 16px 0 4px; }
.video p { margin: 0; opacity: .85; }
.video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; cursor: pointer; background: #000 center/cover;
  border: 2px solid var(--gold-dim); border-radius: 6px; box-shadow: 0 0 0 6px var(--walnut), 0 0 0 7px #6b4a22, 0 18px 40px rgba(0, 0, 0, .6); overflow: hidden; }
.video-frame::before { content: ""; position: absolute; inset: 0; background: rgba(10, 6, 4, .28); transition: background .2s; }
button.video-frame:hover::before { background: rgba(10, 6, 4, .05); }
.video-frame.soon { cursor: default; }
.video-frame.soon::before { background: rgba(10, 6, 4, .55); }
.video-frame.playing::before { display: none; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(60, 14, 10, .9); border: 2px solid var(--gold); box-shadow: 0 6px 20px #000; transition: transform .2s; }
.play::after { content: ""; position: absolute; left: 33px; top: 24px; border: 17px solid transparent; border-left: 27px solid var(--gold); border-right: 0; }
button.video-frame:hover .play { transform: scale(1.1); }
.soon-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 22px; font: 700 20px "Almendra", serif; color: var(--gold); background: rgba(30, 18, 10, .9); border: 1px solid var(--gold-dim); border-radius: 8px; white-space: nowrap; }

/* features */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; align-items: center; margin-bottom: 70px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .shot { order: 2; }
.feature p { margin: 0 0 14px; }
.shot { display: block; border: 2px solid var(--gold-dim); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 6px var(--walnut), 0 0 0 7px #6b4a22, 0 16px 36px rgba(0, 0, 0, .55); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 70px; }
figure { margin: 0; }
figcaption { margin-top: 14px; text-align: center; }
.four figcaption { font-weight: 700; font-size: 23px; color: var(--gold); }
.trades { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; font-weight: 700; }
.trades li::before { content: "❧ "; color: var(--crimson); }
.three.tight { margin: 60px 0 0; }
.trades.one { grid-template-columns: 1fr; }
.platforms a { color: inherit; }
.prosopon h3 { color: #f4efe6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 44px; }
.card { padding: 26px 28px; background: linear-gradient(var(--walnut-2), var(--walnut)); border: 1px solid var(--gold-dim); border-radius: 8px; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .4); }
.card h4 { font-size: 23px; color: var(--gold); margin-bottom: 8px; }
.card p { margin: 0; opacity: .9; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 44px; }

footer { text-align: center; padding: 64px 24px 48px; background: #0d0907; border-top: 1px solid var(--gold-dim); }
footer img { margin: 0 auto 12px; border-radius: 10px; }
footer p { margin: 4px 0; opacity: .85; }
.foot-title { font-weight: 700; font-size: 28px; color: var(--gold); opacity: 1; }
footer .contact { margin: 22px 0 0; opacity: 1; }
footer .indiedb { margin: 26px 0 0; opacity: 1; }
footer .indiedb img { margin: 0 auto; border-radius: 0; }
.small a { color: inherit; }
.small { font-size: 15px; opacity: .55; margin-top: 18px; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 12px; padding: 24px; background: rgba(8, 5, 3, .93); cursor: zoom-out; text-align: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 84vh; border: 2px solid var(--gold-dim); border-radius: 6px; }
.lightbox p { margin: 0; font-style: italic; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  .band { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 16px; }
  .nav nav { display: none; }
  .feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 52px; }
  .feature.flip .shot { order: 0; }
  .four { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hero-art, .scroll { animation: none; } html { scroll-behavior: auto; } }
