/* Škropec — skropec.eu */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  --wine-deep: #0c0407;
  --wine: #1a0a10;
  --wine-mid: #3d1524;
  --wine-light: #5c2235;
  --cream: #f5ead8;
  --cream-muted: #b8a48a;
  --gold: #c9923e;
  --gold-bright: #e4b35a;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --panel-width: 36rem;
  --radius: 1.125rem;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--cream);
  background: var(--wine-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--cream);
}

/* ===== Layout ===== */
.site {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.site__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--wine-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(201, 146, 62, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(92, 34, 53, 0.65) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 30%, rgba(61, 21, 36, 0.8) 0%, transparent 45%),
    linear-gradient(175deg, #4a1a2a 0%, #1a0a10 45%, #0c0407 100%);
  background-size: cover;
  background-position: center;
}

.site__bg--photo {
  background-image:
    var(--photo-url),
    linear-gradient(175deg, rgba(26, 10, 16, 0.55) 0%, rgba(12, 4, 7, 0.88) 100%);
}

.site__veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 70% at 50% 50%,
    rgba(12, 4, 7, 0.15) 0%,
    rgba(12, 4, 7, 0.72) 100%
  );
}

.site__header,
.site__main,
.site__footer {
  position: relative;
  z-index: 2;
}

/* ===== Header ===== */
.site__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem clamp(1.25rem, 5vw, 3rem);
}

.site__brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.site__motto {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.95;
}

/* ===== Main / kartica ===== */
.site__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 1.75rem);
  width: 100%;
}

.proverb-panel {
  position: relative;
  width: min(var(--panel-width), 100%);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.75rem, 5vw, 2.75rem);
  text-align: center;
  background: linear-gradient(
    165deg,
    rgba(45, 18, 28, 0.94) 0%,
    rgba(22, 8, 12, 0.97) 100%
  );
  border: 1px solid rgba(201, 146, 62, 0.45);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(245, 234, 216, 0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(201, 146, 62, 0.08);
}

/* ukrasni kutovi */
.proverb-panel::before,
.proverb-panel::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.proverb-panel::before {
  top: 0.85rem;
  left: 0.85rem;
  border-top: 2px solid;
  border-left: 2px solid;
}

.proverb-panel::after {
  bottom: 0.85rem;
  right: 0.85rem;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.proverb-panel__head {
  margin-bottom: 1.75rem;
}

.proverb-panel__label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201, 146, 62, 0.35);
  min-width: min(100%, 14rem);
}

.proverb-panel__date {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 500;
  font-style: normal;
  color: var(--cream-muted);
}

.proverb-panel__quote {
  margin: 0;
  padding: 0.5rem 0 1.75rem;
  border: none;
}

.proverb-panel__glyph {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 0.85;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.proverb-panel__text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.proverb-panel__note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--cream-muted);
  max-width: 26rem;
  margin-inline: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 146, 62, 0.2);
}

/* ===== Footer ===== */
.site__footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.site__footer-line {
  font-size: 0.875rem;
  color: var(--cream-muted);
}

.site__hashtag {
  color: var(--gold-bright);
  font-weight: 600;
}

.site__footer-fine {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--cream-muted);
  opacity: 0.7;
  font-style: italic;
}

/* ===== 404 ===== */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(175deg, #4a1a2a 0%, #0c0407 100%);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--gold);
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 600;
  color: var(--cream);
}

.error-page__link {
  margin-top: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(228, 179, 90, 0.45);
}

.noscript-fallback {
  padding: 2rem;
  text-align: center;
  font-family: var(--font-display);
}

::selection {
  background: var(--gold);
  color: var(--wine-deep);
}

@media (max-width: 520px) {
  .site__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site__motto {
    letter-spacing: 0.24em;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
