/* =============================================================================
   FREELANCE — freelance.maxdittmar.dev

   A standalone stylesheet. It borrows the colour and type tokens from the
   games site so the two feel related, but none of its layout: there is no
   sidebar, no tab dock and no save file framing here, so the page is a
   normal centred document that uses the full width it is given.
   ========================================================================== */

/* ----------------------------- 1. TOKENS --------------------------------- */
:root {
  --bg:           #0b0806;
  --bg-2:         #14100c;

  --panel:        #171210;
  --panel-2:      #1e1815;
  --panel-3:      #262019;
  --line:         #33291f;
  --line-hi:      #4a3b2a;

  --amber:        #f2b03c;
  --amber-lo:     #b07f22;
  --amber-hi:     #ffcd69;

  --ink:          #f4e7d2;
  --ink-2:        #cdbb9b;
  --ink-3:        #8a7a62;

  --wa:           #25d366;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --r:            0.5rem;
  --r-lg:         0.875rem;

  /* One measure for the whole page, so every section lines up. */
  --wrap:         72rem;
  --gutter:       clamp(1rem, 4vw, 2.5rem);

  --sa-top:       env(safe-area-inset-top, 0px);
  --sa-bot:       env(safe-area-inset-bottom, 0px);
  --sa-left:      env(safe-area-inset-left, 0px);
  --sa-right:     env(safe-area-inset-right, 0px);

  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.3);
  --sh-2: 0 4px 12px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.4);
}

/* ------------------------------ 2. FONTS --------------------------------- */
@font-face {
  font-family: 'Cinzel';
  src: url('/assets/fonts/Cinzel-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/Cinzel-Variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------ 3. RESET --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
  color-scheme: dark;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(242,176,60,.07), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: var(--amber); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: var(--amber); color: #1a1209;
  font-weight: 600; font-size: .8125rem; border-radius: var(--r);
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* --------------------------- 4. PAGE SKELETON ----------------------------- */

/* One shared measure. Everything inside the page uses it, so the header,
   the content and the footer align on the same two edges at every width. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--sa-left)) calc(var(--gutter) + var(--sa-right));
}

.site-head {
  border-bottom: 1px solid var(--line);
  padding-block: .875rem;
  padding-top: calc(.875rem + var(--sa-top));
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15,11,9,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* min-height keeps the logo a proper touch target on a phone, where it is
   the only way back to the start page. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: inherit;
}

.brand__img {
  width: 2.25rem; height: 2.25rem;
  flex: 0 0 auto;
  border-radius: .5rem;
  border: 1px solid var(--amber-lo);
  background: var(--panel-3);
  padding: .125rem;
  object-fit: cover;
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: .9375rem;
  line-height: 1.2;
  color: var(--ink);
}

.brand__role {
  display: block;
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* A compact call in the header, so contact is never more than one tap away. */
.headcta {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  flex: 0 0 auto;
  padding: .5rem .875rem;
  min-height: 2.5rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: #12240f;
  background: var(--wa);
  border: 1px solid rgba(0,0,0,.2);
  transition: filter .18s ease, transform .18s ease;
}

.headcta:hover, .headcta:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.headcta svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.headcta__label { display: none; }

.main { flex: 1 1 auto; width: 100%; }

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  padding-bottom: calc(1.75rem + var(--sa-bot));
  margin-top: 3rem;
}

.site-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin-bottom: .875rem;
}

.site-foot__nav a,
.site-foot__nav .cookiebtn {
  font-size: .8125rem;
  color: var(--ink-3);
  text-decoration: none;
  padding: .375rem 0;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-foot__nav a:hover, .site-foot__nav a:focus-visible,
.site-foot__nav .cookiebtn:hover, .site-foot__nav .cookiebtn:focus-visible { color: var(--amber); }

.cookiebtn[hidden] { display: none; }

.site-foot__copy {
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--ink-3);
}

/* ------------------------------- 5. HERO ---------------------------------- */

.hero { padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem); }

.hero__inner { max-width: 46rem; }

.hero__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 6vw, 3.25rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 44ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ------------------------------ 6. BUTTONS -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .75rem 1.25rem;
  border-radius: 99px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease,
              color .18s ease, border-color .18s ease, background .18s ease;
}

/* WhatsApp is the primary action everywhere, so it wears WhatsApp's colour
   rather than the site's amber. It reads as the thing to press. */
.btn--primary {
  color: #12240f;
  background: var(--wa);
  border-color: rgba(0,0,0,.25);
  box-shadow: var(--sh-1);
  font-weight: 700;
}

.btn--primary:hover, .btn--primary:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.btn--ghost {
  color: var(--ink-2);
  background: rgba(255,255,255,.03);
  border-color: var(--line);
}

.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--line-hi); }

.btn__wa { display: block; width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }
.btn__wa svg { width: 100%; height: 100%; display: block; }
.btn__arrow { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* ----------------------------- 7. SECTIONS -------------------------------- */

.section { padding-block: clamp(2rem, 5vw, 3rem); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  color: var(--ink);
  margin-bottom: .75rem;
  text-wrap: balance;
}

.section__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.section__note {
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 60ch;
  margin-top: 1.25rem;
}

/* Three short selling points under the hero. */
.points {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  padding-block: clamp(1rem, 3vw, 1.5rem);
}

.point {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
}

.point__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--amber);
  margin-bottom: .4375rem;
}

.point__text { font-size: .9375rem; line-height: 1.65; color: var(--ink-2); }

/* ------------------------------ 8. PRICES --------------------------------- */

.pkgs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr));
}

.pkg {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  transition: border-color .18s ease, transform .18s ease;
}

.pkg:hover { border-color: var(--line-hi); transform: translateY(-2px); }

/* The middle tier is the one most people want, so it is marked. */
.pkg--featured { border-color: var(--amber-lo); box-shadow: 0 0 0 1px rgba(242,176,60,.15); }

.pkg__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: .625rem;
}

.pkg__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .375rem; margin-bottom: .875rem; }

.pkg__from {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
}

.pkg__amount {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--amber);
}

.pkg__unit { font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-3); width: 100%; }

.pkg__text { font-size: .875rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 1rem; }

.pkg__points { display: grid; gap: .5rem; margin-top: auto; }

.pkg__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ink-3);
}

/* A drawn tick rather than a character, so no glyph or emoji dependency. */
.pkg__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .4375rem;
  height: .25rem;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* ------------------------------- 9. STEPS --------------------------------- */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.125rem 1.125rem 1.125rem 3.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.02);
}

.step__num {
  position: absolute;
  left: 1.125rem;
  top: 1.125rem;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--amber);
  background: rgba(242,176,60,.12);
  border: 1px solid var(--amber-lo);
}

.step__title { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: .3125rem; }
.step__text { font-size: .875rem; line-height: 1.6; color: var(--ink-2); }

/* ------------------------------ 10. CONTACT ------------------------------- */

.contact {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-block: clamp(1rem, 3vw, 2rem);
}

.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
}

.contact__meta a { color: var(--ink-3); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.contact__meta a:hover, .contact__meta a:focus-visible { color: var(--amber); }

/* -------------------------------- 11. FAQ --------------------------------- */

/* One column, so an opening answer never reflows a neighbouring column. */
.faq { display: grid; gap: .625rem; max-width: 52rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.02);
  transition: border-color .18s ease;
}

.faq__item[open] { border-color: var(--line-hi); }
.faq__item:hover { border-color: var(--line-hi); }

/* The whole row is the control, so it is a large target on a phone. */
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .875rem 1.125rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Safari draws its own triangle unless this is cleared. */
.faq__q::-webkit-details-marker { display: none; }

.faq__item[open] .faq__q { color: var(--amber); }
.faq__qtext { flex: 1 1 auto; }

/* A plus that becomes a minus, drawn rather than typed so there is no glyph
   or emoji dependency. */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

.faq__icon::before {
  width: 1rem; height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px; height: 1rem;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__a {
  padding: 0 1.125rem 1.125rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 62ch;
}

/* --------------------------- 11b. WORK SAMPLE ----------------------------- */

.showcase {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.showcase__points { display: grid; gap: .5rem; margin: 0 0 1.5rem; }

.showcase__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.showcase__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .4375rem;
  height: .25rem;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* Amber here rather than WhatsApp green: this is a secondary action, and the
   green is reserved for the one thing that starts a conversation. */
.btn--amber {
  color: #241703;
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 100%);
  border-color: var(--amber-lo);
  box-shadow: var(--sh-1);
  font-weight: 700;
}

.btn--amber:hover, .btn--amber:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.btn--amber:hover .btn__arrow,
.btn--amber:focus-visible .btn__arrow { transform: translateX(3px); }
.btn__arrow { transition: transform .18s ease; }

.showcase__note {
  margin-top: .875rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--ink-3);
}

/* A small browser frame standing in for a screenshot. It is drawn rather
   than captured, so it can never go stale against the real site and needs no
   regenerating by hand. Decorative, so it is hidden from assistive tech. */
.showcase__shot {
  display: block;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--sh-2);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease;
}

.showcase__shot:hover { transform: translateY(-3px); border-color: var(--amber-lo); }

.showcase__chrome {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .75rem;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
}

.showcase__dot {
  width: .4375rem; height: .4375rem;
  border-radius: 50%;
  background: var(--line-hi);
  flex: 0 0 auto;
}

.showcase__url {
  margin-left: .5rem;
  font-family: var(--font-mono);
  font-size: .625rem;
  color: var(--ink-3);
}

.showcase__screen {
  display: grid;
  justify-items: center;
  gap: .375rem;
  padding: 1.75rem 1.25rem 2rem;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(242,176,60,.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 70%);
}

.showcase__avatar {
  display: block;
  width: 4rem; height: 4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--amber-lo);
  background: var(--panel-3);
  padding: .1875rem;
  margin-bottom: .375rem;
}

.showcase__avatar img { width: 100%; height: 100%; border-radius: calc(var(--r-lg) - .25rem); object-fit: cover; }

.showcase__name { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }

.showcase__role {
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.showcase__bars { display: grid; gap: .3125rem; width: min(11rem, 70%); margin-top: .625rem; }

.showcase__bar {
  display: block;
  height: .3125rem;
  border-radius: 99px;
  background: #0a0705;
  border: 1px solid var(--line);
  overflow: hidden;
}

.showcase__bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 100%);
}

/* ---------------------------- 12. LEGAL PAGES ----------------------------- */

.doc { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

.backbtn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-2);
  text-decoration: none;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.backbtn:hover, .backbtn:focus-visible {
  background: rgba(255,255,255,.07);
  color: var(--ink);
  transform: translateX(-2px);
}

.backbtn__arrow { width: .875rem; height: .875rem; flex: 0 0 auto; }

.legaldoc { display: grid; gap: 1.5rem; margin-top: 1.5rem; max-width: 60rem; }

.legal__sec h2 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--amber);
  margin-bottom: .5rem;
}

.legal__sec p { font-size: .9375rem; color: var(--ink-2); line-height: 1.75; margin-bottom: .75rem; }
.legal__sec p:last-child { margin-bottom: 0; }
.legal__sec ul { display: grid; gap: .375rem; margin: .5rem 0 .75rem; }

.legal__sec li {
  position: relative;
  padding-left: 1rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal__sec li::before {
  content: "";
  position: absolute;
  left: 0; top: .7em;
  width: .3125rem; height: .3125rem;
  border-radius: 50%;
  background: var(--amber-lo);
}

/* --------------------------- 13. WIDER SCREENS ---------------------------- */

@media (min-width: 30em) {
  .headcta__label { display: inline; }
}

@media (min-width: 48em) {
  .brand__img { width: 2.5rem; height: 2.5rem; }
  .brand__name { font-size: 1rem; }
  .site-foot__nav { gap: .25rem 1.75rem; }
}

@media (min-width: 64em) {
  /* The hero and the points share a row on a wide screen, so the fold shows
     the offer and the reasons to trust it at once. */
  .hero { padding-bottom: clamp(1.5rem, 3vw, 2rem); }
  .points { padding-block: 0 clamp(1.5rem, 3vw, 2rem); }

  /* Copy beside the sample, rather than stacked. */
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
}
