:root {
  color-scheme: light;
  --black: #000000;
  --paper: #f0e8cd;
  --mist: #dee1de;
  --blue: #d3edee;
  --olive: #9c9a30;
  --red: #c53645;
  --silver: #cdcace;
  --ink: #090908;
  --muted: rgba(9, 9, 8, 0.62);
  --line: rgba(9, 9, 8, 0.32);
  --paper-texture: url("./assets/paper-fiber.svg");
  --logo-face: "Prestige Elite Std", "Prestige Elite", Courier, "Courier New", monospace;
  --header-face: "Cormorant Garamond", "Times New Roman", serif;
  --body-face: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only,
.svg-defs {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--ink);
  font-family: var(--body-face);
  font-size: 13px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: var(--black);
}

.gate-card {
  width: min(100%, 520px);
  min-height: 310px;
  display: grid;
  align-content: center;
  padding: clamp(28px, 7vw, 64px);
  position: relative;
  background:
    linear-gradient(rgba(240, 232, 205, 0.86), rgba(240, 232, 205, 0.86)),
    var(--paper-texture);
  border: 10px solid var(--black);
  outline: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px var(--silver);
}

.gate-card::before {
  content: "Y&J";
  position: absolute;
  top: 26px;
  left: 50%;
  color: rgba(9, 9, 8, 0.28);
  font-family: var(--logo-face);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.password-form {
  display: grid;
  gap: 14px;
  text-align: center;
}

.password-form label {
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: rgba(222, 225, 222, 0.74);
  color: var(--ink);
  text-align: center;
}

input:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

button {
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: var(--red);
  color: #ffffff;
}

.error {
  min-height: 1.2em;
  margin: 0;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(205, 202, 206, 0.055) 0 1px, transparent 1.8px),
    var(--black);
  background-size: 18px 18px, auto;
}

.page-view[hidden] {
  display: none !important;
}

.site-header {
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(205, 202, 206, 0.34);
  color: var(--paper);
  backdrop-filter: blur(10px);
}

.brand-link {
  font-family: var(--logo-face);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.brand-link,
.site-nav a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-link:hover,
.brand-link:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.42em;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(34px, 5vw, 74px) clamp(16px, 6vw, 96px);
  position: relative;
}

.hero::before {
  content: none;
}

.hero-card,
.site-section {
  background:
    linear-gradient(rgba(240, 232, 205, 0.88), rgba(240, 232, 205, 0.88)),
    var(--paper-texture);
  box-shadow: 0 0 0 1px rgba(205, 202, 206, 0.54);
}

.hero-card {
  min-height: min(68svh, 620px);
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  padding: clamp(34px, 6vw, 78px);
  border: clamp(10px, 1.4vw, 16px) solid var(--black);
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-card::before {
  inset: clamp(16px, 3vw, 36px);
  border: 1px solid rgba(9, 9, 8, 0.22);
}

.hero-card::after {
  content: none;
}

.kicker,
.hero-details,
.section-number,
.detail-list,
.section-copy,
.response-panel,
.site-button {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.75;
  text-transform: uppercase;
}

.kicker,
.hero-details {
  margin: 0;
  position: relative;
  z-index: 1;
}

.kicker {
  max-width: 34ch;
}

.logo-title {
  width: min(100%, 720px);
  margin: clamp(34px, 5vw, 64px) 0 clamp(34px, 5vw, 64px);
  position: relative;
  z-index: 2;
  line-height: 0;
}

.logo-title img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.logo-title::before,
.logo-title::after {
  content: none;
}

.hero-details {
  color: var(--muted);
}

.site-section {
  width: min(100% - clamp(24px, 7vw, 120px), 1160px);
  min-height: calc(100svh - 132px);
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  margin: clamp(34px, 5vw, 74px) auto;
  padding: clamp(42px, 7vw, 90px);
  position: relative;
  border: 10px solid var(--black);
  scroll-margin-top: 90px;
  overflow: hidden;
}

.site-section::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(9, 9, 8, 0.2);
  pointer-events: none;
}

.site-section::after {
  content: "";
  width: clamp(72px, 10vw, 130px);
  aspect-ratio: 1 / 2;
  position: absolute;
  right: clamp(26px, 5vw, 68px);
  top: clamp(22px, 5vw, 58px);
  background: url("./assets/weed-mark.svg") center / contain no-repeat;
  opacity: 0.13;
  transform: rotate(-8deg);
  pointer-events: none;
}

.section-blue {
  background:
    linear-gradient(rgba(211, 237, 238, 0.82), rgba(211, 237, 238, 0.82)),
    var(--paper-texture);
}

.section-vellum {
  background:
    linear-gradient(rgba(222, 225, 222, 0.82), rgba(222, 225, 222, 0.82)),
    var(--paper-texture);
}

.section-silver {
  background:
    linear-gradient(rgba(205, 202, 206, 0.82), rgba(205, 202, 206, 0.82)),
    var(--paper-texture);
}

.section-heading {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  max-width: 100%;
}

.section-number {
  margin: 0 0 14px;
  color: var(--olive);
  font-weight: 700;
}

.section-heading h2 {
  width: 100%;
  margin: 0;
  line-height: 0;
}

.section-title-mark {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.section-title-mark text {
  fill: var(--ink);
  font-family: var(--logo-face);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.section-title-flourish {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title-flourish path:nth-child(1) {
  stroke-width: 5.2;
}

.section-title-flourish path:nth-child(2) {
  stroke-width: 3.3;
}

.section-title-flourish path:nth-child(3) {
  stroke-width: 2.1;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.detail-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list div:first-child {
  border-top: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
}

.detail-list dt {
  color: var(--olive);
  font-weight: 700;
}

.section-copy,
.response-panel {
  max-width: 68ch;
  margin: 0;
  position: relative;
  z-index: 1;
}

.response-panel {
  display: grid;
  gap: 22px;
}

.response-panel p {
  margin: 0;
}

.site-button {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.site-button::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--red);
}

.site-button:hover,
.site-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}

.photo-grid span {
  aspect-ratio: 4 / 5;
  display: block;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(rgba(222, 225, 222, 0.84), rgba(222, 225, 222, 0.84)),
    var(--paper-texture);
}

.photo-grid span:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 18px),
    linear-gradient(rgba(211, 237, 238, 0.72), rgba(211, 237, 238, 0.72)),
    var(--paper-texture);
}

.photo-grid span:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 18px),
    linear-gradient(rgba(205, 202, 206, 0.74), rgba(205, 202, 206, 0.74)),
    var(--paper-texture);
}

@media (max-width: 860px) {
  .password-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .site-nav a {
    font-size: 0.64rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 18px 14px 44px;
  }

  .hero::before {
    width: 180px;
    top: 118px;
    right: -54px;
  }

  .hero-card {
    min-height: 560px;
    padding: 30px 24px;
  }

  .hero-card::after {
    width: 86px;
    height: 86px;
    top: 34px;
    right: 32px;
  }

  .logo-title {
    width: min(100%, 330px);
    margin: 96px 0 88px;
  }

  .site-section {
    width: calc(100% - 28px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 18px;
    margin-bottom: 28px;
    padding: 58px 24px 36px;
    scroll-margin-top: 0;
  }

  .site-section::before {
    inset: 14px;
  }

  .section-heading {
    width: min(100%, 340px);
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
