/* pamio.pl – the family's page: the brands' posters in real-looking frames, links out to each shop.
   Colours: Tu i Wtedy's ink, night, cream and gold (the logo's), the page on a warm paper. Fonts self-hosted
   (assets/fonts – tools/landing/pamio.ts). */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-400-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f2ea;
  --paper-2: #efe9de;
  --line: #e2dacb;
  --ink: #1f1d1b;
  --muted: #5a554e; /* 6.9:1 on the paper */
  --night: #15171d;
  --gm-night: #1b2231; /* Gwiezdna Metryczka's night panel */
  --cream: #ece5d8;
  --gold: #b8955e;
  --gold-light: #d4b483;
  --gold-text: #7a5d33; /* gold for text on the paper – 5.5:1 */
  --tw-paper: #f1eff6; /* Tu i Wtedy's lavender paper */
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--night);
  color: var(--cream);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- header ---------- */
.top {
  padding: 22px 0;
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img {
  height: 46px;
  width: auto;
}
.top nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.top nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.top nav a:hover {
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.btn .chev {
  font-size: 1.3em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.btn:hover .chev {
  transform: translateX(3px);
}
.btn-small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-right: 2px;
}
.btn-night {
  background: var(--night);
  color: var(--cream);
}
.btn-night:hover {
  background: #262a35;
}
.btn-light {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-light:hover {
  background: rgba(31, 29, 27, 0.05);
}
.btn-gold {
  background: var(--gold-light);
  color: var(--gm-night);
}
.btn-gold:hover {
  background: #e0c596;
}

/* ---------- frames: four mouldings meeting in mitred corners, a photographed wood surface along each (the creator's
   preview frames – apps/web PosterPreview.module.css), the sides on the frame's own background, top and bottom on
   ::before cut to the mitres, a lip of shade and light round the opening (::after). Sizes in cqw of the wall or
   ledge they hang on (--w), the moulding's width a share of it. ---------- */
.frame {
  --fw: calc(var(--w) * 0.045);
  position: absolute;
  width: var(--w);
  padding: var(--fw);
  background-color: var(--fr);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08)), var(--tex-v), var(--tex-v);
  background-position:
    0 0,
    0 0,
    100% 0;
  background-repeat: no-repeat, repeat-y, repeat-y;
  background-size:
    100% 100%,
    var(--fw) auto,
    var(--fw) auto;
  box-shadow:
    0 1px 2px rgba(30, 24, 18, 0.18),
    0 calc(var(--w) * 0.05) calc(var(--w) * 0.12) calc(var(--w) * -0.02) rgba(30, 24, 18, 0.34);
}
.frame::before,
.frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.frame::before {
  inset: 0;
  background-color: var(--fr);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08)), var(--tex-h), var(--tex-h);
  background-position:
    0 0,
    0 0,
    0 100%;
  background-repeat: no-repeat, repeat-x, repeat-x;
  background-size:
    100% 100%,
    auto var(--fw),
    auto var(--fw);
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--fw)) var(--fw),
    calc(100% - var(--fw)) calc(100% - var(--fw)),
    100% 100%,
    0 100%,
    var(--fw) calc(100% - var(--fw)),
    var(--fw) var(--fw)
  );
}
.frame::after {
  --lip: min(3px, calc(var(--fw) * 0.18));
  inset: calc(var(--fw) - var(--lip));
  border: var(--lip) solid;
  border-color: rgba(0, 0, 0, 0.24) rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.18) rgba(0, 0, 0, 0.16);
}
.frame > img,
.frame > .mat {
  position: relative;
}
.frame img {
  width: 100%;
  aspect-ratio: 900 / 1273;
  object-fit: cover;
}
.mat {
  padding: calc(var(--w) * 0.085);
  background: #fbfaf7;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}
.mat img {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.frame[data-finish='natural'] {
  --fr: #dcc29a;
  --tex-h: url('/assets/frames/natural-h.webp');
  --tex-v: url('/assets/frames/natural-v.webp');
}
.frame[data-finish='black'] {
  --fr: #232323;
  --tex-h: url('/assets/frames/black-h.webp');
  --tex-v: url('/assets/frames/black-v.webp');
}
.frame[data-finish='white'] {
  --fr: #f3f1ec;
  --tex-h: url('/assets/frames/white-h.webp');
  --tex-v: url('/assets/frames/white-v.webp');
}
.frame[data-finish='brown'] {
  --fr: #4a2e21;
  --tex-h: url('/assets/frames/brown-h.webp');
  --tex-v: url('/assets/frames/brown-v.webp');
}

/* ---------- hero: text and a gallery wall ---------- */
.hero {
  padding: 24px 0 96px;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-text);
}
.lead {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 19px;
  color: var(--muted);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* the wall: a warm plaster lit from the top left; posters placed in cqw so the whole arrangement scales as one */
.wall {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 100 / 86;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #ebe4d8, #ddd3c4);
  overflow: hidden;
}
.wall::after {
  /* skirting light at the bottom */
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 10%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(70, 52, 30, 0.08));
}
.f-a {
  --w: 34cqw;
  left: 33cqw;
  top: 8cqw;
}
.f-b {
  --w: 24cqw;
  left: 4.5cqw;
  top: 15cqw;
}
.f-c {
  --w: 21cqw;
  left: 72cqw;
  top: 5cqw;
}
.f-d {
  --w: 21cqw;
  left: 72cqw;
  top: 39cqw;
}
.f-e {
  --w: 18cqw;
  left: 10cqw;
  top: 53cqw;
}
.f-f {
  --w: 17cqw;
  left: 41.5cqw;
  top: 57cqw;
}

/* ---------- section heads ---------- */
.section-head {
  max-width: 44em;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 3.8vw, 48px);
}
.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
}

/* ---------- the brands ---------- */
.brands {
  padding: 32px 0 72px;
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
  padding: 56px 56px 56px 64px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}
.panel h3 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 18px;
}
.panel-text > p:not(.eyebrow) {
  margin: 0 0 20px;
}
.panel-logo {
  height: 52px;
  width: auto;
  margin-bottom: 36px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  /* the family's four-point star */
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 13px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.panel-gm {
  color: #f4ede3;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(244, 237, 227, 0.7), transparent),
    radial-gradient(1px 1px at 33% 72%, rgba(244, 237, 227, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 46% 9%, rgba(244, 237, 227, 0.6), transparent),
    radial-gradient(1px 1px at 63% 88%, rgba(244, 237, 227, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 88% 12%, rgba(244, 237, 227, 0.65), transparent),
    radial-gradient(1px 1px at 94% 64%, rgba(244, 237, 227, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 7% 86%, rgba(244, 237, 227, 0.55), transparent),
    radial-gradient(90% 120% at 80% 0%, #26304a, var(--gm-night) 70%);
}
.panel-gm .eyebrow {
  color: var(--gold-light);
}
.panel-gm .panel-text > p:not(.eyebrow) {
  color: rgba(244, 237, 227, 0.8);
}
.panel-gm .ticks li::before {
  background: var(--gold-light);
}
.panel-gm :focus-visible {
  outline-color: var(--gold-light);
}

.panel-tw {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  padding: 56px 64px 56px 56px;
  background: linear-gradient(160deg, #f6f4fa, var(--tw-paper) 50%, #e6e2ef);
  color: #1e1c25;
}
.panel-tw .ledge {
  order: -1;
}
.panel-tw .eyebrow {
  color: #6c5230;
}
.panel-tw .panel-text > p:not(.eyebrow) {
  color: #5d576b;
}

/* a picture ledge: three frames standing on a wooden shelf */
.ledge {
  container-type: inline-size;
  position: relative;
}
.ledge-row {
  position: relative;
  height: 64cqw;
}
.ledge .frame {
  bottom: 0;
}
.l-1 {
  --w: 27cqw;
  left: 2cqw;
}
.l-2 {
  --w: 37cqw;
  left: 31.5cqw;
  z-index: 1;
}
.l-3 {
  --w: 25cqw;
  left: 72cqw;
}
.shelf {
  position: relative;
  height: 3.2cqw;
  margin: 0 -4cqw;
  border-radius: 2px;
  background-color: #dcc29a;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0.12)),
    url('/assets/frames/natural-h.webp');
  background-size:
    100% 100%,
    auto 100%;
  box-shadow:
    0 2px 2px rgba(20, 14, 8, 0.22),
    0 2.4cqw 3.6cqw -1cqw rgba(20, 14, 8, 0.4);
}

/* ---------- rooms ---------- */
.rooms {
  padding: 40px 0 72px;
}
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.room {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--paper-2);
}
.room img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.room-cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(246, 242, 234, 0.92);
  font-size: 14px;
  color: var(--muted);
  transition: background-color 0.2s;
}
.room-cap b {
  font-weight: 500;
  color: var(--ink);
}
.room:hover .room-cap {
  background: #fff;
}

/* ---------- steps ---------- */
.steps {
  padding: 40px 0 112px;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.steps-list li {
  padding: 32px 32px 28px;
  border-radius: 22px;
  background: var(--paper-2);
}
.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-light);
  font: 500 19px/1 var(--serif);
}
.steps-list h3 {
  font-size: 25px;
  margin-bottom: 8px;
}
.steps-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- footer ---------- */
.foot {
  background: var(--night);
  color: var(--cream);
  padding: 56px 0 48px;
}
.foot-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 40px;
}
.foot img {
  height: 40px;
  width: auto;
}
.foot p {
  margin: 0;
  color: rgba(236, 229, 216, 0.72);
  font-size: 15px;
}
.foot nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.foot nav a {
  text-decoration: none;
  color: var(--cream);
}
.foot nav a:hover {
  color: var(--gold-light);
}
.foot .copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 12px;
  border-top: 1px solid rgba(236, 229, 216, 0.12);
  font-size: 13px;
}

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .panel,
  .panel-tw {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 32px 44px;
  }
  /* the posters first, then the words */
  .panel .ledge {
    order: -1;
  }
  .ledge {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .top {
    padding: 16px 0;
  }
  .brand img {
    height: 36px;
  }
  .top nav {
    gap: 16px;
    font-size: 14px;
  }
  .hero {
    padding: 8px 0 64px;
  }
  .lead {
    font-size: 17px;
  }
  .ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .wall {
    border-radius: 20px;
  }
  .panel,
  .panel-tw {
    padding: 32px 20px 36px;
    border-radius: 22px;
  }
  .panel-logo {
    height: 42px;
    margin-bottom: 28px;
  }
  .panel .btn {
    width: 100%;
    justify-content: center;
  }
  .rooms-grid,
  .steps-list {
    grid-template-columns: 1fr;
  }
  .room {
    border-radius: 20px;
  }
  .steps-list li {
    padding: 24px 22px;
  }
  .foot-in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .top nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 13px;
  }
}
