/* ashenwright.com's front page: Astral Oath (store/site/README.md). No scripts of its own (the server's CSP allows only
   Cloudflare's Web Analytics beacon);
   the hero switch is two radio buttons and :checked. Fonts are the game's own (OFL), subset to Latin. */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
	--night: #070916;
	--night-2: #0b0e22;
	--ink: #e9e6f5;
	--ink-soft: #d6d2ea;
	--ink-dim: #b9b5d3;
	--gold: #e8c97a;
	--gold-pale: #f2dca3;
	--gold-line: rgba(232, 201, 122, .3);
	--celeste: #b8c6ff;
	--akane: #ff9fac;
	--gutter: clamp(16px, 4vw, 56px);
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 "DM Sans", system-ui, sans-serif; }
img, video { display: block; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #fff1c9; }
h1, h2, h3 { font-family: "Cinzel", serif; font-weight: 600; margin: 0; }
p { margin: 0; }
.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: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--gold); color: #1a1426; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; }

.kicker { font-family: "Cinzel", serif; font-size: 14px; letter-spacing: .24em; color: var(--gold); }
.section-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.section-head h2, .story h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; color: #f6efe0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

/* Store buttons: every store says "coming soon" until its page is live; then each becomes a link with the store's own badge. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px; border: 1px solid rgba(232, 201, 122, .6); border-radius: 6px; background: rgba(21, 18, 43, .82); color: #fff3d6; text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #d9c79b; }
.store strong { font-size: 20px; }
.stores-note { font-size: 13px; letter-spacing: .12em; color: var(--ink-dim); }

/* The hero: the game's living menu paintings, Celeste or Akane. */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; overflow: hidden; background: var(--night); }
.hero-media, .hero-media video, .hero-scrim { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .9s ease; }
.hero-media .v-akane { opacity: 0; }
#pick-akane:checked ~ .hero-media .v-akane { opacity: 1; }
#pick-akane:checked ~ .hero-media .v-celeste { opacity: 0; }
.hero-scrim { background:
	linear-gradient(90deg, rgba(7, 9, 22, .9) 0%, rgba(7, 9, 22, .55) 30%, rgba(7, 9, 22, 0) 55%),
	linear-gradient(0deg, var(--night) 0%, rgba(7, 9, 22, .6) 22%, rgba(7, 9, 22, 0) 48%),
	linear-gradient(180deg, rgba(7, 9, 22, .65) 0%, rgba(7, 9, 22, 0) 16%); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
.wordmark { font-family: "Cinzel", serif; font-weight: 700; font-size: 18px; letter-spacing: .14em; color: var(--gold-pale); text-decoration: none; }
.topbar nav { display: flex; gap: 28px; font-size: 15px; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.topbar nav a:hover { color: var(--gold-pale); }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #1a1426; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.cta:hover { background: #f6dc98; color: #1a1426; }
.hero-body { position: relative; flex-grow: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 0 var(--gutter) 72px; }
.hero-copy { max-width: 600px; display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 { margin: 0; }
.hero-copy h1 img { width: min(520px, 100%); height: auto; }
.tagline { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: .04em; color: var(--gold-pale); }
.lead { font-size: 18px; line-height: 1.55; color: #dcd8ee; max-width: 520px; }
.hero-copy .tagline, .hero-copy .lead, .stores-note { text-shadow: 0 1px 14px rgba(7, 9, 22, .95), 0 0 2px rgba(7, 9, 22, .8); }
.hero-pick { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid rgba(232, 201, 122, .4); background: rgba(10, 10, 26, .72); margin: 0; }
.hero-pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-pick label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer; font-family: "Cinzel", serif; font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--ink); }
#pick-celeste:checked ~ .hero-body label[for="pick-celeste"],
#pick-akane:checked ~ .hero-body label[for="pick-akane"] { background: var(--gold); color: #1a1426; }
#pick-celeste:focus-visible ~ .hero-body label[for="pick-celeste"],
#pick-akane:focus-visible ~ .hero-body label[for="pick-akane"] { outline: 2px solid var(--gold-pale); outline-offset: 2px; }

/* The story and the first look. */
.story { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 104px 96px; }
.story-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.story-copy p:not(.kicker) { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.first-look { flex: 1 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.first-look video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid rgba(232, 201, 122, .45); background: #000; }
.first-look figcaption { font-size: 14px; color: var(--ink-dim); }

/* Two ultimates, edge to edge. */
.ultimates { display: flex; flex-wrap: wrap; }
.ultimates figure { flex: 1 1 520px; min-width: 0; margin: 0; position: relative; }
.ultimates img { width: 100%; height: 100%; min-height: 320px; aspect-ratio: 16 / 9; object-fit: cover; }
.ultimates figcaption { position: absolute; inset: auto 0 0 0; padding: 60px var(--gutter) 24px; background: linear-gradient(0deg, rgba(7, 9, 22, .9), rgba(7, 9, 22, 0)); display: flex; flex-direction: column; gap: 4px; }
.ultimates figcaption span { font-family: "Cinzel", serif; font-size: 13px; letter-spacing: .24em; }
.ultimates figcaption strong { font-family: "Cinzel", serif; font-weight: 600; font-size: 28px; }
.ult-akane span { color: var(--akane); }
.ult-celeste span { color: var(--celeste); }

/* The heroes. */
.heroes { padding-block: 104px; display: flex; flex-direction: column; gap: 28px; }
.hero-card { min-height: 540px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; background-size: cover; }
.hero-card > div { padding: clamp(24px, 4vw, 56px); max-width: 500px; display: flex; flex-direction: column; gap: 14px; }
.hero-card h3 { font-weight: 700; font-size: clamp(40px, 5vw, 60px); letter-spacing: .03em; }
.hero-card p { font-size: 18px; line-height: 1.65; color: #e1e0f0; }
.hero-card .role { font-family: "Cinzel", serif; font-size: 13px; letter-spacing: .26em; }
.hero-card .ults { font-size: 15px; letter-spacing: .04em; }
.hero-card .thumbs { display: flex; gap: 12px; margin-top: 6px; }
.hero-card .thumbs img { width: 168px; height: 95px; object-fit: cover; border-radius: 6px; }
.card-celeste { border: 1px solid rgba(143, 168, 255, .45); background-image: linear-gradient(90deg, rgba(7, 9, 22, .94) 0%, rgba(7, 9, 22, .7) 38%, rgba(7, 9, 22, .05) 75%), url("/media/celeste-spear-1600.webp"); background-position: 60% 30%; }
.card-celeste .role, .card-celeste .ults { color: #a9bbff; }
.card-celeste h3 { color: #e3e9ff; }
.card-celeste .thumbs img { border: 1px solid rgba(184, 200, 255, .5); }
.card-akane { border: 1px solid rgba(214, 64, 86, .5); background-image: linear-gradient(90deg, rgba(7, 9, 22, .94) 0%, rgba(7, 9, 22, .7) 38%, rgba(7, 9, 22, .05) 75%), url("/media/akane-draw-1600.webp"); background-position: 60% 25%; }
.card-akane .role, .card-akane .ults { color: var(--akane); }
.card-akane h3 { color: #ffe0e4; }
.card-akane .thumbs img { border: 1px solid rgba(255, 170, 180, .5); }

/* How it plays. */
.play { background: var(--night-2); border-block: 1px solid rgba(232, 201, 122, .18); }
.play .wrap { padding-block: 104px; display: flex; flex-direction: column; gap: 56px; }
.features { display: flex; flex-wrap: wrap; gap: 48px 32px; }
.feature { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--gold-line); }
.feature h3 { font-size: 24px; color: var(--gold-pale); }
.feature p { color: var(--ink-soft); }
.numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin: 0; text-align: center; }
.numbers div { display: flex; flex-direction: column-reverse; gap: 2px; }
.numbers dt { font-size: 13px; letter-spacing: .14em; color: var(--ink-dim); text-transform: uppercase; }
.numbers dd { margin: 0; font-family: "Cinzel", serif; font-weight: 700; font-size: 34px; color: var(--gold-pale); }

/* Gallery: a strip that scrolls sideways. */
.gallery { padding-block: 104px 80px; display: flex; flex-direction: column; gap: 28px; }
.gallery-head { padding-inline: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.gallery-head h2 { font-size: clamp(30px, 3.4vw, 46px); color: #f6efe0; }
.gallery-head p { font-size: 15px; color: var(--ink-dim); }
.strip { display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--gutter) 18px; margin: 0; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #6b5a2e transparent; }
.strip li { flex: 0 0 min(780px, 86%); scroll-snap-align: start; }
.strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--gold-line); }

/* The end. */
.finale { padding: 150px var(--gutter) 130px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; background-image: linear-gradient(0deg, var(--night) 0%, rgba(7, 9, 22, .55) 40%, rgba(7, 9, 22, .8) 100%), url("/media/sanctum-1920.webp"); background-size: cover; background-position: 50% 40%; }
.finale img { width: min(480px, 90%); height: auto; }
.finale .tagline { font-size: 28px; }
.finale .stores { justify-content: center; }

.site-foot { border-top: 1px solid rgba(232, 201, 122, .18); padding: 32px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 14px; color: #a9a6c4; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 860px) {
	.topbar nav { display: none; }
}
@media (max-width: 760px) {
	.hero-scrim { background:
		linear-gradient(0deg, var(--night) 0%, rgba(7, 9, 22, .86) 46%, rgba(7, 9, 22, .5) 66%, rgba(7, 9, 22, 0) 88%),
		linear-gradient(180deg, rgba(7, 9, 22, .65) 0%, rgba(7, 9, 22, 0) 16%); }
	.hero-body { padding-bottom: 48px; }
	.stores { gap: 8px; }
	.store { flex: 1 1 calc(50% - 4px); min-height: 52px; padding: 6px 14px; gap: 10px; }
	.store strong { font-size: 17px; }
	.store small { font-size: 10.5px; letter-spacing: .05em; }
	/* On a phone each hero's picture is a band at the top of the card and the words sit below it, off the face. */
	.hero-card { min-height: 0; align-items: flex-end; background-color: var(--night); background-repeat: no-repeat; background-size: 100% 100%, 100% auto; background-position: top center, top center; }
	.hero-card > div { padding-top: calc((100vw - 32px) * .5); }
	.card-celeste { background-image: linear-gradient(180deg, rgba(7, 9, 22, 0) 0, rgba(7, 9, 22, 0) calc((100vw - 32px) * .3), var(--night) calc((100vw - 32px) * .56)), url("/media/celeste-spear-960.webp"); }
	.card-akane { background-image: linear-gradient(180deg, rgba(7, 9, 22, 0) 0, rgba(7, 9, 22, 0) calc((100vw - 32px) * .3), var(--night) calc((100vw - 32px) * .56)), url("/media/akane-draw-960.webp"); }
	.hero-card .thumbs img { width: calc(50% - 6px); height: auto; aspect-ratio: 16 / 9; }
	.story, .heroes, .play .wrap, .gallery { padding-block: 72px; }
	.finale { padding-block: 104px 96px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-media video { display: none; }
	.hero-media { background: url("/media/menu_celeste.webp") 50% 30% / cover; }
	#pick-akane:checked ~ .hero-media { background-image: url("/media/menu_akane.webp"); }
}
