:root {
  color-scheme: light;
  --ink: #0e2948;
  --ink-soft: #294764;
  --paper: #f8ecd8;
  --paper-deep: #efd9ba;
  --coral: #d97866;
  --coral-dark: #b75c50;
  --stone: #e8e1d4;
  --sea: #2e5d68;
  --grass: #6d7b54;
  --white: #fffaf0;
  --shadow: rgba(14, 41, 72, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.home-page {
  background: #111;
  overflow: hidden;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: end start;
  padding: 3rem;
  isolation: isolate;
}

.home-photo,
.home-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-photo {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.home-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 18, 30, 0.76), rgba(5, 18, 30, 0.2) 55%, rgba(5, 18, 30, 0.38)),
    linear-gradient(0deg, rgba(5, 18, 30, 0.52), rgba(5, 18, 30, 0.02) 45%);
}

.home-title {
  max-width: 42rem;
  color: var(--white);
  animation: rise-in 700ms ease-out both;
}

.home-title p {
  margin: 0 0 0.75rem;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.95rem;
}

.home-title h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 5.4rem;
  font-weight: 500;
  line-height: 0.95;
  text-wrap: balance;
}

.home-hi-link {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: inline-flex;
  min-width: 3.25rem;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 240, 0.58);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-hi-link:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.hi-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #05121e;
  isolation: isolate;
}

.hi-page::before,
.hi-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.hi-page::before {
  z-index: -3;
  background-image: url("./singapore-night.jpeg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.hi-page::after {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 13, 22, 0.86) 0%, rgba(4, 15, 25, 0.72) 34%, rgba(4, 16, 27, 0.24) 64%, rgba(4, 15, 24, 0) 100%),
    linear-gradient(90deg, rgba(4, 13, 22, 0.3), rgba(4, 13, 22, 0.04) 52%, rgba(4, 13, 22, 0.14));
}

.hi-header {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 5;
}

.hi-header a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: var(--white);
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hi-header a:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.hi-minimal-wrap {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: start;
  justify-items: start;
  padding: 6rem 1.25rem 2rem;
}

.contact-stage {
  position: relative;
  width: min(31rem, 100%);
  margin: 10vh 0 0 13vw;
  color: var(--white);
  animation: rise-in 650ms ease-out both;
}

.contact-stage h1 {
  margin: 0;
  color: var(--white);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.46);
  text-wrap: balance;
}

.contact-subtext {
  max-width: 27rem;
  margin: 0.85rem 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: 1rem;
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.reveal-button {
  min-height: 3.35rem;
  margin-top: 1.6rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.12);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.reveal-button:hover:not(:disabled) {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.reveal-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.contact-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.contact-panel[hidden] {
  display: none;
}

.contact-action {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 8px;
  background: rgba(5, 18, 30, 0.42);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-action::after {
  content: "Open";
  flex: 0 0 auto;
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-action:hover {
  border-color: rgba(255, 250, 240, 0.58);
  background: rgba(5, 18, 30, 0.56);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.contact-action[aria-disabled="true"] {
  pointer-events: none;
  color: rgba(255, 250, 240, 0.42);
}

.contact-action[aria-disabled="true"]::after {
  content: "Missing";
  color: rgba(255, 250, 240, 0.34);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .home-hero {
    min-height: 100svh;
    padding: 1.5rem;
  }

  .home-title h1 {
    font-size: 3.2rem;
  }

  .home-hi-link {
    top: 1.25rem;
    right: 1.25rem;
  }

  .hi-minimal-wrap {
    min-height: 100svh;
    padding: 5.5rem 0.95rem 1rem;
  }

  .contact-stage {
    width: min(30rem, 100%);
    margin: 10vh 0 0;
  }

  .contact-stage h1 {
    font-size: 1.9rem;
  }
}

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