/* ============================================================
   christried.me — custom layer on top of Bootstrap 5
   Loaded AFTER assets/bootstrap/css/bootstrap.min.css
   ============================================================ */

/* ---------- fonts (self-hosted, no CDN) ---------- */
@font-face {
  font-family: 'Patua One';
  src: url(../fonts/Patua%20One-5d11a5ddd637339fb93370738ef436af.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Raleway;
  src: url(../fonts/Raleway-87d311c5b4703c90fe973b395c7a6d25.woff2) format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Raleway;
  src: url(../fonts/Raleway-87d311c5b4703c90fe973b395c7a6d25.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Raleway;
  src: url(../fonts/Raleway-87d311c5b4703c90fe973b395c7a6d25.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (kept identical to the old portfolio) ---------- */
:root {
  --navy: #0f1b26;
  --cream: #f2e3d5;
  --rose: #d9ac9c;
  --terracotta: #a6756a;
  --black: #0d0d0d;
  --standard-radius: 16px;
}

/* map the palette onto Bootstrap's own variables so BS components inherit it */
:root,
[data-bs-theme=light] {
  --bs-primary: #0f1b26;
  --bs-primary-rgb: 15, 27, 38;
  --bs-secondary: #f2e3d5;
  --bs-secondary-rgb: 242, 227, 213;
  --bs-body-bg: #0f1b26;
  --bs-body-color: #f2e3d5;
  --bs-body-font-family: Raleway, sans-serif;
  --bs-border-color: #0d0d0d;
  --bs-border-radius: var(--standard-radius);
  --bs-link-color: #d9ac9c;
  --bs-link-hover-color: #a6756a;
}

body {
  min-height: 100svh;
  /* soft terracotta glow + faint grid, both very restrained */
  background-image:
    radial-gradient(80rem 40rem at 50% -10%, rgba(166, 117, 106, .35), transparent 60%),
    linear-gradient(rgba(242, 227, 213, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 227, 213, .04) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-position: center top, center, center;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: 'Patua One', serif;
  font-weight: 400;
}

/* ---------- header ---------- */
.brand {
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--rose);
}

/* ---------- under-construction card (.uc-card, not Bootstrap's .card) ---------- */
.uc-card {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(135deg, var(--rose) 0, var(--terracotta) 100%);
  color: var(--navy);
  border: 3px solid var(--black);
  border-radius: var(--standard-radius);
  box-shadow: 10px 10px 0 var(--black);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  color: var(--cream);
  background-color: var(--navy);
  border: 2px solid var(--black);
  border-radius: 999px;
}

.status .pulse {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background-color: var(--rose);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .35;
    transform: scale(.75);
  }
}

.uc-card h1 {
  font-size: clamp(2rem, 8vw, 3.75rem);
  line-height: 1.05;
  color: var(--navy);
}

.uc-card h1 .line {
  display: block;
}

.uc-card p {
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy);
}

.uc-card p.lead {
  font-size: 1.15rem;
}

/* indeterminate progress bar — "work in progress", no fake percentage */
.bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  background-color: rgba(15, 27, 38, .18);
  border: 2px solid var(--black);
  border-radius: 999px;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background-color: var(--navy);
  animation: slide 2.6s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-105%);
  }

  100% {
    transform: translateX(300%);
  }
}

/* ---------- link buttons ---------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.15rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--navy);
  background-color: var(--cream);
  border: 2px solid var(--black);
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}

.link:hover,
.link:focus-visible {
  background-color: var(--rose);
  color: var(--navy);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}

.link svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* ---------- legal pages (imprint / privacy) ---------- */
.sheet {
  width: 100%;
  max-width: 820px;
  background-color: var(--cream);
  color: var(--navy);
  border: 3px solid var(--black);
  border-radius: var(--standard-radius);
  box-shadow: 10px 10px 0 var(--black);
}

.sheet h1 {
  margin-bottom: 2rem;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
}

.sheet h2 {
  margin: 2.5rem 0 .75rem;
  padding-bottom: .4rem;
  font-size: 1.4rem;
  line-height: 1.3;
  border-bottom: 2px solid var(--terracotta);
}

.sheet h3 {
  margin: 2rem 0 .5rem;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--terracotta);
}

.sheet h4 {
  margin: 1.5rem 0 .5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.sheet p,
.sheet li {
  font-size: .98rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.sheet ul {
  padding-left: 1.25rem;
}

.sheet li {
  margin-bottom: .35rem;
}

.sheet a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sheet a:hover {
  color: var(--navy);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--cream);
  background-color: var(--navy);
  border: 2px solid var(--black);
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}

.back:hover,
.back:focus-visible {
  background-color: var(--terracotta);
  color: var(--cream);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(242, 227, 213, .15);
  font-size: .9rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rose);
}

.site-footer .note {
  color: var(--rose);
}

/* ---------- misc ---------- */
:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.sheet :focus-visible {
  outline-color: var(--navy);
}

::selection {
  background: var(--terracotta);
  color: var(--cream);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background-color: var(--cream);
  border: 3px solid var(--navy);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .bar::after {
    transform: none;
    width: 45%;
  }
}
