@font-face {
  font-family: "Swis721 Hv BT";
  src: url("swiss721-heavy.otp") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.name {
  font-size: clamp(3rem, 14vw, 5rem);
  letter-spacing: -0.02em;
}

/* ==========================================================
   Aidan April - one page artist hub
   Colors are pulled from the profile photo: tunnel shadow,
   warm bone skin tones, and the sodium-lamp glow.
   Change a color once here and it updates everywhere.
   ========================================================== */

:root {
  --ink:  #0f0a07;                    /* page background (tunnel shadow) */
  --bone: #efe5d8;                    /* main text and filled buttons */
  --dust: #a99a8a;                    /* quieter text */
  --lamp: #e2a65f;                    /* hover and keyboard focus glow */
  --line: rgba(239, 229, 216, 0.22);  /* button outlines */
  --wash: rgba(239, 229, 216, 0.06);  /* button fill */

--display: "Swis721 Hv BT", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Photo ---------- */

.hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  animation: emerge 1.8s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  /* fades the photo into the page at the top and bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 55%, transparent 100%);
}

/* On larger screens keep the photo from taking the whole window */
@media (min-width: 700px) {
  .hero {
    aspect-ratio: auto;
    height: 64vh;
    min-height: 30rem;
  }
}

/* ---------- Name ---------- */

.intro {
  position: relative;
  margin-top: -5.5rem;               /* pulls the name up into the faded photo */
  padding: 0 1.25rem;
  text-align: center;
  animation: fade 1.2s 0.6s ease-out both;
}

.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.75rem, 16vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 28px rgba(15, 10, 7, 0.95);
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--dust);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ---------- Links ---------- */

.links {
  width: min(100% - 2.5rem, 28rem);
  margin: 2.25rem auto 0;
  display: grid;
  gap: 2rem;
}

.group {
  display: grid;
  gap: 0.75rem;
}

.group h2 {
  margin: 0;
  color: var(--dust);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.grid .btn {
  padding-inline: 0.5rem;
  font-size: 0.92rem;
}

/* if a grid has an odd number of buttons, the last one spans the full width */
.grid .btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--wash);
  color: var(--bone);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

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

/* the two main buttons */
.btn.primary {
  min-height: 3.6rem;
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--lamp);
  border-color: var(--lamp);
}

/* Buttons with an empty link: dimmed, dashed, tagged "soon".
   This must stay below the button rules above. */
.btn[href=""] {
  background: transparent;
  border-style: dashed;
  border-color: rgba(239, 229, 216, 0.16);
  color: var(--dust);
  cursor: default;
  pointer-events: none;
}

.btn[href=""]::after {
  content: "soon";
  position: absolute;
  top: 0.2rem;
  right: 0.4rem;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 3rem;
  padding: 0 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  color: var(--dust);
  font-size: 0.85rem;
  text-align: center;
}

.foot p { margin: 0 0 0.5rem; }
.foot a { color: inherit; }

/* ---------- Page load: the photo comes up out of the dark ---------- */

@keyframes emerge {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero, .intro { animation: none; }
  .btn { transition: none; }
}
