:root {
  --cream: #fdf0d6;
  --ink: #fff7e6;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  overflow: hidden;
  font-family: "Michroma", system-ui, sans-serif;
  color: var(--ink);
  /* violet through blues and teal to green; no yellow or orange anywhere */
  background: linear-gradient(
    135deg,
    #1b1033 0%,
    #1e2a78 22%,
    #0b5ea8 44%,
    #0a8f8a 68%,
    #0f8f5f 88%,
    #0b6e4d 100%
  );
  background-size: 300% 300%;
  animation: drift 28s ease-in-out infinite alternate;
  user-select: none;
}
@keyframes drift {
  to {
    background-position: 100% 100%;
  }
}
main {
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}
h1 {
  color: var(--cream);
  margin: 0;
  font-size: clamp(1.75rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
h1 span {
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s;
}
h1 span:hover {
  transform: translateY(-0.15em) rotate(-8deg) scale(1.15);
}
h1 .last-name {
  opacity: 0.7;
}
footer {
  padding: 0 1rem 1.75rem;
  position: relative;
  text-align: center;
  z-index: 1;
}
footer p {
  margin: 0.75rem 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.7rem, 3vw, 0.875rem);
  line-height: 1.6;
}
footer p a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.25em;
}
footer p a:hover,
footer p a:focus-visible {
  text-decoration: underline;
}
.links {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.links a,
.links button {
  align-items: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.75;
  padding: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.links svg {
  display: block;
}
.links a:hover,
.links a:focus-visible,
.links button:hover,
.links button:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pop {
  position: fixed;
  pointer-events: none;
  font-size: 2rem;
  animation: fly 1.2s ease-out forwards;
  z-index: 2;
}
@keyframes fly {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  .pop {
    animation-duration: 0.01s;
  }
}

/* Contact modal: the native <dialog> supplies the focus trap, Esc, and backdrop */
dialog {
  background: rgba(8, 12, 40, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  max-height: 92vh;
  overflow: auto;
  padding: 0;
  user-select: text;
  width: min(92vw, 28rem);
}
dialog::backdrop {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.55);
}
dialog form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}
dialog h2 {
  font-family: "Michroma", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}
dialog label {
  display: grid;
  font-size: 0.8rem;
  gap: 0.35rem;
}
dialog input:not([type="checkbox"], [type="radio"]),
dialog textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  resize: vertical;
}
dialog input:focus-visible,
dialog textarea:focus-visible {
  border-color: #5eead4;
  outline: 2px solid #5eead4;
  outline-offset: 1px;
}
dialog .hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
dialog .status {
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.2em;
}
dialog fieldset {
  border: 0;
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}
dialog legend {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  padding: 0;
}
dialog .choices label,
dialog .consent {
  align-items: start;
  display: flex;
  font-size: 0.9rem;
  gap: 0.6rem;
}
dialog .consent {
  font-size: 0.8rem;
  line-height: 1.5;
}
dialog input[type="checkbox"],
dialog input[type="radio"] {
  accent-color: #5eead4;
  flex: none;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  width: 1.1rem;
}
dialog .actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
dialog .actions button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}
dialog .actions .primary {
  background: #0f8f6f;
  border-color: #0f8f6f;
}
dialog .actions button:disabled {
  cursor: progress;
  opacity: 0.6;
}

/* Document pages: the home page's centered, non-scrolling layout doesn't apply */
body.page {
  display: block;
  height: auto;
  min-height: 100%;
  overflow: auto;
  user-select: text;
}
.sheet {
  font-family: "Inter", system-ui, sans-serif;
  margin: 0 auto;
  max-width: 36rem;
  padding: 3rem 1.25rem 4rem;
}
.sheet h1 {
  font-family: "Michroma", system-ui, sans-serif;
  font-size: clamp(1.25rem, 5.5vw, 2rem);
  line-height: 1.2;
  margin: 1.75rem 0 0.75rem;
}
.sheet h2 {
  align-items: center;
  display: flex;
  font-family: "Michroma", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 0.75rem;
}
.sheet .lede {
  line-height: 1.6;
  margin: 0 auto 2.5rem;
  max-width: 22rem;
}
.sheet section {
  margin-bottom: 2rem;
}
.elevation {
  color: var(--cream);
  display: block;
  height: auto;
  margin: 0 auto;
  opacity: 0.9;
  width: min(100%, 22rem);
}
.elevation path {
  vector-effect: non-scaling-stroke;
}
.doc,
.cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  transition: background 0.2s;
}
.doc:hover,
.doc:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}
.cta {
  background: #fff;
  border-color: #fff;
  color: #0b1a3a;
  margin-top: 0.5rem;
}
.cta:hover,
.cta:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
}

/* Tooltip styled after the blissbook Tooltip component */
.tooltip {
  font-family: "Inter", system-ui, sans-serif;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 0.2s;
  width: max-content;
  word-wrap: break-word;
  z-index: 9999;
}
.tooltip-content {
  background-color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  max-width: 350px;
  padding: 4px 8px;
}
.tooltip-arrow {
  position: absolute;
}
.tooltip-arrow svg {
  left: 0;
  position: absolute;
  top: 0;
}
.tooltip-arrow polygon {
  fill: #000;
}
.tooltip-arrow path {
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .tooltip {
    transition: none;
  }
}
