@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap");

:root {
  --ice: #c5cccd;
  --steel-pale: #a2acb0;
  --surface: #becacb;
  --metal: #b8b8b7;
  --slate: #606467;
  --charcoal: #353533;
  --ink-dark: #1c1c1c;
  --void: #090a0c;
  --taupe: #968279;
  --chrome: #e8ecec;

  --ink: #1c1c1c;
  --ink-on-dark: #f2f4f4;
  --ink-dim: rgba(28, 28, 28, 0.62);
  --ink-dim-dark: rgba(242, 244, 244, 0.62);
  --line: rgba(28, 28, 28, 0.18);
  --line-on-dark: rgba(242, 244, 244, 0.2);

  --win-face: #c0c0c0;
  --win-light: #ffffff;
  --win-dark: #808080;
  --win-darker: #404040;
  --win-title: #000080;

  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: Tahoma, "MS Sans Serif", sans-serif;
  --phone-w: 430px;
  --rail: min(92vw, 24.5rem);
  --page-pad: clamp(1.25rem, 4vw, 2rem);
  --bottom-safe: max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  width: 100%;
  min-height: 100%;
  background: #090a0c;
}

body {
  width: 100%;
  max-width: var(--phone-w);
  min-height: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a, button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

.page-bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--phone-w));
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(9, 10, 12, 0.22) 0%, rgba(9, 10, 12, 0.12) 45%, rgba(9, 10, 12, 0.32) 100%),
    #090a0c url("mireille.jpg") center / cover no-repeat;
  transform: translateX(-50%) scale(1.02);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(197, 204, 205, 0.1) 0%, rgba(28, 28, 28, 0.12) 55%, rgba(9, 10, 12, 0.18) 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(9, 10, 12, 0.02) 2px,
      rgba(9, 10, 12, 0.02) 3px
    );
  pointer-events: none;
  opacity: 0.45;
}

.shell {
  position: relative;
  z-index: 1;
  width: var(--rail);
  margin: 0 auto;
  padding: var(--page-pad);
  padding-bottom: var(--bottom-safe);
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
}

.shell > * {
  margin-left: auto;
  margin-right: auto;
}

.footer-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 8.5rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2f4f4;
  text-shadow: none;
  line-height: 1;
  padding: 0.78rem 1.35rem;
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid rgba(242, 244, 244, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(9, 10, 12, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-nav a::before {
  content: "←";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.85;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #090a0c;
  background: rgba(232, 236, 236, 0.94);
  border-color: rgba(232, 236, 236, 0.94);
  box-shadow: 0 10px 24px rgba(9, 10, 12, 0.4);
  outline: none;
}

.footer-nav a:active {
  box-shadow: 0 4px 12px rgba(9, 10, 12, 0.3);
}

.label {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(242, 244, 244, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #f2f4f4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hairline {
  width: min(100%, 12rem);
  height: 1px;
  margin: 1.1rem auto 1.45rem;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 244, 244, 0.55), transparent);
}

.prose {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
  font-size: clamp(1.05rem, 2.3vw, 1.16rem);
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink-dark);
  background: rgba(190, 202, 203, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-right: 1px solid rgba(96, 100, 103, 0.45);
  border-bottom: 1px solid rgba(53, 53, 51, 0.45);
  padding: clamp(1rem, 3vw, 1.35rem);
  box-shadow: 2px 2px 0 rgba(9, 10, 12, 0.12);
}

.prose p { margin-bottom: 1.25rem; }
.prose p:last-child {
  margin-bottom: 0;
  padding-bottom: 0.15rem;
}

.prose .mark {
  font-style: italic;
  border-bottom: 1px solid rgba(96, 100, 103, 0.55);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.prose .mark:hover {
  color: var(--void);
  border-bottom-color: var(--charcoal);
}

.cursor-glow {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(232, 236, 236, 0.35), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: soft-light;
}

body.has-pointer .cursor-glow { opacity: 1; }

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor-glow { display: none !important; }
}