:root {
  --ink: #1b2430;
  --muted: #5c6675;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --line: #d9dfd7;
  --mint: #2f8f83;
  --coral: #e86d5b;
  --amber: #f0b84d;
  --blue: #3d74b6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

.site-shell {
  width: 92%;
  max-width: 72em;
  min-width: 18em;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.2em 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: bold;
  animation: popIn 0.8s ease;
}

.brand h1 {
  margin: 0;
  font-size: 1.4em;
}

.brand p {
  margin: 0.1em 0 0;
  color: var(--muted);
  font-size: 0.9em;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.7em 1em;
  border-radius: 1.5em;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--ink);
  color: white;
  transform: translateY(-0.15em);
}

.hero,
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2em;
  align-items: center;
  padding: 2.5em 0;
}

.hero-text h2,
.page-head h2 {
  margin: 0;
  max-width: 11em;
  font-size: 3em;
  line-height: 1.05;
}

.hero-text p,
.page-head p,
.text-box p,
.caption p,
.contact-card p,
.message-box p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.7em;
  color: var(--coral);
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 1.4em;
}

.button {
  display: inline-block;
  padding: 0.8em 1.2em;
  border: 0.12em solid var(--ink);
  border-radius: 1.7em;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.button:hover {
  background: var(--coral);
  color: white;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--ink);
  color: white;
}

.hero-image,
.profile-img,
.gallery-item,
.info-card,
.contact-card,
.message-box,
.ordered-area,
.text-box {
  border: 0.08em solid var(--line);
  border-radius: 0.8em;
  background: var(--panel);
}

.hero-image {
  overflow: hidden;
  box-shadow: 0 1em 2em rgba(27, 36, 48, 0.12);
  animation: floatUp 1s ease;
}

.quick-grid,
.gallery,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(12em, 1fr));
  gap: 1em;
  padding: 1.5em 0 2.5em;
}

.info-card,
.contact-card,
.message-box,
.ordered-area,
.text-box {
  padding: 1.2em;
}

.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.gallery-item:hover,
.contact-card:hover {
  transform: translateY(-0.35em);
  box-shadow: 0 0.8em 1.5em rgba(27, 36, 48, 0.12);
}

.sprite {
  display: inline-block;
  width: 3em;
  height: 3em;
  background-image: url("../images/sprite.svg");
  background-size: 12em 3em;
  background-repeat: no-repeat;
}

.sprite-code {
  background-position: 0 0;
}

.sprite-photo {
  background-position: -3em 0;
}

.sprite-social {
  background-position: -6em 0;
}

.sprite-mail {
  background-position: -9em 0;
}

.page-head {
  padding: 2.5em 0 1em;
}

.profile-img {
  padding: 1em;
}

.check-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
}

.gallery {
  grid-template-columns: repeat(2, minmax(14em, 1fr));
}

.gallery-item {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
}

.caption {
  padding: 1em;
}

.caption h3,
.contact-card h3,
.ordered-area h3,
.message-box h3,
.text-box h3,
.info-card h3 {
  margin: 0.4em 0;
}

.ordered-area,
.message-box {
  margin-bottom: 2.5em;
}

.ordered-area ol {
  margin: 0;
  padding-left: 1.3em;
  line-height: 1.9;
}

.contact-card a {
  display: inline-block;
  margin-top: 0.5em;
  color: var(--blue);
  font-weight: bold;
  text-decoration: none;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(1em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    transform: scale(0.6);
  }

  to {
    transform: scale(1);
  }
}

@media (max-width: 48em) {
  .topbar,
  .hero,
  .split-section {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h2,
  .page-head h2 {
    font-size: 2.2em;
  }

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