:root {
  color-scheme: dark;
  --black: #000;
  --ink: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.72);
  --brown: #a3826c;
  --field: #141414;
  --line: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--black);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a { color: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 0 22px;
  background: var(--black);
  border-bottom: 3px solid var(--brown);
}

.brand { display: flex; align-items: center; }

.bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.mark {
  display: block;
  height: 52px;
  width: auto;
}

.about,
.text-link {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.text-link {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 0;
  cursor: pointer;
}

.about:hover,
.about[aria-current="page"],
.text-link:hover { color: var(--brown); }

.signup {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: #1a120e;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
}

.signup:hover { filter: brightness(1.08); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(520px, calc(100vh - 78px - 180px));
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("hero.png") center / cover no-repeat;
  filter: blur(5px);
  transform: scale(1.06);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.62)),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.38));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: min(1100px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 72px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 11em;
  text-align: center;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.info {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 600 16px/1 Georgia, serif;
  font-style: italic;
  cursor: pointer;
}

.image-note {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 66px;
  width: min(280px, calc(100% - 44px));
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--black);
  padding: 52px 8vw 44px;
  text-align: center;
}

.blessing {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.foot-note {
  margin: 40px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.foot-credit {
  margin: 16px 0 0;
  color: rgba(246, 243, 238, 0.55);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.foot-logo {
  height: 36px;
  width: auto;
  margin-top: 40px;
  opacity: 0.4;
}

html:not(.open),
html:not(.open) body,
html.signing,
html.signing body {
  overflow: hidden;
  height: 100%;
}

.gate,
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  background: var(--black);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.login {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
}

html.open .gate,
.gate[hidden],
.login[hidden] {
  display: none;
}

.panel {
  width: min(420px, 100%);
}

.panel .mark {
  height: 72px;
  margin: 0 0 22px;
}

.panel h1 {
  margin: 0 0 22px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 36px;
  font-weight: 500;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.panel .signup { margin-top: 22px; }

.notice {
  min-height: 1.3em;
  margin: 14px 0 0;
  color: #e7c2b2;
  font-size: 14px;
}

.desk {
  min-height: calc(100vh - 78px);
  padding: 48px 8vw;
}

.desk h1 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
}

.about-page {
  min-height: calc(100vh - 78px);
  padding: 56px 8vw 72px;
}

.about-page h1 {
  margin: 0 0 16px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 42px;
  font-weight: 500;
}

.about-page p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .hero-copy { width: calc(100% - 32px); }
  .bar { padding: 0 14px; }
  .bar-right { gap: 14px; }
  .mark { height: 42px; }
  .foot { padding: 40px 24px 32px; }
}
