/* Genshin Impact Informational Website — project page */

:root {
  --ink: #111111;
  --muted: #555555;
  --button: #3a3a3c;
  --button-hover: #4a4a4d;
  --page: #ffffff;
  --content-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: var(--ink);
}

/* Layout */

.page {
  padding: 80px 24px 128px;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Header */

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__image {
  width: 100%;
}

.title {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

/* Sections */

.section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section--first {
  margin-top: 56px;
}

.section h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section p {
  margin: 0;
}

.section p + p {
  margin-top: 8px;
}

/* Design concepts */

.concept {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concept--first {
  margin-top: 24px;
}

.concept__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.concept h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}

.concept p {
  margin: 0;
}

.concept__image {
  width: 100%;
}

/* Centered preview images */

.preview {
  width: 100%;
  margin: 24px auto 0;
}

.preview--document {
  max-width: 320px;
  margin-top: 16px;
}

.preview--prototype {
  max-width: 640px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Buttons */

.button-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--button);
  color: #ffffff;
  border: 1px solid var(--button);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: #ffffff;
}

.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.button svg {
  flex-shrink: 0;
}

/* Small screens */

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .page {
    padding: 48px 16px 96px;
  }

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

  .concept h3 {
    font-size: 24px;
  }
}
