:root {
  color-scheme: light;
  --paper: #f3f1eb;
  --ink: #191919;
  --muted: #6a6964;
  --rule: #c7c4ba;
  --accent: #66705d;
  --page-gutter: clamp(1.35rem, 4.5vw, 5.25rem);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.75vw, 2.75rem) var(--page-gutter) 1.5rem;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-primary {
  font-size: clamp(2rem, 3.2vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 2.5rem;
  text-transform: uppercase;
}

.wordmark-secondary {
  margin-top: 0.95rem;
  font-size: clamp(0.625rem, 0.8vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.27em;
  line-height: 1;
  text-transform: uppercase;
}

.index-mark,
.location {
  margin: 0;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.introduction {
  display: grid;
  grid-template-columns: minmax(1.5rem, 2fr) minmax(0, 7fr) minmax(1.5rem, 3fr);
  align-content: center;
  padding: clamp(5.5rem, 14vh, 9.5rem) 0 clamp(4.5rem, 9vh, 7rem);
}

.registration-rule {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  height: 1px;
  margin-bottom: clamp(1.75rem, 3.4vw, 3.25rem);
  background: var(--rule);
}

.registration-mark {
  position: absolute;
  top: -0.36rem;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--accent);
  background: var(--paper);
}

.registration-label {
  margin-left: clamp(3.25rem, 7.5vw, 8rem);
  padding: 0 0.6rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.intro-content {
  grid-column: 2 / 3;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.65rem, 5.55vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -.0300em;
  line-height: 0.91;
}

.intro-content p {
  max-width: 50ch;
  margin: clamp(1rem, 3.2vw, 3.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1.03rem);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}

.instagram-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: fit-content;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.instagram-link:hover {
  color: var(--accent);
}

.handle {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.3rem;
}

@media (max-width: 42rem) {
  .page-shell {
    padding-bottom: 1.5rem;
  }

  .introduction {
    grid-template-columns: 0.2rem minmax(0, 1fr) 0.2rem;
    padding: clamp(4.75rem, 13vh, 6rem) 0 clamp(4.25rem, 10vh, 5.5rem);
  }

  h1 {
    max-width: 12.5ch;
    font-size: clamp(2.55rem, 12.2vw, 4rem);
  }

  .registration-label {
    margin-left: 2.25rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }
}

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