/* ==========================================================================
   SEAL STUDIO — LINK IN BIO
   The page's visual detail lives in inline styles (ported straight from the
   design canvas, so a design change there is a one-line change here).
   This file holds only what inline styles cannot do: the page shell, the
   accent token, the marquee keyframes, interaction states and motion opt-out.
   ========================================================================== */

:root {
  /* The one accent. Change it here and it changes everywhere. */
  --accent: #9a6b2f;
  --accent-strong: #7e5622;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ded7cc;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1d1915;
  -webkit-font-smoothing: antialiased;
  /* Final guard against sideways scroll at any width. */
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Page shell — fluid, centred, never wider than the viewport
   -------------------------------------------------------------------------- */

.page {
  width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #e9e4dc 0%, #ded7cc 100%);
  background-attachment: fixed;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px calc(56px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   Interaction — the page is static markup, so lift and colour live here
   -------------------------------------------------------------------------- */

.wrap a[href] {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
}

/* Cards and link rows lift; small inline links and social dots do not. */
.wrap section a[href][style*='border-radius: 18px'],
.wrap section a[href][style*='border-radius: 20px'] {
  will-change: transform;
}

.wrap section a[href][style*='border-radius: 18px']:hover,
.wrap section a[href][style*='border-radius: 20px']:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(29, 25, 21, 0.1), 0 20px 46px rgba(29, 25, 21, 0.18);
}

nav[aria-label='Social profiles'] a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

button {
  font-family: inherit;
}

/* Keyboard focus is always visible, and never shown for mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  background: #fffdf9 !important;
}

/* --------------------------------------------------------------------------
   Portfolio filter
   -------------------------------------------------------------------------- */

.tabs button[aria-pressed='true'] {
  background: #1d1915;
  border-color: #1d1915;
  color: #f5efe6;
}

.tabs button[aria-pressed='false'] {
  background: #ffffff;
  border-color: #dcd3c4;
  color: #3e3831;
}

.tabs button[aria-pressed='false']:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   FAQ accordion — the open/closed state is pure CSS off aria-expanded
   -------------------------------------------------------------------------- */

.faq button[aria-expanded='false'] + .faq-a {
  display: none;
}

.faq button svg {
  transition: transform 0.25s ease;
}

.faq button[aria-expanded='true'] svg {
  transform: rotate(180deg);
  stroke: var(--accent);
}

/* --------------------------------------------------------------------------
   Auto-scrolling strip
   -------------------------------------------------------------------------- */

@keyframes seal-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

[data-marquee] {
  /* Paused while a visitor is reading a frame. */
  animation-play-state: running;
}

[data-marquee]:hover {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Form status message
   -------------------------------------------------------------------------- */

.form-status {
  margin: 11px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.form-status[data-kind='ok'] {
  background: #e2f0e6;
  border: 1px solid rgba(46, 125, 79, 0.3);
  color: #1f5c39;
}

.form-status[data-kind='err'] {
  background: #f6e7e2;
  border: 1px solid rgba(150, 70, 45, 0.3);
  color: #8a3f26;
}

.field-error {
  border-color: #96462d !important;
}

/* --------------------------------------------------------------------------
   Motion opt-out
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-marquee] {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }

  .wrap section a[href]:hover,
  nav[aria-label='Social profiles'] a:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print — the link hub as a contact card
   -------------------------------------------------------------------------- */

@media print {
  .page {
    background: #ffffff;
  }

  [data-marquee] {
    animation: none !important;
  }
}
