/* Lisa Hammond — link page */
:root {
  --bg-top: #fdf8f5;
  --bg-bottom: #f3ebe4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(90, 62, 54, 0.1);
  --text: #2a211c;
  --text-muted: #6b5a52;
  --accent: #a85c62;
  --accent-soft: rgba(168, 92, 98, 0.12);
  --accent-hover: #8f4a50;
  --shadow: 0 18px 50px rgba(42, 33, 28, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 55%, #e8ddd4 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient shapes */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-blob--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -120px;
  right: -80px;
  background: #e8c4b8;
}

.bg-blob--2 {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  bottom: -100px;
  left: -100px;
  background: #c5d4c8;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem 3rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(42, 33, 28, 0.12);
  margin: 0 auto 1.25rem;
  display: block;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  color: var(--text);
}

.tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  padding: 0 0.25rem;
  line-height: 1.55;
}

.quote cite {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links > li {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

/* <button class="link"> shrinks to content in WebKit without full width; keep row full-width even if older CSS is cached */
.links > li > .link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  flex: 0 0 auto;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  border: 1px solid rgba(168, 92, 98, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  animation: link-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.links > li:nth-child(1) .link {
  animation-delay: 0.08s;
}
.links > li:nth-child(2) .link {
  animation-delay: 0.14s;
}
.links > li:nth-child(3) .link {
  animation-delay: 0.2s;
}

@keyframes link-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 92, 98, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(168, 92, 98, 0.35);
  outline: none;
}

.link:active {
  transform: translateY(0);
}

.link svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.link--primary {
  background: linear-gradient(135deg, #a85c62 0%, #8f4a50 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.link--primary svg {
  opacity: 1;
}

.link--primary:hover,
.link--primary:focus-visible {
  background: linear-gradient(135deg, #b56a70 0%, #9d555b 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(143, 74, 80, 0.35);
  color: #fff;
}

.link--button {
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  border: none;
  font: inherit;
  font-weight: 600;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
}

.link--button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* MailBridge contact modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 28, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(420px, calc(100vw - 1.5rem));
  min-width: 0;
  max-height: min(90dvh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.25rem 1.25rem;
  margin: auto;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(42, 33, 28, 0.18);
  text-align: left;
  animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-sizing: border-box;
  overscroll-behavior: contain;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 2rem 0.35rem 0;
  color: var(--text);
}

.modal__hint {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.contact-form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form__input,
.contact-form__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(90, 62, 54, 0.18);
  border-radius: 10px;
  font-family: var(--font-ui);
  /* 16px avoids iOS Safari zooming focused inputs */
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 480px) {
  .contact-form__input,
  .contact-form__textarea {
    font-size: 0.95rem;
  }
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: rgba(168, 92, 98, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

/* Honeypot: must stay inside .contact-form (position: relative); off-screen absolute without a positioned parent breaks layout on iOS */
.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
}

.contact-form__status {
  min-height: 1.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--accent);
}

.contact-form__status--error {
  color: #9a3d3d;
}

.contact-form__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.contact-form__btn {
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.contact-form__btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(90, 62, 54, 0.15);
}

.contact-form__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.contact-form__btn--primary {
  background: linear-gradient(135deg, #a85c62 0%, #8f4a50 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-form__btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.contact-form__btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: fade 1s ease 0.4s both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

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