/* Mamy Czas — mamyczas.love
   Fonts: Bodoni Moda, Outfit, Great Vibes (SIL Open Font License 1.1) */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url("../fonts/bodoni-moda-latin-ext.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: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url("../fonts/bodoni-moda-latin.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: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: block;
  src: url("../fonts/bodoni-moda-italic-latin-ext.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: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: block;
  src: url("../fonts/bodoni-moda-italic-latin.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: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("../fonts/outfit-latin-ext.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: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("../fonts/outfit-latin.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: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/great-vibes-latin-ext.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: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/great-vibes-latin.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: #f3ece3;
  --paper-deep: #eadfcf;
  --ink: #2a211c;
  --muted: #4e433c;
  --wine: #7a2430;
  --wine-deep: #641f2a;
  --line: rgba(122, 36, 48, 0.2);
  --serif: "Bodoni Moda", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --nav-h: calc(6.5rem + env(safe-area-inset-top, 0px));
  color-scheme: light;
}

@media (min-width: 760px) {
  :root { --nav-h: calc(4.6rem + env(safe-area-inset-top, 0px)); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(7.5rem + env(safe-area-inset-top));
  background: var(--paper);
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

p, h1, h2, h3, ul, ol, blockquote { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--wine);
  color: var(--paper);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.skip:focus { transform: none; }

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  height: var(--nav-h);
  padding: env(safe-area-inset-top, 0px) 1.15rem 0.55rem;
  background: var(--paper);
}

.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8rem;
  height: 8rem;
  background: var(--paper);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--wine);
  text-decoration: none;
}

.brand-script {
  font-family: var(--script);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.35;
  padding-top: 0.12em;
  font-synthesis: none;
}

.brand-serif {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  font-optical-sizing: auto;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  font-optical-sizing: auto;
}

.nav-links a:hover { color: var(--wine); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
}

.poster {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 3.5rem;
  overflow: hidden;
}

.lockup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lockup { color: var(--wine); }

.line-serif {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(5.5rem, 24vw, 11.2rem);
  line-height: 0.78;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-optical-sizing: auto;
}

.line-script {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.8rem, 18vw, 8.6rem);
  line-height: 0.85;
  margin-top: -0.06em;
  font-synthesis: none;
}

.kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  margin-top: 1.15rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--wine);
}

.edge {
  display: none;
  margin: 0;
  position: absolute;
  top: 50%;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wine);
}

.edge span { writing-mode: vertical-rl; }

.intro,
.pillars,
.contact {
  padding: clamp(4.25rem, 9vw, 7.25rem) 0;
}

.intro-grid { display: grid; gap: 0.85rem; }

.intro-copy h2,
.pillars h2,
.contact h2,
.missing h1,
.doc h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.intro-copy h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  max-width: 12ch;
}

.intro-copy p {
  margin-top: 1.05rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pillars { background: var(--paper-deep); }

.pillars h2 {
  text-align: center;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  max-width: 14ch;
  margin: 0 auto 2.4rem;
}

.pillar-grid { border-top: 1px solid var(--line); }

.pillar {
  padding: 1.7rem 0.15rem 1.45rem;
  border-bottom: 1px solid var(--line);
}

.pillar svg {
  width: 40px;
  height: 40px;
  color: var(--wine);
  margin-bottom: 0.85rem;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.pillar p {
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.6;
}

.quote {
  background: var(--wine-deep);
  color: var(--paper);
  text-align: center;
  padding: clamp(4.75rem, 12vw, 8.5rem) 1.35rem;
}

.quote-main {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.05rem, 6.4vw, 4.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.quote-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.35;
  max-width: 22ch;
  margin: 1.2rem auto 0;
}

.day {
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(255, 214, 186, 0.16), transparent 48%),
    #3f2e2a;
  padding: clamp(4.25rem, 9vw, 7rem) 1.2rem;
}

.menu {
  position: relative;
  max-width: 26.5rem;
  margin: 0 auto;
  background: #f7f1e7;
  text-align: center;
  padding: 2.7rem 1.55rem 2rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.clip {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 78px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.22));
}

.menu-title {
  font-family: var(--script);
  font-size: clamp(3.3rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  font-synthesis: none;
  padding-top: 0.35rem;
}

.menu-rule {
  width: 3.25rem;
  height: 1px;
  margin: 0.7rem auto 1.55rem;
  background: var(--wine);
  border: 0;
}

.menu-list {
  list-style: none;
  padding: 0;
}

.menu-list li + li { margin-top: 1.45rem; }

.menu-list h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.35rem;
}

.menu-list p {
  font-family: var(--serif);
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.3;
  font-optical-sizing: auto;
}

.menu-sign {
  margin-top: 1.8rem;
  color: var(--wine);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem;
}

.menu-sign span {
  font-family: var(--script);
  font-size: 1.85rem;
  line-height: 1;
}

.menu-sign em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
}

.letter {
  background:
    radial-gradient(90% 80% at 50% 42%, #f6e6da 0%, #e4cfc0 68%, #d9c2b1 100%);
  padding: clamp(4.25rem, 10vw, 7.25rem) 1.2rem;
}

.letter-card {
  max-width: 24rem;
  margin: 0 auto;
  background: #fffdfb;
  text-align: center;
  padding: 2.35rem 1.55rem 1.85rem;
  box-shadow: 0 22px 50px rgba(70, 36, 28, 0.12);
}

.letter-card h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.3rem, 6vw, 2.8rem);
  font-optical-sizing: auto;
  line-height: 1;
}

.letter-card p {
  margin-top: 0.95rem;
  color: #3a322c;
  font-size: 1.05rem;
  line-height: 1.55;
}

.letter-end {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--wine);
}

.contact { text-align: center; }

.contact h2 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  margin: 0.7rem auto 1.15rem;
  max-width: 12ch;
}

.big-mail {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.55rem, 5.2vw, 3.7rem);
  line-height: 1.15;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 36, 48, 0.35);
}

.big-mail:hover { border-bottom-color: var(--wine); }

.lede {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}

.site-footer {
  background: #3c151c;
  color: #f3ece3;
  padding: 3.1rem 0 2rem;
}

.site-footer :focus-visible { outline-color: #f3ece3; }

.site-footer .brand { color: #f3ece3; }

.footer-grid { display: grid; gap: 1.7rem; }

.footer-tag {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer-nav a,
.footer-contact a {
  color: #f3ece3;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

.footer-domain { letter-spacing: 0.04em; }

.fineprint {
  margin-top: 2.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(243, 236, 227, 0.18);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 42rem;
  color: #f4e7dc;
}

.missing {
  min-height: calc(100svh - 16rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
}

.missing h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--wine);
  max-width: 12ch;
  margin-top: 0.8rem;
}

.missing .line-script {
  font-size: clamp(3.4rem, 12vw, 5rem);
  margin-top: 0.1rem;
}

.missing p { color: var(--muted); }

.link-pill {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--wine);
  border-radius: 999px;
  color: var(--wine);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-pill:hover {
  background: var(--wine);
  color: var(--paper);
}

.doc {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.8rem 0 4.5rem;
}

.doc h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  color: var(--wine);
  margin-top: 0.45rem;
}

.updated {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  color: var(--wine);
  margin: 2.4rem 0 0.35rem;
}

.doc p { margin-top: 0.75rem; }

.doc ol,
.doc ul {
  margin-top: 0.55rem;
  padding-left: 1.2rem;
}

.doc li { margin: 0.4rem 0; padding-left: 0.15rem; }

.doc li::marker { color: var(--wine); }

.doc a { color: var(--wine); }

@media (min-width: 760px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    height: var(--nav-h);
    padding: env(safe-area-inset-top, 0px) 2rem 0.55rem;
  }

  .nav-links { gap: 1.6rem; }
}

@media (min-width: 800px) {
  .intro-grid {
    grid-template-columns: 9.5rem 1fr;
    gap: 3rem;
    align-items: start;
  }

  .intro-grid .eyebrow { padding-top: 0.95rem; }

  .pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .pillar {
    padding: 2.1rem 1.5rem 1.8rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .pillar + .pillar { padding-left: 1.5rem; }

  .pillar:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

@media (min-width: 980px) {
  .edge { display: block; }

  .edge-left {
    left: 1.5rem;
    transform: translateY(-50%) rotate(180deg);
  }

  .edge-right {
    right: 1.5rem;
    transform: translateY(-50%);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 380px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 1.02rem; }
  .line-serif { font-size: 4.7rem; }
  .line-script { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  body::before { display: none; }
  .nav, .skip { position: static; }
  .site-footer, .quote, .day, .letter {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
