/* Tideholm website (v1.0). Same palette as the game: navy sea, sand cards, brass gold. */
:root {
	--navy: #0e2342; --navy2: #17365e; --sea: #1f4e79; --sand: #f3e3c3; --sand2: #e8d6b0; --ink: #2e2418;
	--brown: #6b4f2e; --gold: #c89b3c; --gold2: #ffd98a; --cream: #fff6e5; --mist: #c8d8e8; --muted: #9fb4c8;
	--radius: 16px; --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--cream); font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: .06em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 35, 66, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid rgba(200, 155, 60, .35); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: Georgia, serif; font-weight: bold; letter-spacing: .12em; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.top nav a { color: var(--mist); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--cream); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 800; font-size: 1.1rem;
	text-decoration: none; border: 3px solid var(--brown); background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #7a5a2a, 0 10px 24px rgba(0, 0, 0, .35); cursor: pointer;
	transition: transform .08s, box-shadow .08s; min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #7a5a2a, 0 6px 14px rgba(0, 0, 0, .35); }
.btn.play { font-size: 1.45rem; padding: 18px 40px; }
.btn.small { font-size: .95rem; padding: 8px 16px; min-height: 40px; box-shadow: 0 3px 0 #7a5a2a; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--gold); box-shadow: none; }
.btn .tri { width: 0; height: 0; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* hero */
.hero { background: radial-gradient(ellipse at 50% 0%, #2b6a9a 0%, var(--sea) 30%, var(--navy) 75%); padding: 46px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero .tag { font-size: 1.25rem; color: var(--mist); max-width: 34em; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 22px; color: var(--muted); font-size: .95rem; padding: 0; list-style: none; }
.hero .meta li::before { content: '✓ '; color: var(--gold2); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.phone { position: relative; max-width: 300px; margin: 0 auto; border-radius: 34px; padding: 10px; background: #0a1628; box-shadow: 0 0 0 3px var(--gold), 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(2deg); }
.phone img { border-radius: 26px; aspect-ratio: 540 / 1171; object-fit: cover; }
@media (max-width: 820px) {
	.hero .wrap { grid-template-columns: 1fr; text-align: center; }
	.hero .tag { margin: 0 auto; }
	.hero .meta, .hero .cta { justify-content: center; }
	.phone { max-width: 230px; margin-top: 10px; }
}

/* sections */
section { padding: 54px 0; }
section.alt { background: var(--navy2); }
.sand { background: var(--sand); color: var(--ink); }
.sand a { color: #8a5a10; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--sand); color: var(--ink); border: 3px solid var(--brown); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.card h3 { color: var(--ink); }
.card p { color: #5a4a36; margin: 0; }
.card .ic { font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 230px); gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 14px; border: 3px solid var(--gold); aspect-ratio: 540 / 1171; object-fit: cover; background: #0a1628; }
.shots figcaption { font-size: .9rem; color: var(--mist); margin-top: 6px; text-align: center; }
table.keys { width: 100%; border-collapse: collapse; background: var(--sand); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
table.keys th, table.keys td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #d8c49c; vertical-align: top; }
table.keys th { background: var(--sand2); font-family: Georgia, serif; }
kbd { background: #fff; border: 1px solid #b39a72; border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; font: 600 .9em ui-monospace, Menlo, monospace; color: var(--ink); }
details { background: rgba(255, 255, 255, .05); border: 1px solid rgba(200, 155, 60, .4); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--mist); }
.band { text-align: center; }
.band .btn { margin-top: 8px; }

/* prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: .02em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid rgba(200, 216, 232, .3); padding: 8px; text-align: left; vertical-align: top; }
.note { background: rgba(200, 155, 60, .12); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 8px; }

/* footer */
footer { background: #091a33; color: var(--muted); padding: 30px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer a { color: var(--mist); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .copy { margin-left: auto; }
@media (max-width: 640px) { footer .copy { margin-left: 0; } }
.sticky-play { display: none; }
@media (max-width: 820px) {
	.sticky-play { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 30; }
	.sticky-play .btn { width: 100%; }
	body.has-sticky footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
