/* petrjansky.cz — styly.
   Jedno písmo (Public Sans), bílý papír, tmavě modrý text, jediná akcentová barva. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #131b3c;
  --ink-soft: #4d5673;
  --rule: #dce0ea;
  --wash: #f3f5f9;
  --accent: #9c1f2e;
  --underline: #9aa3bd;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 43rem;
  --page: 62rem;
  --gutter: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0.5rem;
}

/* Záhlaví */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem 1rem;
}
.site-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
  text-decoration: none;
}
.site-name-title {
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.site-name-tagline {
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.2rem;
  font-size: 0.98rem;
  font-weight: 550;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--underline);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Obsah */
main {
  padding-block: 2.75rem 4rem;
}
.prose {
  max-width: var(--measure);
}
.prose > :first-child {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 720;
  text-wrap: balance;
}
.page-title {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.5rem;
  margin: 2.75rem 0 0.9rem;
}
h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
}
p,
ul,
ol,
figure,
blockquote {
  margin: 0 0 1.05rem;
}
ul,
ol {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.45rem;
}
li::marker {
  color: var(--ink-soft);
}
blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--ink-soft);
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}
figure img {
  display: block;
}
figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.prose p > img {
  display: block;
  margin-top: 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.aligncenter {
  display: block;
  margin-inline: auto;
}
.alignleft {
  float: left;
  margin: 0.25rem 1.25rem 0.75rem 0;
}
.alignright {
  float: right;
  margin: 0.25rem 0 0.75rem 1.25rem;
}

/* Úvodní stránka */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "side" "body";
  gap: 0 3.25rem;
}
.home-intro {
  grid-area: intro;
}
.home-side {
  grid-area: side;
  margin: 0.75rem 0 0.5rem;
}
.home-body {
  grid-area: body;
}
@media (min-width: 56rem) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    grid-template-areas: "intro side" "body side";
    grid-template-rows: auto 1fr;
  }
  .home-side {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    margin: 0.7rem 0 0;
  }
}
.site-name--home {
  display: none;
}
@media (min-width: 40rem) {
  .site-name--home + .site-nav {
    margin-left: auto;
  }
}
.hero-name {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 780;
  margin: 0 0 0.5rem;
}
.hero-role {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.home-photo {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.side-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.side-links li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.side-links a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 600;
  text-decoration: none;
}
.side-links a:hover {
  text-decoration: underline;
}
@media (min-width: 30rem) and (max-width: 55.99rem) {
  .home-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .side-links {
    margin-top: 0;
  }
}
.home-section {
  border-top: 1px solid var(--rule);
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}
.home-section h2 {
  margin-top: 1.75rem;
}
.more-link {
  font-weight: 600;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.logo-row img {
  display: block;
  max-height: 4.5rem;
  width: auto;
}
.logo-row img[alt="CORPTAX"] {
  max-height: 2.6rem;
}
.logo-row a:hover img {
  opacity: 0.8;
}

/* Seznam publikací */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.pub-list > li {
  margin: 0 0 1.1rem;
}
.pub-title {
  font-weight: 650;
}
.pub-figure {
  margin: 0.8rem 0 2rem;
}
.pub-figure img {
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.pub-list--compact > li {
  margin-bottom: 0.75rem;
}

/* Rozbalovací bloky */
details {
  border-top: 1px solid var(--rule);
}
details:last-of-type {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  padding: 0.6rem 0;
  font-weight: 650;
}
summary:hover {
  color: var(--accent);
}
details[open] > summary {
  margin-bottom: 0.4rem;
}
details > :last-child {
  margin-bottom: 1.25rem;
}
.archive {
  margin-top: 2rem;
}
.archive > summary {
  font-size: 1.15rem;
}
.archive details {
  margin-left: 1rem;
}
.archive details:last-of-type {
  border-bottom: 0;
}
.count {
  color: var(--ink-soft);
  font-weight: 400;
}

/* Seznam médií */
.media-list {
  font-size: 0.98rem;
  line-height: 1.5;
}
.media-list li {
  margin-bottom: 0.4rem;
}

/* Fotografie */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.gallery li {
  margin: 0;
}
.gallery img {
  display: block;
  height: 10.5rem;
  width: auto;
  border-radius: 4px;
}
.gallery a:hover img {
  opacity: 0.85;
}

/* Archiv blogu */
.post-meta,
.post-date {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.post-meta {
  margin-bottom: 0.75rem;
}
.post-date {
  margin-top: -1rem;
  margin-bottom: 1.75rem;
}
.post-index {
  list-style: none;
  padding: 0;
}
.post-index li {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.post-index time {
  white-space: nowrap;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Zápatí */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem 2.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  margin: 0 0 0.5rem;
}
.footer-name {
  font-weight: 650;
  color: var(--ink);
}
.footer-note {
  margin: 0;
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }
  main {
    padding-block: 2rem 3rem;
  }
  .gallery img {
    height: 8rem;
  }
  .post-index li {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-nav,
  .site-footer,
  .skip-link {
    display: none;
  }
  body {
    font-size: 11pt;
    color: #000;
  }
  a {
    text-decoration: none;
  }
  details {
    border: 0;
  }
}
