:root {
  --bg: #030b10;
  --panel: #07151c;
  --panel-light: #0a1b23;
  --teal: #16d8d0;
  --gold: #cda36a;
  --gold2: #f1d29a;
  --text: #e7e8e4;
  --muted: #9aa6a9;
  --line: rgba(205, 163, 106, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   TIDESUNDER — HEADER
   ========================================================= */

.site-header{
  height:82px;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;

  display:grid;
  grid-template-columns:240px minmax(0,1fr) 240px;
  align-items:center;

  padding:0 42px;

  background:rgba(2,9,13,.92);
  border-bottom:1px solid rgba(205,163,106,.28);

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.brand{
  width:210px;
  height:70px;

  display:flex;
  align-items:center;
  justify-content:flex-start;

  overflow:hidden;
}

.brand img{
  display:block;

  width:190px;
  height:auto;
  max-height:64px;

  object-fit:contain;
  object-position:left center;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.site-header nav{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:34px;

  margin:0;
  padding:0;

  font-size:12px;
  line-height:1;

  letter-spacing:1.8px;
  white-space:nowrap;
}

.site-header nav a{
  display:inline-flex;
  align-items:center;

  height:82px;

  color:var(--text);

  transition:
    color .2s ease,
    opacity .2s ease;
}

.site-header nav a:hover{
  color:var(--gold2);
}


/* ---------------------------------------------------------
   STEAM BUTTON
   --------------------------------------------------------- */

.steam-top{
  justify-self:end;

  display:flex;
  align-items:center;
  justify-content:center;

  width:205px;
  height:42px;

  padding:0 18px;

  border:1px solid rgba(205,163,106,.8);
  background:rgba(4,10,13,.82);

  color:var(--text);

  font-size:11px;
  letter-spacing:1.3px;

  white-space:nowrap;

  transition:
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.steam-top:hover{
  border-color:var(--teal);
  color:#fff;
  background:rgba(4,15,18,.92);
}


/* ---------------------------------------------------------
   MOBILE MENU
   --------------------------------------------------------- */

.menu-toggle{
  display:none;

  background:none;
  border:0;

  color:#fff;

  font-size:25px;
  line-height:1;

  cursor:pointer;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  height: min(920px, 100vh);
  min-height: 720px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;

  background-image: url("assets/hero-key-art-4k.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  transform: scale(1.01);
}

.hero-vignette {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.52),
      transparent 40%,
      rgba(0, 0, 0, 0.35)
    ),
    linear-gradient(
      0deg,
      rgba(2, 8, 11, 0.98),
      transparent 30%,
      rgba(2, 8, 11, 0.25)
    );
}

.hero-copy {
  position: relative;
  z-index: 2;

  text-align: center;

  margin-top: 50px;

  max-width: 900px;
  padding: 0 25px;
}

.hero-logo-wrap {
  display: none;
}

.eyebrow{
  letter-spacing:8px;
  font-size:20px;
  margin:0 0 10px;
  color:var(--gold);
  text-shadow:0 2px 10px rgba(0,0,0,.9);
}

.hero-copy h1{
  font-weight:normal;
  letter-spacing:7px;
  font-size:18px;
  margin:0 0 32px;
  color:var(--gold);
  text-shadow:0 2px 10px rgba(0,0,0,.9);
}

.hero-claim {
  color: var(--gold);

  letter-spacing: 0.28em;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 30px;

  min-width: 220px;
}

.btn.gold {
  background: rgba(5, 12, 15, 0.72);

  box-shadow:
    0 0 24px rgba(22, 216, 208, 0.12);
}

.btn.dark {
  background: rgba(2, 7, 10, 0.82);
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  z-index: 2;

  font-size: 10px;
  letter-spacing: 4px;

  opacity: 0.8;
}

.hero-scroll span {
  display: block;

  text-align: center;

  font-size: 22px;
  color: var(--gold);
}

/* =========================================================
   GAME PILLARS
========================================================= */

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  background: #030b10;

  border-top: 1px solid rgba(205, 163, 106, 0.2);
  border-bottom: 1px solid rgba(205, 163, 106, 0.2);

  padding: 22px 5vw;
}

.pillars div {
  text-align: center;

  border-right: 1px solid rgba(205, 163, 106, 0.2);
}

.pillars div:last-child {
  border-right: 0;
}

.pillars b {
  display: block;

  color: var(--gold2);

  font-size: 24px;
}

.pillars strong,
.pillars small {
  display: block;
}

.pillars strong {
  margin-top: 5px;

  font-size: 14px;
  letter-spacing: 3px;
}

.pillars small {
  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;
  letter-spacing: 2px;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  max-width: 1420px;

  margin: auto;

  padding: 90px 5vw;
}

.kicker {
  color: var(--gold);

  font-size: 11px;
  letter-spacing: 5px;
}

.section h2 {
  margin: 8px 0 0;

  font-size: 44px;
  font-weight: normal;
  letter-spacing: 4px;
}

/* =========================================================
   WORLD INTRO
========================================================= */

.intro {
  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 40px;
}

.intro p {
  margin: 0;

  color: #b9c1c1;

  line-height: 1.8;
  text-align: right;
}

/* =========================================================
   LORE GRID
========================================================= */

.lore-grid {
  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 14px;

  padding-top: 0;
}

.lore-card {
  position: relative;

  min-height: 440px;

  overflow: hidden;

  border: 1px solid rgba(205, 163, 106, 0.45);

  background: #07151c;

  isolation: isolate;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.lore-card:hover {
  transform: translateY(-5px);

  border-color: var(--gold2);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35);
}

.lore-card img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.lore-card:hover img {
  transform: scale(1.04);
}

.lore-card::after {
  content: "";

  position: absolute;
  inset: 25% 0 0;

  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 30%,
      rgba(0, 0, 0, 0.88) 78%,
      rgba(0, 0, 0, 0.98) 100%
    );
}

.lore-card div {
  position: absolute;

  z-index: 2;

  left: 18px;
  right: 12px;
  bottom: 18px;
}

.lore-card span {
  color: var(--gold);

  font-size: 11px;
  letter-spacing: 2px;
}

.lore-card h3 {
  margin: 8px 0 5px;

  font-size: 17px;
  letter-spacing: 1px;
  line-height: 1.15;
}

.lore-card p {
  margin: 0;

  color: #d2d4d0;

  font-size: 9px;
  letter-spacing: 1px;
}

/* =========================================================
   STORY / THE PAIN OF TIDES
========================================================= */

.story {
  display: grid;

  grid-template-columns: 1.25fr 0.75fr;

  min-height: 620px;

  max-width: none;

  padding-left: 0;
  padding-right: 0;
}

.story-image {
  min-height: 620px;

  background-image: url("assets/PainofTides.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  position: relative;
}

.story-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 55%,
      rgba(3, 11, 16, 0.75) 100%
    );
}

.story-copy {
  padding: 70px 7vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    linear-gradient(
      120deg,
      #07161d,
      #030b10
    );
}

.story-copy h2,
.journey-copy h2 {
  font-size: 42px;
  line-height: 1.1;
}

.story-copy p,
.journey-copy p {
  max-width: 540px;

  color: #b8c2c2;

  line-height: 1.8;
}

.text-link {
  margin-top: 15px;

  color: var(--gold2);

  letter-spacing: 2px;

  transition: color 0.25s ease;
}

.text-link:hover {
  color: var(--teal);
}

/* =========================================================
   JOURNEY / HARBOR
========================================================= */

.journey {
  display: grid;

  grid-template-columns: 0.75fr 1.25fr;

  min-height: 620px;

  max-width: none;

  padding-left: 0;
  padding-right: 0;
}

.journey-copy {
  padding: 70px 7vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    linear-gradient(
      120deg,
      #030b10,
      #07161d
    );
}

.journey-image {
    min-height: 620px;

    background-image: url("assets/theharbor.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    position: relative;
}

.journey-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(3, 11, 16, 0.75),
      transparent 35%
    );
}

/* =========================================================
   MEDIA
========================================================= */

.media {
  text-align: center;
}

.trailer {
  max-width: 1100px;
  height: 430px;

  margin: 35px auto 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 15px;

  background:
    linear-gradient(
      135deg,
      #081a20,
      #02090c
    );

  border: 1px solid rgba(205, 163, 106, 0.4);

  letter-spacing: 4px;
}

.play {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  border: 1px solid var(--gold);
  border-radius: 50%;

  color: var(--gold);

  font-size: 20px;
}

/* =========================================================
   DEVLOG
========================================================= */

.dev-cards {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;

  margin-top: 35px;
}

.dev-cards > div {
  padding: 30px;

  background: #07151c;

  border: 1px solid rgba(205, 163, 106, 0.25);

  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.dev-cards > div:hover {
  transform: translateY(-3px);

  border-color: rgba(205, 163, 106, 0.55);
}

.dev-cards small {
  color: var(--gold);
}

.dev-cards h3 {
  font-size: 17px;
  letter-spacing: 1px;
}

.dev-cards p {
  color: var(--muted);

  line-height: 1.6;
}

/* =========================================================
   CTA
========================================================= */

.cta {
  text-align: center;

  border-top: 1px solid rgba(205, 163, 106, 0.2);
  border-bottom: 1px solid rgba(205, 163, 106, 0.2);
}

.cta p {
  margin-bottom: 30px;

  color: var(--muted);
}

/* =========================================================
   FAQ
========================================================= */

.faq details {
  padding: 20px 0;

  border-top: 1px solid rgba(205, 163, 106, 0.25);
}

.faq details:last-of-type {
  border-bottom: 1px solid rgba(205, 163, 106, 0.25);
}

.faq summary {
  cursor: pointer;

  letter-spacing: 1px;
}

.faq p {
  max-width: 800px;

  color: var(--muted);

  line-height: 1.7;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 70px 20px;

  text-align: center;

  background: #02070a;

  border-top: 1px solid rgba(205, 163, 106, 0.25);
}

footer img {
  width: 220px;
  max-height: 90px;

  margin: 0 auto 15px;

  object-fit: contain;
}

footer div {
  color: var(--gold);

  font-size: 10px;
  letter-spacing: 4px;
}

footer small {
  display: block;

  margin-top: 25px;

  color: #667277;
}

/* =========================================================
   LARGE SCREENS — 1600px+
   ========================================================= */

@media (min-width: 1600px) {

  .site-header {
    height: 84px;

    grid-template-columns: 260px minmax(0, 1fr) 260px;

    padding-left: 38px;
    padding-right: 38px;
  }

  .brand {
    width: 230px;
    height: 72px;
  }

  .brand img {
    width: 210px;
    max-height: 66px;
  }

  .site-header nav {
    gap: 32px;
    font-size: 12px;
  }

  .site-header nav a {
    height: 84px;
  }

  .steam-top {
    width: 215px;
    height: 44px;
    font-size: 11px;
  }

  .lore-card {
    min-height: 500px;
  }

  .story,
  .journey {
    min-height: 680px;
  }

  .story-image,
  .journey-image {
    min-height: 680px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .site-header nav {
    gap: 18px;
  }

  .site-header nav a {
    font-size: 11px;
  }

  .steam-top {
    padding: 11px 14px;

    font-size: 10px;
  }

  .lore-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lore-card {
    min-height: 420px;
  }

  .story,
  .journey {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width:900px){

  /* MOBILE HEADER */
  .site-header{
    width:100%;
    height:76px;
    min-height:76px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 18px;
    overflow:visible;
  }

  .brand{
    width:auto;
    max-width:calc(100% - 64px);
    height:76px;
    flex:0 1 auto;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    overflow:visible;
  }

  .brand img{
    display:block;
    width:min(190px, 46vw);
    max-width:100%;
    height:auto;
    max-height:58px;
    object-fit:contain;
    object-position:left center;
  }

  .site-header nav,
  .steam-top{
    display:none;
  }

  .menu-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
    flex:0 0 46px;
    margin:0 0 0 auto;
    padding:0;
    background:transparent;
    border:0;
    color:#fff;
    font-size:0;
    line-height:1;
    cursor:pointer;
  }

  /* Stable hamburger bars independent of Android font rendering */
  .menu-toggle::before{
    content:"";
    width:30px;
    height:22px;
    display:block;
    background:
      linear-gradient(#fff,#fff) top left / 30px 2px no-repeat,
      linear-gradient(#fff,#fff) center left / 30px 2px no-repeat,
      linear-gradient(#fff,#fff) bottom left / 30px 2px no-repeat;
  }

  /* MOBILE HERO */
  .hero{
    min-height:calc(100svh - 76px);
    height:auto;
  }

  .hero-copy{
    width:100%;
    max-width:900px;
    padding:0 22px;
    margin-top:76px;
  }

  .hero-copy h1{
    font-size:14px;
    letter-spacing:4px;
    line-height:1.5;
  }

  .hero-actions{
    flex-direction:column;
    width:100%;
    max-width:360px;
    margin:0 auto;
  }

  .hero-actions .btn{
    width:100%;
    min-width:0;
  }

  .pillars{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
  }

  .pillars div:nth-child(2n){
    border:0;
  }

  .intro{
    display:block;
  }

  .intro p{
    text-align:left;
  }

  .lore-grid{
    grid-template-columns:1fr 1fr;
  }

  .story,
  .journey{
    grid-template-columns:1fr;
  }

  .story-image,
  .journey-image{
    min-height:330px;
  }

  .dev-cards{
    grid-template-columns:1fr;
  }

  .section h2{
    font-size:34px;
  }
}

/* SMALL MOBILE */
@media (max-width:560px)
{
  .hero-art {
    background-image: url('assets/mobile-hero.png');
    background-position: center center;
    background-size: cover;
  }
}

{

  .site-header{
    height:72px;
    min-height:72px;
    padding:0 14px;
  }

  .brand{
    height:72px;
    max-width:calc(100% - 58px);
  }

  .brand img{
    width:min(180px, 52vw);
    max-height:54px;
  }

  .menu-toggle{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    flex-basis:44px;
  }

  .menu-toggle::before{
    width:28px;
    height:21px;
    background:
      linear-gradient(#fff,#fff) top left / 28px 2px no-repeat,
      linear-gradient(#fff,#fff) center left / 28px 2px no-repeat,
      linear-gradient(#fff,#fff) bottom left / 28px 2px no-repeat;
  }

  .lore-grid{
    grid-template-columns:1fr;
  }

  .pillars{
    grid-template-columns:1fr 1fr;
  }

  .hero{
    min-height:calc(100svh - 72px);
  }

  .hero-art{
    background-position:55% center;
  }

  .hero-copy{
    margin-top:72px;
    padding:0 18px;
  }

  .hero-copy h1{
    line-height:1.5;
  }

  .section{
    padding:65px 20px;
  }

  .story-copy,
  .journey-copy{
    padding:55px 25px;
  }

  .trailer{
    height:300px;
  }

  footer div{
    line-height:1.7;
  }
}
