:root {
  --black: #0B0B0B;
  --accent: #680f14;
  /* The burgundy is too dark to see on black, so lines and marks on dark backgrounds use a
     brighter wine red. Light sections switch this back to the burgundy. */
  --accent-line: #a8242c;
  --light: #E8E1DB;
  --gray: #4D4D4D;
  --panel: #111111;
  --muted: #b9b2ac;
  --pad: clamp(20px, 5vw, 72px);
  --font-head: 'Playfair Display Variable', Georgia, serif;
  --font-body: 'Montserrat Variable', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--black); color: var(--light); font-family: var(--font-body); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1; margin: 0; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }

/* Sections are full-bleed bands; the padding keeps their content within 1400px. */
.section { padding: clamp(64px, 10vw, 128px) max(var(--pad), calc((100% - 1400px) / 2 + var(--pad))); }
.section--light { background: var(--light); color: var(--black); --muted: #4D4D4D; --accent-line: var(--accent); }
.section--light :focus-visible { outline-color: var(--black); }
.section__title { font-size: clamp(40px, 6vw, 72px); margin-bottom: clamp(28px, 4vw, 56px); }
.bar { border-left: 2px solid var(--accent-line); padding-left: 18px; }
.label { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--pad); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; transition: background-color .3s; }
.nav.is-solid { background: var(--black); }
.nav a { text-decoration: none; }
.nav__brand { display: block; line-height: 0; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; line-height: 0; }
.nav__links .social + .social { margin-left: -10px; }
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; letter-spacing: inherit; text-transform: inherit; }

@media (max-width: 639px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; inset: 100% 0 auto 0; gap: 0; background: var(--black); padding: 8px var(--pad) 20px; }
  .nav.is-open { background: var(--black); }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__links { flex-flow: row wrap; align-items: center; column-gap: 24px; }
  .nav__links li { flex: 0 0 100%; }
  .nav__links li.social { flex: 0 0 auto; }
  .nav__links a { display: block; padding: 12px 0; }
  .nav__links .social + .social { margin-left: 0; }
}

/* Footer and error page */
.footer { padding: 36px var(--pad) 44px; border-top: 1px solid #1c1c1c; font-size: 12px; text-align: center; }
.footer__copy { margin: 0 0 24px; }
.footer__logo { width: 200px; height: auto; margin: 0 auto; }
.error-page { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--black) 4%, rgba(11, 11, 11, .15) 60%, rgba(11, 11, 11, .5)); }
.hero__inner { position: absolute; inset: auto var(--pad) clamp(28px, 5vw, 64px) var(--pad); z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__title { font-size: clamp(52px, 10vw, 150px); line-height: .95; letter-spacing: -.01em; }
.hero__title em { font-weight: 400; font-style: normal; }
.hero__side { max-width: 300px; }
.hero__side p { color: var(--light); font-size: 15px; line-height: 1.7; }
.hero__link { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; }
.hero__link::after { content: ' \2192'; color: var(--accent-line); }

/* O mně */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.about__portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about--no-portrait { grid-template-columns: 1fr; }
.about--no-portrait .about__text { max-width: 820px; }
.about__signature { font-family: var(--font-head); font-size: 28px; color: inherit; margin-top: 24px; }

/* Nabídka */
.prices { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.price-group + .price-group { margin-top: clamp(28px, 4vw, 44px); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; padding: 14px 0; }
.price__name { font-weight: 600; text-wrap: balance; }
.price__name small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.price__detail { color: var(--muted); font-weight: 400; }
/* When name and price do not fit on one line, the leader line and price wrap together to a line of their own. */
.price__end { flex: 1 0 auto; display: flex; align-items: baseline; }
.price__line { flex: 1; min-width: 24px; border-bottom: 1px solid var(--gray); margin: 0 14px; }
.price__value { font-family: var(--font-head); font-size: 20px; white-space: nowrap; }
.price-group__text { font-size: 14px; line-height: 1.7; max-width: 640px; text-wrap: pretty; }
.price-group__bullets { text-wrap: pretty; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.price-group__bullets li { position: relative; padding-left: 22px; }
.price-group__bullets li::before { content: ''; position: absolute; left: 0; top: .85em; width: 10px; border-top: 1px solid var(--accent-line); }
.price-group__packages { list-style: none; margin: 0; padding: 0 0 0 22px; }
.price--package { padding: 8px 0; }
.price--package .price__name { font-weight: 500; }
.prices__note { margin-top: 24px; font-size: 13px; text-wrap: pretty; }
/* Balanced lines read well when the text has room; on a phone they leave ragged short lines. */
@media (min-width: 640px) { .price-group__text { text-wrap: balance; } }

@media (max-width: 639px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .about { grid-template-columns: 1fr; }
}

/* Portfolio grid. Without JS it is a CSS multi-column layout; portfolio.js adds .is-enhanced. */
.grid { position: relative; columns: 3; column-gap: 12px; }
.cover { position: relative; display: block; width: 100%; margin: 0 0 12px; overflow: hidden; break-inside: avoid; text-align: left; }
.cover img { width: 100%; height: 100%; object-fit: cover; background: #1a1a1a; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 11, .85), transparent 45%); }
.cover__title { position: absolute; inset: auto 16px 14px 16px; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.1; overflow-wrap: anywhere; }
.cover[aria-expanded="true"] .cover__title { border-left: 2px solid var(--accent-line); padding-left: 10px; }
.cover[aria-expanded="true"] { outline: 1px solid var(--light); outline-offset: -1px; }
.grid.is-enhanced { columns: auto; }
.grid.is-enhanced .cover { position: absolute; top: 0; left: 0; margin: 0; }
.grid.is-animated .cover { transition: transform .35s ease; }

@media (max-width: 1023px) { .grid { columns: 2; } }
@media (max-width: 639px) { .grid { columns: 1; } }

/* Album viewer */
.viewer { position: absolute; top: 0; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); display: grid; grid-template-columns: minmax(0, 1fr) 240px; background: var(--panel); }
.viewer[hidden] { display: none; }
.viewer:focus { outline: none; }
.viewer__stage { position: relative; aspect-ratio: 3 / 2; max-height: 80vh; width: 100%; touch-action: pan-y; }
.viewer__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer__error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; }
.viewer__error[hidden], .viewer__arrow[hidden], .viewer__description[hidden] { display: none; }
.viewer__arrow { position: absolute; top: 50%; transform: translateY(-50%); padding: 14px 16px; font-size: 22px; line-height: 1; background: rgba(11, 11, 11, .55); }
.viewer__arrow--prev { left: 0; }
.viewer__arrow--next { right: 0; }
.viewer__panel { position: relative; display: flex; flex-direction: column; padding: 32px 26px; min-width: 0; }
.viewer__close { position: absolute; top: 10px; right: 14px; font-size: 26px; line-height: 1; color: var(--muted); }
.viewer__close:hover { color: var(--light); }
.viewer__title { font-size: 28px; line-height: 1.05; padding-right: 20px; }
.viewer__description { margin: 16px 0 0; font-size: 14px; }
.viewer__counter { margin: auto 0 0; padding-top: 20px; font-size: 13px; letter-spacing: .22em; color: var(--light); }

@media (max-width: 1023px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer__panel { padding: 22px var(--pad) 26px; }
}

/* Kontakt */
.contact__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact__lead { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; color: var(--light); margin-bottom: 32px; }
.contact__big { font-family: var(--font-head); font-size: 22px; color: var(--light); text-decoration: none; }
.contact__big:hover { text-decoration: underline; }
.contact__social { display: flex; gap: 18px; margin-top: 8px; }
.contact__social a { color: var(--light); padding: 4px; margin: -4px; }
.contact__social a:hover { color: #fff; }

.contact__form label { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact__form input[type="text"], .contact__form input[type="email"], .contact__form textarea { width: 100%; padding: 12px 14px; margin-bottom: 16px; font: inherit; color: var(--light); background: transparent; border: 1px solid var(--gray); border-radius: 0; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--light); }
.contact__form textarea { resize: vertical; }
.contact__form button[type="submit"] { background: var(--accent); padding: 14px 30px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.contact__form button[type="submit"]:hover { background: #7d1319; }
.contact__form .required { color: var(--light); }
.contact__form .notices, .contact__form .form-message, .contact__form .form-errors { border-left: 2px solid var(--accent-line); padding: 4px 0 4px 16px; margin-bottom: 20px; color: var(--light); }
.contact__form .notices p, .contact__form .form-errors p { color: var(--light); margin: 0; }

@media (max-width: 767px) { .contact__cols { grid-template-columns: 1fr; } }

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