:root {
  --ink: #17242b;
  --ink-soft: #53656e;
  --paper: #f4f1ea;
  --white: #fffefa;
  --line: #cdd6d8;
  --coral: #f26f5b;
  --coral-dark: #c94738;
  --amber: #f2b45f;
  --cyan: #168eae;
  --max-width: 1320px;
  --side: clamp(18px, 4vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

.site-header,
main,
.site-footer {
  width: min(100%, calc(var(--max-width) + 2 * var(--side)));
  margin-inline: auto;
  padding-inline: var(--side);
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  text-decoration: none;
  font-family: "Lexend Tera", Arial, sans-serif;
  font-weight: 500;
}

.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.brand-mark { display: flex; align-items: center; gap: 4px; }
.brand-mark i { width: 8px; height: 8px; display: block; border-radius: 50%; }
.brand-mark i:nth-child(1) { background: var(--coral); }
.brand-mark i:nth-child(2) { background: var(--amber); }
.brand-mark i:nth-child(3) { background: #45b8d1; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-socials { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.header-socials a { width: 21px; height: 21px; display: inline-flex; color: #000; transition: opacity .16s ease, transform .16s ease; }
.header-socials a:hover { opacity: .58; transform: translateY(-2px); }
.header-socials svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.text-link, .footer-links a { text-underline-offset: 4px; }
.text-link { font-size: 14px; }

.button {
  min-height: 38px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-family: Oswald, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--coral-dark); }
.button-primary:hover { background: #a9372c; }
.button-secondary { border-color: var(--ink); }
.button-secondary:hover { color: var(--white); background: var(--ink); }

.app-menu {
  padding-block: clamp(18px, 2.4vh, 28px);
  display: flex;
  flex-direction: column;
}

.menu-heading {
  margin-bottom: clamp(14px, 2vh, 22px);
}

.eyebrow { margin: 0 0 5px; color: var(--cyan); font-family: Oswald, Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 { margin-bottom: 0; font-family: Oswald, Arial, sans-serif; font-size: clamp(19px, 1.9vw, 28px); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.menu-heading h1 span:nth-child(1) { color: var(--coral); }
.menu-heading h1 span:nth-child(2) { color: var(--amber); }
.menu-heading h1 span:nth-child(3) { color: var(--cyan); }
h2 { margin-bottom: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; }
h3 { font-family: Oswald, Arial, sans-serif; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 118px);
  gap: clamp(10px, 1.4vw, 18px);
}

.app-panel {
  min-height: 0;
  padding: clamp(10px, 1.25vw, 15px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  background: rgba(255, 254, 250, .75);
}

.app-panel::before {
  content: "";
  width: 7px;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent, var(--ink));
}

.app-state { color: var(--ink-soft); font-family: Oswald, Arial, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.app-panel h2 { margin: auto 0 0; font-family: "Lexend Tera", Arial, sans-serif; font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -.04em; }
.app-panel p { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.open-label { position: absolute; right: 14px; bottom: 11px; color: var(--accent); font-family: Oswald, Arial, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; }

.available { border-color: color-mix(in srgb, var(--accent) 44%, var(--line)); box-shadow: 0 4px 18px rgba(23, 36, 43, .07); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.available:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 9px 24px rgba(23, 36, 43, .14); }
.available h2 { padding-right: 62px; }
.development { filter: grayscale(1); opacity: .38; }
.development::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(23, 36, 43, .025) 8px 16px); pointer-events: none; }

.accent-red { --accent: #a03b36; }
.accent-coral { --accent: #d44e40; }
.accent-orange { --accent: #d68039; }
.accent-yellow { --accent: #b69526; }
.accent-green { --accent: #4d9360; }
.accent-blue { --accent: #477aa8; }
.accent-cyan { --accent: #168eae; }
.accent-purple { --accent: #76509a; }
.accent-violet { --accent: #9c5793; }

.about { padding-block: clamp(54px, 6vw, 76px); border-top: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(38px, 5.5vw, 68px); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; }
.about-grid article { padding-top: 18px; border-top: 4px solid var(--ink); }
.about-grid article:nth-child(2) { border-color: var(--cyan); }
.about-grid article:nth-child(3) { border-color: var(--amber); }
.about-grid article:nth-child(4) { border-color: var(--coral); }
.about-grid h3 { margin-bottom: 15px; font-size: 28px; }
.about-grid p { margin: 0 0 14px; color: var(--ink-soft); }

.site-footer {
  min-height: 170px;
  padding-block: 40px;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(300px, 1.35fr) auto;
  align-items: start;
  gap: 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-brand { color: var(--ink); font-size: 14px; }
.site-footer p { margin: 8px 0 0; }
.footer-blog { max-width: 470px; }
.footer-blog-title { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.footer-blog p { line-height: 1.5; }
.copyright { white-space: nowrap; }

@media (max-width: 900px) {
  .site-header { padding-block: 16px; align-items: flex-start; }
  .header-actions { justify-content: flex-end; flex-wrap: wrap; }
  .app-menu { min-height: auto; }
  .app-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .app-panel { min-height: 125px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 590px) {
  .site-header { flex-direction: column; }
  .header-socials { margin-left: 0; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .text-link { margin-right: auto; }
  .button-secondary { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .app-panel { min-height: 112px; }
  .about { padding-block: 80px; }
  .about-grid, .site-footer { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .available { transition: none; }
}
