/* space.racicki.com - prosty mini-site (2 boxy) */

:root {
  --bg: #FAF7F2;
  --bg-dark: #1F3329;
  --text: #0F1729;
  --text-muted: #5A5A52;
  --text-on-dark: #E8E6E1;
  --accent: #2D8659;
  --accent-hover: #236B47;
  --accent-soft: #E8F3EC;
  --border: #E2DED6;
  --tile-bg: #F4EFE5;
  --measure: 720px;
  --measure-wide: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.015em;
  color: var(--text); margin-top: 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 600; line-height: 1.1; margin-bottom: 1.25rem; }
h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; margin: 0 0 .75rem; }
@media (min-width: 720px) { h2 { font-size: 2.25rem; } }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
.muted { color: var(--text-muted); font-size: 0.9rem; }

/* Nav */
.site-nav {
  background: var(--bg-dark);
  position: sticky; top: 0; z-index: 10;
}
.site-nav__inner {
  max-width: var(--measure-wide); margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.site-nav__logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.25rem;
  color: var(--text-on-dark); text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav__logo:hover { color: var(--accent-soft); }
.site-nav__menu {
  display: flex; gap: 1.25rem;
  margin: 0; padding: 0; list-style: none;
}
.site-nav__menu a {
  color: var(--text-on-dark); text-decoration: none;
  font-size: 0.95rem; opacity: 0.85;
}
.site-nav__menu a:hover { opacity: 1; }

/* Sekcje */
.section { padding: 2.25rem 1.25rem; }
.section--hero + .section { padding-top: 1.5rem; }
.section__inner { max-width: var(--measure); margin: 0 auto; }
.section--wide .section__inner { max-width: var(--measure-wide); }
.section__inner--centered { text-align: center; }
.section__inner--centered h2 { margin-top: 1rem; }
.section--hero {
  padding: 4.5rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse at top right, rgba(45, 134, 89, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.section--hero h1 { max-width: 24ch; margin-bottom: 1.25rem; }
.section--hero .lead {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 60ch; margin-bottom: 0;
}
@media (min-width: 720px) {
  .section { padding: 3.5rem 1.5rem; }
  .section--hero { padding: 5.5rem 1.5rem 3.5rem; }
  .section--hero + .section { padding-top: 2rem; }
  .section--hero h1 { font-size: 3rem; line-height: 1.05; }
  .section--hero .lead { font-size: 1.25rem; }
}

/* Tile grid 2 boxy */
.tile-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; margin: 0.5rem auto 0;
  max-width: 880px;
}
@media (min-width: 720px) {
  .tile-grid--2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.tile {
  background: var(--tile-bg);
  padding: 2rem 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
  display: flex; flex-direction: column;
}
.tile h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.45rem; }
.tile p { flex: 1; margin-bottom: 1.25rem; color: var(--text); }
.tile__cta { align-self: flex-start; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-hover); color: white; }

/* Footer */
.site-footer {
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: 2.5rem 1.25rem 2rem; margin-top: 2rem;
}
.site-footer__inner { max-width: var(--measure-wide); margin: 0 auto; text-align: center; }
.site-footer p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--accent-soft); text-decoration: underline; }
.site-footer a:hover { color: white; }
.site-footer .muted { color: var(--text-on-dark); opacity: 0.6; }
