/* Reloupes site styles */

:root {
  --teal: #0E7C7B;
  --navy: #12303A;
  --mint: #7FD6C2;
  --mist: #F5F7F6;
  --deep: #0E2A2F;
  --mint-bright: #5ED3C0;

  --muted: #3F6A66;        /* secondary text on mist, 5.9:1 */
  --line: #D5DEDB;         /* hairlines on mist */
  --on-deep-muted: #C9DAD6; /* secondary text on deep */

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
}

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

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

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

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Placeholder marker: remove the class once real content is in */
.ph {
  background: #DDF1EA;
  color: var(--navy);
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--navy);
  color: var(--mist);
  padding: 10px 14px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; color: var(--mist); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 14px;
}

/* The SVG carries its own clear space, so it sits a little proud of the edge */
.site-header__logo { display: block; margin-left: -10px; }
.site-header__logo img { width: auto; height: 56px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  display: inline-block;
  padding-block: 12px;           /* 44px+ touch target */
  color: var(--navy);
  text-decoration: none;
}
.nav a:hover { color: var(--teal); text-decoration: underline; }

/* Main */
main { flex: 1; }
main:focus { outline: none; }

/* Footer */
.site-footer {
  background: var(--deep);
  color: var(--mist);
  font-size: 0.9375rem;
}

.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--mint-bright); }
.site-footer :focus-visible { outline-color: var(--mint-bright); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
  padding-block: 56px 40px;
}

.site-footer__brand { flex: 1 1 320px; max-width: 30em; }
.site-footer__brand img { width: auto; height: 52px; margin-left: -9px; }
.site-footer__brand p { margin: 12px 0 0; color: var(--on-deep-muted); }

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.site-footer__label {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-deep-muted);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(245, 247, 246, 0.14);
  font-size: 0.8125rem;
  color: var(--on-deep-muted);
}
.site-footer__base p { margin: 0; }

@media (max-width: 520px) {
  .site-header__logo img { height: 48px; }
  .nav { gap: 0 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s; }
}
