/* Ziarnista - palarnia specialty
   Faza 2: statyczny HTML/CSS
   Sabotage Studio, projekt koncepcyjny */

:root {
  --brown: #2E1F17;
  --brown-soft: #3A281D;
  --beige: #EDE4D3;
  --cream: #F7F1E6;
  --rust: #B5652D;
  --muted: #7A6A5A;

  --on-dark: #F7F1E6;
  --on-dark-70: rgba(247, 241, 230, 0.7);
  --on-dark-55: rgba(247, 241, 230, 0.55);
  --on-dark-line: rgba(247, 241, 230, 0.14);
  --on-light-70: rgba(46, 31, 23, 0.7);
  --on-light-55: rgba(46, 31, 23, 0.55);
  --on-light-line: rgba(46, 31, 23, 0.16);

  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --pad-x: 72px;
  --pad-y: 132px;
  --radius: 2px;
  --pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--brown); }

::selection { background: var(--rust); color: var(--cream); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* --- elementy powtarzalne --- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
}

.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow--rule::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--rust);
}

.btn {
  display: inline-block;
  padding: 17px 30px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--rust { background: var(--rust); color: var(--cream); }
.btn--rust:hover { background: #9C4F22; color: var(--cream); }

.btn--dark { background: var(--brown); color: var(--beige); padding: 11px 20px; font-size: 13px; }
.btn--dark:hover { background: var(--rust); color: var(--cream); }

.btn--ghost-light { border-color: rgba(247, 241, 230, 0.32); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); color: var(--on-dark); }

.btn--ghost-dark { border-color: rgba(46, 31, 23, 0.35); color: var(--brown); }
.btn--ghost-dark:hover { background: var(--brown); border-color: var(--brown); color: var(--beige); }

.btn--block { display: block; text-align: center; padding: 15px 20px; font-size: 13px; letter-spacing: 0.1em; }

.lede { font-size: 17px; line-height: 1.7; color: var(--on-light-70); }
.lede--dark { color: rgba(247, 241, 230, 0.68); }

.section { padding: var(--pad-y) var(--pad-x); }
.section--beige { background: var(--beige); }
.section--cream { background: var(--cream); }
.section--brown { background: var(--brown); color: var(--on-dark); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-head__title {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 26ch;
}

.section-head h2,
.beans__intro h2 { font-size: clamp(38px, 3.6vw, 58px); line-height: 1.06; }

.section-head p { max-width: 38ch; }

/* --- nagłówek --- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  background: rgba(237, 228, 211, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 31, 23, 0.12);
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a { color: var(--brown); opacity: 0.75; transition: opacity 0.2s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav .btn--dark { opacity: 1; color: var(--beige); }
.site-nav .btn--dark:hover { color: var(--cream); }

.site-head__mobile-cta { display: none; }

/* --- hero --- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 88vh;
  background: var(--brown);
  color: var(--on-dark);
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 110px var(--pad-x) 96px;
}

.hero h1 {
  font-size: clamp(52px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 em { color: var(--rust); }

.hero__lede {
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(247, 241, 230, 0.74);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.stats {
  display: flex;
  gap: 44px;
  padding-top: 14px;
  border-top: 1px solid var(--on-dark-line);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--serif); font-size: 30px; }
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-55);
}

.hero__media { position: relative; min-height: 520px; background: var(--brown-soft); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }

/* --- o ziarnie --- */

.beans {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 96px;
  align-items: start;
}

.beans__intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 110px;
}

.beans__intro img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.origins { display: flex; flex-direction: column; border-bottom: 1px solid var(--on-light-line); }

.origin {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--on-light-line);
}

.origin__code { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.origin__text { display: flex; flex-direction: column; gap: 7px; }
.origin__country { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.origin__note { font-size: 15px; line-height: 1.6; color: rgba(46, 31, 23, 0.66); }
.origin__alt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-55);
  white-space: nowrap;
}

/* --- proces --- */

.process { display: flex; flex-direction: column; gap: 64px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(247, 241, 230, 0.16);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  padding: 38px 30px 44px;
  background: var(--brown);
}

.step__num { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.step h3 { font-size: 26px; line-height: 1.15; }
.step p { font-size: 15px; line-height: 1.65; color: rgba(247, 241, 230, 0.62); }

.process__banner { width: 100%; height: 300px; object-fit: cover; }

/* --- subskrypcja --- */

.subscribe { display: flex; flex-direction: column; gap: 56px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 34px 34px;
  background: var(--beige);
  color: var(--brown);
  border: 1px solid rgba(46, 31, 23, 0.14);
  border-radius: var(--radius);
}

.plan--featured { background: var(--brown); color: var(--on-dark); }

.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.plan__tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.62;
  white-space: nowrap;
}

.plan__badge {
  padding: 5px 11px;
  background: var(--rust);
  color: var(--cream);
  border-radius: var(--pill);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan h3 { font-size: 32px; line-height: 1.1; }

.plan__price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.plan__price strong { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.plan__price span { font-size: 14px; opacity: 0.6; }

.plan p { font-size: 15px; line-height: 1.65; opacity: 0.72; }
.plan__foot { margin-top: auto; padding-top: 14px; }

/* --- lokal --- */

.venue { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--beige); }

.venue__body {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 120px 64px 120px var(--pad-x);
}

.venue h2 { font-size: clamp(38px, 3.4vw, 54px); line-height: 1.06; }

.venue__address { display: flex; flex-direction: column; gap: 8px; font-size: 20px; line-height: 1.5; }
.venue__address span:last-child { color: rgba(46, 31, 23, 0.66); }

.hours { display: flex; flex-direction: column; border-top: 1px solid var(--on-light-line); }

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(46, 31, 23, 0.12);
  font-size: 16px;
}

.hours__row dt { color: var(--on-light-70); }
.hours__row dd { margin: 0; font-family: var(--mono); }

.venue__contact { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.venue__contact a { color: var(--rust); }

.venue__media { position: relative; min-height: 540px; background: #DFD3BE; overflow: hidden; }
.venue__media img { width: 100%; height: 100%; object-fit: cover; }

.venue__map-note {
  position: absolute;
  left: 26px;
  bottom: 26px;
  padding: 8px 12px;
  background: rgba(237, 228, 211, 0.86);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brown);
}

/* --- stopka --- */

.site-foot {
  padding: 88px var(--pad-x) 40px;
  background: var(--brown);
  color: var(--on-dark-70);
}

.site-foot a { color: var(--on-dark-70); }
.site-foot a:hover { color: var(--rust); }

.site-foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--on-dark-line);
}

.site-foot__brand { display: flex; flex-direction: column; gap: 16px; max-width: 30ch; }
.site-foot__brand .wordmark { color: var(--on-dark); }
.site-foot__brand p { font-size: 15px; line-height: 1.7; }

.site-foot__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }

.site-foot__col-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.45);
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 230, 0.42);
}

/* --- responsywność --- */

@media (max-width: 1100px) {
  :root { --pad-x: 40px; --pad-y: 88px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__body { padding: 84px var(--pad-x) 72px; }
  .hero__media { min-height: 0; height: 46vh; max-height: 420px; }

  .beans { grid-template-columns: 1fr; gap: 48px; }
  .beans__intro { position: static; }

  .venue { grid-template-columns: 1fr; }
  .venue__body { padding: 84px var(--pad-x); }
  .venue__media { min-height: 0; height: 42vh; max-height: 380px; }
}

@media (max-width: 700px) {
  :root { --pad-x: 22px; --pad-y: 64px; }

  .site-head { padding: 16px var(--pad-x); }
  .site-nav { display: none; }
  .site-head__mobile-cta { display: inline-block; }

  .hero__body { padding: 64px var(--pad-x) 56px; }
  .venue__body { padding: 64px var(--pad-x); }

  .origin { grid-template-columns: auto 1fr; gap: 16px; }
  .origin__alt { grid-column: 2; }

  .stats { flex-wrap: wrap; gap: 28px; }
}

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