:root {
  color-scheme: dark;
  --ink: #101217;
  --paper: #f4f0e8;
  --muted: #aeb2ba;
  --line: rgba(244, 240, 232, 0.16);
  --signal: #9ee6ce;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 16%, rgba(70, 108, 98, 0.2), transparent 32rem),
    linear-gradient(135deg, #101217 0%, #15181e 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 48px, 1200px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  animation: page-reveal 520ms var(--ease-out) both;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  text-decoration: none;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.brand-studio {
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 450;
}

.brand-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  align-self: center;
  max-width: 900px;
  padding: 88px 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: page-reveal 580ms 60ms var(--ease-out) both;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(158, 230, 206, 0.09);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8.25vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
  animation: page-reveal 640ms 120ms var(--ease-out) both;
}

.intro {
  max-width: 730px;
  margin: 42px 0 0;
  color: #d0d2d5;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.7;
  text-wrap: pretty;
  animation: page-reveal 640ms 180ms var(--ease-out) both;
}

.contact {
  width: fit-content;
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--signal);
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  animation: page-reveal 640ms 240ms var(--ease-out) both;
  transition: color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.contact:active {
  transform: scale(0.98);
}

.contact:hover,
.contact:focus-visible {
  color: var(--signal);
}

.contact span:last-child {
  transition: transform 180ms var(--ease-out);
}

.contact:focus-visible span:last-child {
  transform: translate(4px, -2px);
}

@media (hover: hover) and (pointer: fine) {
  .contact:hover span:last-child {
    transform: translate(4px, -2px);
  }
}

.contact:focus-visible,
.brand-mark:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 6px;
}

footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  line-height: 1.55;
}

footer p {
  margin: 0;
}

.footer-contact {
  display: contents;
}

.footer-contact address {
  justify-self: center;
  font-style: normal;
  text-align: left;
}

.footer-contact > a {
  justify-self: end;
}

footer a {
  text-decoration-color: rgba(174, 178, 186, 0.5);
  text-underline-offset: 4px;
  transition: color 180ms var(--ease-out), text-decoration-color 180ms var(--ease-out);
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes reduced-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

footer a:hover,
footer a:focus-visible {
  color: var(--paper);
  text-decoration-color: var(--signal);
}

@media (max-width: 840px) {
  footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-contact address,
  .footer-contact > a {
    justify-self: auto;
  }

  .footer-contact address a,
  .footer-contact > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, 1200px);
  }

  .brand {
    align-items: flex-start;
    padding: 24px 0;
  }

  .brand-line {
    max-width: 9rem;
    text-align: right;
    line-height: 1.5;
  }

  .hero {
    padding: 64px 0;
  }

  .status {
    margin-bottom: 26px;
  }

  .intro {
    margin-top: 30px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .brand,
  .status,
  h1,
  .intro,
  .contact {
    animation: reduced-fade 200ms ease both !important;
  }
}
