/* Ondrej Cerny — Webdesign
   Hand-written, no framework, no build step, no external requests.
   The site sells web design, so it has to be the best argument in the pitch. */

:root {
  --ink: #14171a;
  --muted: #5b6570;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --accent: #b4472e;      /* warm terracotta — Swiss-sober, not tech-startup */
  --accent-soft: #fbf1ee;
  --radius: 10px;
  --measure: 68ch;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, 0.97rem + 0.2vw, 1.09rem)/1.65 ui-sans-serif, system-ui,
        -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 620;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { padding-block: clamp(3rem, 8vw, 6rem); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ── header ─────────────────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  z-index: 20;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  font-weight: 640;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.site-head nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-size: 0.94rem;
}
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 7vw, 5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
  color: var(--muted);
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9c3c26; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* portrait — the one image that is genuinely you.
   Square frame because the source is square: a 4/5 box would crop 20% off the
   sides and cut the shoulders. Background matches the studio backdrop
   (#d2d2d4) and there is no border, so the photo has no mismatched outline
   against the page — the rounded corner is the only edge. */
.portrait {
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;            /* no padding: any padding shows as a band around the photo */
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Padding and backdrop only exist for the "no photo yet" fallback, which the
   inline onerror switches on. They must never apply when an image is present. */
.portrait.is-empty {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ── demo cards ─────────────────────────────────────────────────────── */

.soft { background: var(--bg-soft); }

.cards {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  margin-top: 2.4rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -14px rgba(20, 23, 26, 0.35);
}
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body h3 { margin-bottom: 0.3rem; }
.card-body p { font-size: 0.93rem; color: var(--muted); margin: 0; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 0.24rem 0.62rem;
  margin-bottom: 0.7rem;
}

/* ── steps / price ──────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.2rem;
  counter-reset: step;
}
.step { border-top: 2px solid var(--accent); padding-top: 1rem; }
.step h3 { margin-bottom: 0.35rem; }
.step p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.price-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--bg);
  max-width: 640px;
}
.price {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  margin: 0;
}
.price small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
.price-box ul { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.price-box li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.price-box li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.02rem;
  width: 0.42rem;
  height: 0.72rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── contact + footer ───────────────────────────────────────────────── */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem 3.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-foot h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink); }
.site-foot p { max-width: 60ch; }
.site-foot a { color: var(--muted); }

/* ── demo-page banner ───────────────────────────────────────────────── */

.demo-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.7rem 0;
  text-align: center;
}
.demo-banner a { color: #fff; font-weight: 560; }
.demo-banner strong { color: #ffd9cf; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
