/*
  Base styles shared by the portfolio and the booking pages.
  Only uses the variables from design-tokens.css.
*/

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 {
  font-size: var(--display-size);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 var(--space-3);
  max-width: var(--maxw-text);
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

/* Clearly visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.muted {
  color: var(--muted);
}

/* Small uppercase label above headings */
.label {
  display: block;
  font-family: var(--label-font);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn:hover {
  color: var(--accent-ink);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  box-shadow: none;
}

.btn--danger:hover {
  background: #8f1a37;
  border-color: #8f1a37;
  color: #ffffff;
}

/* --- Header / footer ------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.15rem;
  letter-spacing: var(--display-tracking);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
}

.nav [aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.7;
  cursor: default;
}

.lang-switch {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
}

.lang-switch:hover {
  border-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-7);
  padding-block: var(--space-5);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

/* --- Cards ---------------------------------------------------------------------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

a.card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* --- Motion: respect the user's system setting ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
