/*
  lubomirkrcmar.cz: dad's personal page.
  Its own look, tied to neither brand: warm paper, graphite ink,
  blued steel (watch hands) and a little gold. System fonts only,
  so the page loads nothing from third parties.
*/

:root {
  color-scheme: light;
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --band: #EEEAE2;
  --ink: #1D2125;
  --ink-2: #3E444B;
  --muted: #5F656C;
  --line: #DFDAD0;
  --tick: #C9C1B3;
  --steel: #234A73;
  --steel-dark: #16365A;
  --gold: #7F6127;
  --gold-soft: #C8AE76;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--steel-dark); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--steel);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  z-index: 10;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.top { border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 22px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 3px 0; }
.nav a:hover { color: var(--steel); }

/* ---------- Hero ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}
.eyebrow, .kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.role {
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--ink-2);
  margin: 8px 0 24px;
}
.lead {
  font-size: 1.25rem;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 32px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 22px;
  border: 1.5px solid var(--steel);
  border-radius: 4px;
  color: var(--steel);
  text-decoration: none;
}
.btn:hover { background: rgba(35, 74, 115, 0.07); color: var(--steel-dark); }
.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--steel-dark); border-color: var(--steel-dark); color: #fff; }
.call {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 22px 0 0;
}
.call a { font-weight: 600; text-decoration: none; }

/* The portrait sits in an arch, like the door of a longcase clock. */
.portrait {
  position: relative;
  margin: 12px 12px 0 12px;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px 999px 10px 10px;
}
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 500 / 540;
  object-fit: cover;
  border-radius: 999px 999px 4px 4px;
}

/* A minute track: a short tick every 10 px, a long one every 50 px. */
.dial-rule {
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 50px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 10px) left bottom / 100% 6px no-repeat;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; scroll-margin-top: 8px; }
.section + .section { padding-top: 0; }
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin-bottom: 16px;
}
.section-lead {
  color: var(--ink-2);
  max-width: 40em;
  margin: 0 0 36px;
}
.more {
  font-size: 1rem;
  color: var(--muted);
  margin: 28px 0 0;
}

/* Crafts */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.craft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.craft img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.craft-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.craft h3 { font-size: 1.7rem; margin-bottom: 12px; }
.craft p { margin: 0 0 14px; color: var(--ink-2); }
.go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}
.go:hover { text-decoration: underline; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.timeline li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.year {
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
.timeline h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-2); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--band);
}
.gallery figcaption {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 10px;
}

/* Recommendations */
.quote-group + .quote-group { margin-top: 28px; }
.quote-group .kicker { margin-bottom: 18px; }
.quote-cols { column-count: 2; column-gap: 56px; }
.quote {
  margin: 0 0 28px;
  padding-left: 20px;
  border-left: 2px solid var(--gold-soft);
  break-inside: avoid;
}
.quote blockquote { margin: 0; }
.quote p { margin: 0 0 8px; }
.quote figcaption {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Contact */
.contact { background: var(--band); }
.section.contact { padding-top: 64px; padding-bottom: 64px; }
.contact h2 { margin-bottom: 28px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.contact p { margin: 0 0 12px; }
.contact .big { font-size: 1.4rem; }
.contact .big a, .contact a[href^="tel:"] { text-decoration: none; font-weight: 600; }
.note { color: var(--muted); font-size: 1rem; }

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 6px; }
.site-footer .small { font-size: 0.82rem; }

/* 404 */
.notfound { padding: 96px 0 120px; }
.notfound h1 { margin-bottom: 20px; }
.notfound p { color: var(--ink-2); max-width: 36em; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 36px;
    padding-top: 48px;
  }
  .craft-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-cols { column-count: 1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 16px; }
  .top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .portrait {
    order: -1;
    justify-self: start;
    max-width: 160px;
    margin: 12px 0 0 12px;
  }
  .lead { font-size: 1.15rem; }
  .actions { gap: 10px; }
  .btn { padding: 12px 16px; }
  .section { padding: 56px 0; }
  .timeline li { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 14px; }
  .year { font-size: 1.4rem; }
  .craft-body { padding: 20px 20px 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
