:root {
  color-scheme: light;
  --cream: #f7f3e9;
  --paper: #fdfbf5;
  --ink: #23261d;
  --muted: #55584b;
  --green: #343e28;
  --olive: #586242;
  --line: #ded8c8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); }
main { flex: 1; padding-block: 0 82px; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 3px; }
h1, h2 { font: 400 2.8rem/1.08 var(--serif); letter-spacing: -.043em; margin: 0 0 .45em; }
h3, p { margin: 0; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 20px; top: -100px; z-index: 5; background: var(--paper); padding: 10px 14px; }
.skip:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); position: relative; z-index: 3; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font: 700 1.29rem/1 var(--serif); letter-spacing: -.05em; justify-self: start; white-space: nowrap; }
.brand-tail { color: var(--olive); font-weight: 400; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--green); color: var(--paper); font: 400 1.29rem/1 var(--serif); }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(13px, 2.5vw, 36px); }
.header-inner nav a { text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 620; padding-block: 9px; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.popover { position: relative; }
.popover > summary { display: flex; align-items: center; justify-content: space-between; gap: .66em; min-height: 42px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; list-style: none; background: var(--paper); cursor: pointer; font-size: .84rem; font-weight: 650; }
.popover > summary::-webkit-details-marker { display: none; }
.popover > summary::after { content: ''; width: 7px; height: 7px; transform: rotate(45deg); border: solid currentColor; border-width: 0 1.4px 1.4px 0; margin: -3px 3px 0 0; }
.popover[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.popover ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: max(100%, 145px); max-width: min(285px, 87vw); max-height: 55vh; overflow: auto; z-index: 2; list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 12px 25px #28231516; }
.popover li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 5px; text-decoration: none; font-size: .88rem; }
.popover li a:hover, .popover li a[aria-current] { background: #ede9dc; }
.language { justify-self: end; }
.globe { font-size: 1.05rem; line-height: 1; }
.picker ul { min-width: max(100%, 224px); }
.hero { padding-block: 51px 58px; display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(30px, 5vw, 84px); align-items: center; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--olive); font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 17px; }
.dot { height: 7px; width: 7px; border-radius: 50%; background: var(--olive); }
.hero h1 { font-size: clamp(3.15rem, 5.7vw, 6.05rem); line-height: .985; margin: 0 0 23px; }
.hero h1 em { font-weight: 400; color: var(--olive); display: block; }
html:lang(pl) .hero h1, html:lang(es) .hero h1 { font-size: clamp(2.8rem, 4.8vw, 5rem); line-height: 1.03; }
.hero-description { color: var(--muted); max-width: 43ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 15px; min-height: 44px; border-radius: 7px; font-size: .86rem; font-weight: 670; line-height: 1.3; text-decoration: none; }
.primary { background: var(--green); color: white; border: 1px solid var(--green); }
.primary:hover { background: #495537; }
.secondary { border: 1px solid #cbc4b1; }
.secondary:hover { background: #eeeadf; }
.masthead { display: block; border-radius: 15px; overflow: hidden; aspect-ratio: 1.28; background: #e2d6bf; }
.masthead img { width: 100%; height: 100%; display: block; object-fit: cover; }
.section { margin-top: 48px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-header h2 { margin: 0; }
.category-grid, .guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.category, .guide-card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); padding: 16px; text-decoration: none; }
.category { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 90px; }
.category:hover, .guide-card:hover { background: #eeeade; border-color: #c4bda9; }
.category strong, .guide-card strong { display: block; line-height: 1.28; font-weight: 670; }
.category small, .guide-card p { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; padding-top: 6px; }
.category > span:last-child, .guide-card > span, .story > span { color: var(--olive); font-size: 1.1rem; }
.guide-card > span { display: block; margin-top: 10px; }
.section-more { margin-top: 15px; font-size: .9rem; color: var(--green); font-weight: 650; }
.text-link { text-underline-offset: 4px; }
.crumb { margin: 21px 0 24px; color: var(--muted); font-size: .81rem; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 4px 9px; padding: 0; margin: 0; list-style: none; }
.crumb li + li::before { content: '/'; margin-right: 9px; color: var(--olive); }
.crumb a { text-decoration-color: #aba395; text-underline-offset: 3px; }
.page-head { padding: 22px 0 28px; max-width: 850px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); text-wrap: balance; line-height: 1.04; }
.page-head p:not(.eyebrow) { color: var(--muted); max-width: 66ch; }
.in-page { margin: 0 0 23px; align-items: start; }
.in-page .popover ul { left: 0; right: auto; }
.story-list { border-top: 1px solid var(--line); }
.story { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 17px 12px; border-bottom: 1px solid var(--line); text-decoration: none; }
.story:hover { background: var(--paper); }
.story h3 { font: 400 1.44rem/1.2 var(--serif); letter-spacing: -.024em; margin-block: 1px 4px; }
.story p { color: var(--muted); font-size: .87rem; }
.story-group { text-transform: uppercase; font-weight: 700; font-size: .67rem; letter-spacing: .08em; color: var(--olive); }
.article-layout { display: grid; grid-template-columns: minmax(160px,230px) minmax(0,730px); gap: clamp(20px,4vw,56px); align-items: start; }
.contents { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; font-size: .87rem; }
.contents p { font-weight: 700; }
.contents ol { margin: 7px 0 0; padding-inline-start: 20px; }
.contents li + li { margin-top: 5px; }
.contents a { text-underline-offset: 3px; }
.reading { max-width: 730px; color: var(--muted); }
.reading section { scroll-margin-top: 24px; margin-bottom: 30px; }
.reading h2 { color: var(--ink); font-size: clamp(1.75rem,3.7vw,2.6rem); line-height: 1.13; }
.reading section p + p { margin-top: .9em; }
.reading-action { margin-top: 22px; }
.faq-list details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.faq-list p { margin: 10px 0 0 18px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-block: 25px; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-inner a { text-underline-offset: 4px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .category-grid, .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; min-height: 0; padding-top: 12px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 5px; padding: 6px 0; }
  .header-inner nav a { font-size: clamp(.7rem,2.65vw,.86rem); }
  .language { grid-row: 1; grid-column: 2; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 34px 28px; }
  .hero h1 { margin-bottom: 15px; font-size: clamp(3rem, 10vw, 4.6rem); }
  .hero h1 em { display: inline; }
  .eyebrow { margin-bottom: 12px; }
  .masthead { aspect-ratio: 1.48; }
  .section { margin-top: 34px; }
  .section-header h2 { font-size: clamp(1.65rem,6.4vw,2.8rem); }
  .article-layout { grid-template-columns: 1fr; }
  .in-page { gap: 8px; }
  main { padding-bottom: 56px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 28px); }
  .category, .guide-card { padding: 11px; }
  .category-grid, .guide-grid { gap: 7px; }
}
