/* beautynerds.ch – colours from the xpures web CI (dark #341c1f, red-to-magenta gradient).
   Button red #e0251e with white text: contrast 4.72 (WCAG AA). No web fonts, no third-party assets. */
:root {
  --bg: #341c1f;
  --bg-raised: #42262a;
  --text: #fbf3ee;
  --muted: #d9c4bc;
  --red: #e0251e;
  --red-hover: #c8102e;
  --link: #ff6a52;
  --gradient: linear-gradient(90deg, #ff4227 0%, #fc2337 50%, #f80247 100%);
  --radius: 14px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

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

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

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

main { flex: 1; }

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--text); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { padding-block: 1.25rem; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.35rem;
  letter-spacing: -.02em; text-transform: lowercase;
}
.wordmark:hover { color: var(--text); }
.header-link { font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; }
.header-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
h1 {
  margin: 0; font-size: clamp(2.6rem, 6.5vw, 4.75rem); line-height: 1.02;
  font-weight: 800; letter-spacing: -.035em;
}
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 1.5rem 0 0; font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700;
  background: var(--red); color: #fff; text-decoration: none; border: 2px solid var(--red);
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.button-ghost { background: transparent; color: var(--text); border-color: rgba(251, 243, 238, .45); }
.button-ghost:hover { background: rgba(251, 243, 238, .08); border-color: var(--text); color: var(--text); }

/* Mosaic: the six tiles of the former beautynerds page. The photo tiles together show one picture
   of the woman; the two flip tiles turn to a claim now and then and return to the photo, so most of
   the time the whole picture is visible. The old page flipped only on mouse hover; here the motion
   runs automatically so it also works on phones. */
.mosaic {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border-radius: var(--radius); overflow: hidden; max-width: 540px; justify-self: end; width: 100%;
}
.mosaic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.flip { aspect-ratio: 1; perspective: 1000px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.flip-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
.flip-a .flip-inner { animation: tile-flip 14s ease-in-out infinite 3s; }
.flip-b .flip-inner { animation: tile-flip 14s ease-in-out infinite 10s; }
@keyframes tile-flip {
  0%, 55% { transform: rotateY(0deg); }
  63%, 85% { transform: rotateY(180deg); }
  93%, 100% { transform: rotateY(360deg); }
}

.zoom { aspect-ratio: 1; overflow: hidden; }
.zoom img { animation: tile-zoom 10s ease-in-out infinite 3s; }
@keyframes tile-zoom {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50%, 100% { transform: scale(1); }
}

/* Cards */
.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--bg-raised); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 1.75rem;
  border-top: 4px solid transparent; border-image: var(--gradient) 1 0 0 0;
}
.card h2 { margin: 0 0 .5rem; font-size: 1.3rem; letter-spacing: -.01em; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card a { font-weight: 600; overflow-wrap: anywhere; }

/* Content pages */
.page { padding-block: clamp(2rem, 6vw, 4rem); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.15rem; margin: 2rem 0 .4rem; }
.page p { margin: 0 0 1rem; color: var(--muted); }

/* Footer */
.site-footer { padding-block: 2rem; border-top: 1px solid rgba(251, 243, 238, .12); color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-row p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mosaic { max-width: 520px; justify-self: start; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .header-link { font-size: .95rem; }
  .button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .flip-inner, .zoom img { animation: none; }
}

/* "get in touch" dialog, rebuilt from the xpures homepage (GetInTouchDialog, ContactForm).
   Values from Homepage/src/styles/tokens.css: ink #341c1f, grey #707070, pink #f80247,
   red #ff4227, red text #c93018, danger #a61b1b, radius 0.8vw, breakpoint 56.25rem.
   Font: the homepage uses the licensed Graphit; here the system stack until the licence
   covers beautynerds.ch (see README). */
html.git-open { overflow: hidden; }
/* Keep the 3D tiles in their own stacking layer below the dialog, and pause them while it is open. */
.hero { position: relative; z-index: 0; isolation: isolate; }
html.git-open .flip-inner, html.git-open .zoom img { animation-play-state: paused; }
.git-backdrop {
  --git-ink: #341c1f; --git-grey: #707070; --git-pink: #f80247; --git-red: #ff4227;
  --git-red-text: #c93018; --git-danger: #a61b1b;
  position: fixed; inset: 0; z-index: 100; background: rgb(52 28 31 / .62);
  animation: git-fade .2s ease-out;
}
.git-backdrop[hidden] { display: none; }
@keyframes git-fade { from { opacity: 0; } to { opacity: 1; } }
.git-panel {
  position: absolute; inset: 0; box-sizing: border-box; overflow: auto;
  display: grid; align-content: start; gap: 1.5rem;
  padding: 20px 20px 32px; background: #fff; color: var(--git-ink);
  box-shadow: 0 24px 70px rgb(0 0 0 / .22); line-height: 1.4;
}
.git-panel:focus { outline: none; }
.git-panel.git-done { background: linear-gradient(90deg, #ff4227 0%, #fc2337 81%, #f80247 100%); color: #fff; }
@media (min-width: 56.25rem) {
  .git-backdrop { display: grid; place-items: center; padding: 4vw; }
  .git-panel { position: static; width: min(600px, 100%); max-height: 100%; border-radius: max(0.8vw, 12px); padding: 36px 44px 40px; }
}
.git-head { display: flex; align-items: center; justify-content: space-between; }
.git-logo { height: 18px; width: auto; }
@media (min-width: 56.25rem) { .git-logo { height: 22px; } }
.git-logo-white, .git-done .git-logo-gradient { display: none; }
.git-done .git-logo-white { display: block; }
.git-close {
  margin-right: -.5rem; display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: currentColor; cursor: pointer;
}
.git-close:focus-visible, .git-submit:focus-visible, .git-back:focus-visible { outline: 2px solid var(--git-pink); outline-offset: 2px; }
.git-intro { display: grid; gap: .75rem; }
.git-intro[hidden], .git-form[hidden] { display: none; }
.git-title { margin: 0; font-size: clamp(2.75rem, 4vw, 3rem); line-height: .95; font-weight: 900; letter-spacing: -.025em; }
.git-lead { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 300; }

.git-form { display: grid; gap: 1.25rem; }
.git-field { display: grid; gap: .375rem; }
.git-field label { font-size: 13px; font-weight: 900; letter-spacing: -.01em; }
.git-optional { font-weight: 300; color: var(--git-grey); }
.git-field input, .git-prefixed {
  box-sizing: border-box; width: 100%; border: 0; border-bottom: 1px solid var(--git-ink);
  background: transparent; transition: border-color .15s;
}
.git-field input {
  border-radius: 0; padding: .5rem 0; font: inherit; font-size: 18px; font-weight: 300; color: var(--git-ink); outline: none;
}
.git-field input::placeholder { color: var(--git-grey); opacity: 1; }
.git-field input:focus-visible { border-bottom: 2px solid var(--git-pink); }
.git-field input.is-invalid, .git-prefixed.is-invalid { border-bottom: 2px solid var(--git-danger); }
.git-prefixed { display: flex; align-items: center; gap: .5rem; }
.git-prefixed:focus-within { border-bottom: 2px solid var(--git-pink); }
.git-prefixed > span { font-size: 18px; font-weight: 900; color: var(--git-red-text); }
.git-prefixed input { border: 0; min-width: 0; flex: 1; }
.git-prefixed input:focus-visible { border: 0; }
.git-error { margin: 0; font-size: 13px; color: var(--git-danger); }
.git-error[hidden] { display: none; }

.git-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.git-check { display: grid; gap: .5rem; }
.git-check-row { display: flex; align-items: flex-start; gap: .75rem; }
.git-check-row input { margin-top: .25rem; width: 20px; height: 20px; flex: none; cursor: pointer; accent-color: var(--git-pink); }
.git-check-row label { font-size: 15px; }
.git-check a, .git-direct a, .git-alert a { color: var(--git-red-text); }

.git-alert {
  box-sizing: border-box; border-left: 3px solid var(--git-pink); background: #f3f2f2;
  padding: .625rem .875rem; font-size: 14px; line-height: 1.4; color: var(--git-ink); outline: none;
}
.git-alert[hidden] { display: none; }
.git-alert strong { display: block; font-weight: 900; }
.git-alert a { display: block; }
.git-alert p { margin: 0; }
.git-alert p a { display: inline; }

.git-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .25rem; }
.git-direct { order: 2; margin: 0; font-size: 13px; font-weight: 300; color: var(--git-grey); }
.git-submit {
  order: 1; width: 100%; height: 56px; padding: 0 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--git-red); color: #fff; font: inherit; font-size: 18px; font-weight: 900;
  box-shadow: 0 8px 24px rgb(0 0 0 / .18); transition: background-color .15s;
}
.git-submit:hover { background: #e63a22; }
.git-submit:disabled { cursor: not-allowed; opacity: .45; }
@media (min-width: 56.25rem) {
  .git-direct { order: 1; }
  .git-submit { order: 2; width: auto; }
}

.git-success:empty { display: none; }
.git-success { display: grid; gap: 1.25rem; min-height: 50vh; align-content: center; }
@media (min-width: 56.25rem) { .git-success { min-height: 0; } }
.git-thanks { margin: 0; font-size: clamp(3.5rem, 8vw, 5.25rem); line-height: .9; font-weight: 900; letter-spacing: -.03em; outline: none; }
.git-thanks-text { margin: 0; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.3; font-weight: 300; }
.git-thanks-hint { margin: 0; font-size: 16px; font-weight: 300; }
.git-thanks-link { width: fit-content; padding-bottom: .25rem; border-bottom: 1px solid currentColor; color: currentColor; font-size: 18px; font-weight: 900; text-decoration: none; }
.git-back {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: 999px;
  background: #fff; color: var(--git-red-text); font: inherit; font-size: 18px; font-weight: 900; cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / .18);
}
.git-back[hidden] { display: none; }
@media (min-width: 56.25rem) { .git-back { width: auto; justify-self: start; padding: 0 44px; } }
@media (prefers-reduced-motion: reduce) { .git-backdrop { animation: none; } }
