@font-face {
  font-family: Nimbus;
  src: url("assets/sans.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nimbus;
  src: url("assets/sans-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Nimbus, Arial, sans-serif;
  color: #fff;
  background: #071522;
  font-synthesis: none;
  --gold: #e9b04a;
  --ink: #102c43;
  --muted: #52616b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
a,
button {
  transition:
    background-color 0.18s,
    color 0.18s,
    transform 0.18s;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #316b91;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(900px, 100svh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(#12628f, #071522);
}
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}
.gateway {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  position: absolute;
  inset: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    rgb(3 20 35 / 58%) 0 100px,
    transparent 25%,
    transparent 40%,
    rgb(5 14 26 / 40%) 65%,
    rgb(4 10 19 / 88%) 100%
  );
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 4%;
  position: relative;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 44px;
}
.brand svg {
  width: 34px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.5;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 16px;
}
.header nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sign-in {
  padding: 10px 30px;
  background: rgb(220 238 254 / 16%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 99px;
  backdrop-filter: blur(10px);
}
.sign-in:hover {
  background: rgb(220 238 254 / 25%);
  text-decoration: none;
}
.hero-content {
  margin-top: auto;
  padding: 0 24px 78px;
  text-align: center;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  color: var(--gold);
}
.ornament span {
  width: 45px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.ornament svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
h1 {
  font-size: clamp(36px, 3.5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.intro {
  font-size: 18px;
  line-height: 1.55;
  color: #e0e6ec;
  max-width: 720px;
  margin: 0 auto 44px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 56px;
  background: white;
  color: #111;
  border: 0;
  border-radius: 99px;
  padding: 16px 34px;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
}
.primary span {
  font-size: 26px;
  line-height: 1;
}
.primary:hover {
  background: #edf2f6;
  text-decoration: none;
}
.primary:active {
  transform: translateY(1px);
}
.utility {
  position: absolute;
  bottom: 8px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #c9d4dd;
  font-size: 11px;
}
.utility p {
  margin: 0;
  line-height: 1.5;
}
.utility button {
  background: transparent;
  border: 0;
  color: inherit;
  min-height: 44px;
  padding: 8px 0 8px 16px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#art-status {
  position: absolute;
  left: 4%;
  top: 110px;
  right: 4%;
  font-size: 14px;
  color: white;
  margin: 0;
  text-align: center;
}
.cloud {
  position: absolute;
  width: 50%;
  height: auto;
  animation: drift 7s linear infinite alternate;
  animation-play-state: paused;
  will-change: transform;
  opacity: 1;
}
.cloud-left {
  left: 3%;
  top: 35%;
  width: 34%;
  --travel: 24%;
  --lift: -4%;
  animation-delay: -2s;
}
.cloud-right {
  right: 3%;
  top: 35%;
  width: 34%;
  --travel: -34%;
  --lift: 4%;
  animation-duration: 9s;
  animation-delay: -4s;
}
.cloud-near {
  width: 75%;
  left: -23%;
  bottom: -22%;
  --travel: 12%;
  --lift: -3%;
  opacity: 0.5;
  animation-duration: 12s;
  animation-delay: -5s;
}
body[data-motion="running"] .cloud {
  animation-play-state: running;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(var(--travel), var(--lift), 0) scale(1.035);
  }
}
dialog {
  border: 1px solid #d7dddf;
  border-radius: 16px;
  background: #f9faf8;
  color: var(--ink);
  width: min(570px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 42px;
  overflow: auto;
}
dialog:target {
  display: block;
  position: relative;
  margin: 32px auto;
}
dialog::backdrop {
  background: rgb(3 13 22 / 72%);
}
dialog h2 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 12px 0 22px;
  font-weight: 400;
}
dialog p,
dialog li {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
}
.muted {
  font-size: 14px !important;
  color: var(--muted);
}
.close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.close:hover {
  text-decoration: none;
  background: #e6edf0;
  border-radius: 50%;
}
dialog ol {
  padding-left: 22px;
}
dialog li {
  padding: 6px 0 6px 5px;
}
dialog blockquote {
  font-size: 23px;
  line-height: 1.45;
  margin: 24px 0;
  padding-left: 18px;
  border-left: 2px solid #c89a4f;
}
details {
  border-top: 1px solid #d3dbde;
}
details:last-child {
  border-bottom: 1px solid #d3dbde;
}
summary {
  cursor: pointer;
  padding: 16px 0;
  min-height: 52px;
  line-height: 1.5;
}
details p {
  margin: 0 0 18px;
}
label {
  display: block;
  font-size: 15px;
  margin: 18px 0 8px;
}
.optional {
  color: var(--muted);
  font-size: 13px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #8495a0;
  border-radius: 8px;
  background: white;
  color: #132b3b;
  padding: 13px 14px;
  min-height: 48px;
  line-height: 1.45;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
input::placeholder,
textarea::placeholder {
  color: #667078;
}
.dark {
  background: var(--ink);
  color: white;
  font-size: 16px;
}
.dark:hover {
  background: #214865;
}
#memorial-form .primary {
  margin-top: 24px;
}
.tribute {
  border-block: 1px solid #d5dcdf;
  text-align: center;
  padding: 26px 0;
  margin-top: 26px;
}
.tribute h3 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 18px 0 10px;
  overflow-wrap: anywhere;
}
.tribute h3:focus {
  outline: 2px solid #316b91;
  outline-offset: 6px;
}
.tribute #preview-years {
  color: var(--muted);
  font-size: 14px;
}
.tribute #preview-memory {
  white-space: pre-wrap;
  text-align: left;
  margin: 24px 0 0;
}
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.secondary {
  border: 1px solid #8495a0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  padding: 14px 20px;
  min-height: 52px;
}
.secondary:hover {
  background: #e7ecef;
}
#download-status {
  font-size: 14px;
  min-height: 22px;
  margin-bottom: 0;
}
#download-status.error {
  color: #9d2323;
}
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  top: 8px;
  left: 12px;
  background: white;
  color: #102c43;
  padding: 16px;
  z-index: 10;
}
@media (min-width: 1800px) {
  .hero {
    min-height: 100svh;
  }
  .hero-content {
    padding-bottom: 6vw;
  }
  .header {
    padding-top: 2vw;
  }
  .header nav {
    font-size: 18px;
  }
}
@media (max-width: 1000px) {
  .header {
    gap: 20px;
  }
  .header nav {
    gap: 20px;
    font-size: 14px;
  }
  .brand {
    font-size: 24px;
  }
  .sign-in {
    padding-inline: 20px;
  }
  .hero-content {
    padding-bottom: 90px;
  }
  .desktop-break {
    display: none;
  }
}
@media (max-width: 650px) {
  .hero {
    min-height: max(812px, 100svh);
  }
  .header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 20px;
  }
  .brand {
    font-size: 24px;
    width: fit-content;
  }
  .header nav {
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .header nav a {
    min-height: 44px;
  }
  .header nav .sign-in {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 14px;
    padding: 10px 24px;
  }
  .gateway {
    width: 220%;
    height: auto;
    max-width: none;
    left: -60%;
    top: 0;
    object-fit: initial;
    mask-image: linear-gradient(#000 68%, transparent 100%);
  }
  .hero::after {
    background: linear-gradient(
      rgb(3 18 34 / 58%) 0 120px,
      transparent 29%,
      rgb(3 15 27 / 12%) 42%,
      rgb(3 13 25 / 85%) 72%,
      #06111d
    );
  }
  .hero-content {
    padding: 345px 22px 85px;
  }
  .ornament {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 39px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
  }
  .intro {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  .primary {
    font-size: 17px;
    min-height: 56px;
    padding: 16px 28px;
  }
  .cloud-left {
    width: 110%;
    left: -50%;
    top: 32%;
  }
  .cloud-right {
    width: 110%;
    right: -54%;
    top: 35%;
  }
  .cloud-near {
    width: 180%;
    left: -80%;
    bottom: -3%;
    opacity: 0.22;
  }
  .utility {
    left: 20px;
    right: 20px;
    gap: 12px;
    align-items: flex-end;
  }
  .utility p {
    max-width: 200px;
    font-size: 10px;
  }
  .utility button {
    white-space: nowrap;
    font-size: 11px;
  }
  dialog {
    padding: 38px 24px 26px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .preview-actions {
    flex-wrap: wrap;
  }
  .preview-actions button {
    flex: 1;
  }
  .dark {
    font-size: 15px;
  }
}
@media (max-width: 350px) {
  .header {
    padding-inline: 16px;
  }
  .header nav {
    gap: 7px;
    font-size: 12px;
  }
  .header nav .sign-in {
    right: 16px;
  }
  .hero-content {
    padding-inline: 18px;
    padding-top: 300px;
  }
  h1 {
    font-size: 36px;
  }
  .utility {
    left: 16px;
    right: 16px;
  }
  .utility p {
    max-width: 175px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation-play-state: paused !important;
    will-change: auto;
  }
  a,
  button {
    transition: none;
  }
  .primary:active {
    transform: none;
  }
}
