@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap');

:root {
  color-scheme: dark;
  --ink: #090a09;
  --paper: #f7f2e7;
  --muted: #c6bfae;
  --bronze: #c99a56;
  --line: rgba(247, 242, 231, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  background: url("./architectural-texture.webp") center / cover no-repeat;
  filter: none;
  opacity: 0.92;
}

body::after {
  background:
    linear-gradient(90deg, rgba(9, 10, 9, 0.34) 0%, rgba(9, 10, 9, 0.24) 52%, rgba(9, 10, 9, 0.18) 100%),
    linear-gradient(180deg, rgba(9, 10, 9, 0.06) 0%, rgba(9, 10, 9, 0.42) 100%),
    radial-gradient(circle at 14% 12%, rgba(201, 154, 86, 0.12), transparent 34rem);
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 4rem) clamp(1.5rem, 5vw, 5.5rem) clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
}

.masthead,
footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.masthead,
.intro,
footer,
.masthead > *,
.intro > *,
footer > * {
  min-width: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: inherit;
  text-decoration: none;
}

.wordmark__number {
  color: var(--bronze);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.wordmark__name {
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.descriptor,
.domain {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(3rem, 9vw, 10rem);
  align-items: center;
  padding: clamp(5rem, 11vh, 9rem) 0;
}

.rule {
  grid-column: 1 / -1;
  align-self: start;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze) 0 10%, var(--line) 10% 100%);
}

h1 {
  margin: clamp(2.25rem, 5vw, 5rem) 0 0;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(4.4rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
}

.copy {
  align-self: start;
  max-width: 35rem;
  margin-top: clamp(5.3125rem, 12.1875vw, 12.1875rem);
  padding-bottom: 0.5rem;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.7;
}

.copy p {
  margin: 0 0 1.35em;
}

.copy .standard {
  margin-top: 1.35em;
  margin-bottom: 0;
  color: var(--paper);
}

.standard span,
.standard em {
  display: block;
}

.standard em {
  margin-top: 0.22em;
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-weight: 400;
  line-height: 1.55;
}

footer {
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.referral {
  margin: 0;
  border-bottom: 1px solid rgba(201, 154, 86, 0.65);
  color: var(--paper);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.55;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.referral:hover,
.referral:focus-visible {
  border-color: var(--bronze);
  color: var(--bronze);
}

.referral:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 5px;
}

.masthead,
.intro,
footer {
  animation: reveal 900ms cubic-bezier(0.2, 0.65, 0.25, 1) both;
}

.intro {
  animation-delay: 100ms;
}

footer {
  animation-delay: 200ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body::before {
    background-position: 18% center;
    opacity: 0.94;
  }

  body::after {
    background:
      linear-gradient(90deg, rgba(9, 10, 9, 0.28), rgba(9, 10, 9, 0.18)),
      linear-gradient(180deg, rgba(9, 10, 9, 0.18), rgba(9, 10, 9, 0.5));
  }

  main {
    min-height: 100svh;
  }

  .descriptor {
    max-width: 8rem;
    text-align: right;
    line-height: 1.5;
  }

  .intro {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: clamp(4.5rem, 11vh, 7rem) 0;
  }

  h1 {
    margin-top: 2.25rem;
    max-width: 100%;
    font-size: clamp(2.85rem, 14vw, 6.2rem);
  }

  .copy {
    width: 100%;
    margin-top: 4rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .copy p {
    max-width: 100%;
  }

  footer {
    gap: 1.5rem;
  }

  .domain {
    max-width: 46%;
    overflow-wrap: anywhere;
    text-align: right;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 1.25rem;
  }

  .wordmark {
    gap: 0.45rem;
  }

  .wordmark__name {
    letter-spacing: 0.2em;
  }

  h1 {
    font-size: 14vw;
  }

  .descriptor {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .referral {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .domain {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead,
  .intro,
  footer {
    animation: none;
  }
}
