/*
Theme Name: Ramzalu Persian Crossword
Theme URI: https://ramzalu.com/
Author: Ramzalu
Description: Minimal WordPress theme for the Persian Crossword Game website.
Version: 1.0.0
Text Domain: ramzalu
*/

:root {
  --navy: #071c45;
  --navy-soft: #0d2a63;
  --magenta: #d21882;
  --text: #111827;
  --muted: #5b6577;
  --line: #e7eaf0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  background: var(--navy);
  color: var(--white);
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.site-brand img {
  width: min(190px, 44vw);
  max-height: 42px;
  object-fit: contain;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}

.site-menu a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus {
  color: var(--white);
}

.hero {
  background: var(--white);
  padding: 78px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: 56px;
}

.hero-logo {
  width: min(460px, 88vw);
  margin-bottom: 30px;
}

.hero-logo.placeholder {
  width: fit-content;
  min-width: 190px;
  padding: 14px 18px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
}

.hero h1 .game {
  color: var(--magenta);
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(7, 28, 69, 0.18);
}

.download-button:hover,
.download-button:focus {
  background: var(--navy-soft);
}

.hero-device {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--white);
}

.hero-device.placeholder {
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 28px;
}

.contact-band {
  padding: 72px 0 84px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 52px;
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--white);
  font: inherit;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.submit-button {
  justify-self: start;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--magenta);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.page-main {
  min-height: calc(100vh - 148px);
  padding: 72px 0 88px;
}

.content-wrap {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.content-wrap h1 {
  margin: 0 0 26px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.content-wrap h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.content-wrap p,
.content-wrap li {
  color: inherit;
  font-size: 17px;
}

.about-page {
  background: var(--navy);
  color: var(--white);
}

.privacy-page {
  background: var(--white);
  color: var(--text);
}

.contact-page {
  background: #f8fafc;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.84);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 760px) {
  .site-shell,
  .content-wrap {
    width: min(100% - 28px, 1120px);
  }

  .site-nav {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-menu {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 14px;
  }

  .hero {
    padding: 52px 0 56px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-logo {
    margin-bottom: 24px;
  }

  .contact-band,
  .page-main {
    padding: 52px 0 62px;
  }
}
