/* Hard Canon Games — site styles. No JavaScript; layout is pure CSS.
   Structure mirrors thethomasnielsenllc/website/styles.css; the palette is taken from the app icon
   (deep purple field, teal ribbon, cream/gold pages) over the app's dark #1E1E1E UI. */

:root {
  --bg: #1b1b22;
  --bg-raised: #24242e;
  --text: #ece6da;
  --text-muted: #a9a39a;
  --purple: #4a327e;
  --purple-deep: #2e1f52;
  --teal: #1fa9a6;
  --cream: #f6e6c8;
  --gold: #f9d58b;
  --max-width: 1500px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html {
  /* 15px base: all type is rem/clamp-based, so this scales the whole site ~6% smaller. */
  font-size: 93.75%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0 0 1.25em;
}

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

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem var(--gutter);
}

.site-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 400;
  white-space: nowrap;
}

.site-title img {
  width: 2.4em;
  height: 2.4em;
  border-radius: 22%;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--teal);
}

/* ---------- Main ---------- */

main {
  flex: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 2.5rem var(--gutter) 1.5rem;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  color: var(--text-muted);
}

.site-footer .footer-brand {
  max-width: 26em;
}

.site-footer .footer-contact {
  text-align: right;
  margin-left: auto;
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: min(80vh, 820px);
  margin: 0 var(--gutter);
  padding: 4rem 1rem;
  color: var(--cream);
  text-align: center;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(31, 169, 166, 0.35), transparent 60%),
    linear-gradient(170deg, var(--purple) 0%, var(--purple-deep) 100%);
}

.hero img {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 4.25rem);
  letter-spacing: -0.01em;
}

.hero .tagline {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  color: var(--gold);
  margin: 0;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  background: var(--teal);
  color: #0f2a2a;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
  filter: brightness(1.1);
}

/* ---------- Home: feature blocks ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin: clamp(3rem, 8vh, 6rem) var(--gutter) 0;
}

.feature.reverse .feature-text {
  order: -1;
}

.feature img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.feature-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: 0.75em;
  color: var(--cream);
}

.feature-text p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--text-muted);
}

.feature-text p strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Home: pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(3rem, 8vh, 6rem) var(--gutter) 3rem;
}

.pillar {
  padding: 1.75rem;
  border-radius: 0.75rem;
  background: var(--bg-raised);
  border-top: 3px solid var(--teal);
}

.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6em;
  color: var(--cream);
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 8vw, 9rem);
  align-items: center;
  margin: 0 var(--gutter);
  padding: clamp(2rem, 6vh, 5rem) 0 3rem;
}

.contact h1 {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  margin-bottom: 0.6em;
  color: var(--cream);
}

.contact p {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  max-width: 40em;
  color: var(--text-muted);
}

.contact .email {
  display: inline-block;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  margin-top: 1rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact img {
  width: min(100%, 420px);
  margin: 0 auto;
  border-radius: 22%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

/* ---------- Privacy ---------- */

.policy {
  max-width: 46em;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter) 4rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.policy h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 0.5em;
  color: var(--cream);
}

.policy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 1.5em 0 0.75em;
  color: var(--cream);
}

.policy .meta {
  margin-bottom: 3em;
  color: var(--text-muted);
}

.policy a {
  color: var(--teal);
  text-decoration: underline;
}

.policy ul {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.policy li {
  margin-bottom: 0.75em;
  color: var(--text-muted);
}

.policy li strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    min-height: 60vh;
  }

  .feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature.reverse .feature-text {
    order: 0;
  }

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

  .contact img {
    order: -1;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-brand,
  .site-footer .footer-contact {
    text-align: center;
    margin-left: 0;
  }
}