/* Molio Valanda — keramikos studija.
   Sandara — ../bendra/pasakotojas.css; čia tik šriftai, spalvos ir tai,
   kas savita puodui.

   Šviesi ir šilta: nedegto molio, lino ir šlapio akmens tonai. Akcentas —
   seladono glazūra, ta pati, kuri herojuje dengia vazą. */

@font-face { font-family: 'Castoro'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Castoro-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Castoro'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Castoro-400-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../../assets/fonts/SchibstedGrotesk-400-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../../assets/fonts/SchibstedGrotesk-400-600-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 {
  color-scheme: light;

  --fonas: #efe7dc;
  --fonas-2: #e5dacb;
  --tekstas: #2a211b;          /* ant --fonas ≈ 13,4:1 */
  --tekstas-2: #67594c;        /* ≈ 5,9:1 */
  --tekstas-3: #a89a8b;        /* tik dekoracijai */
  --akcentas: #3d6b66;         /* seladonas, ≈ 5,4:1 */
  --ant-akcento: #f6f1ea;
  --linija: rgba(42, 33, 27, .14);
  --virsus-fonas: rgba(239, 231, 220, .84);
  --milzinas-sp: 42, 33, 27;

  --serif: 'Castoro', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Instrument Serif yra vieno storio — antraštės jo ir laikosi. */
h2, h3 { font-weight: 400; }
h2 { letter-spacing: -.015em; }
.milzinas { letter-spacing: -.02em; }

.zenklas__puodas { fill: none; stroke: var(--akcentas); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Statinė vaza (be WebGL / be JS). */
.a__ratas { fill: #c9c3ba; }
.a__vaza { fill: #4f7f7a; }
.a__pedele { fill: #b98a6c; }


/* ================= Savas maketas =================
   Eskizų sąsiuvinis studijoje: popieriaus grūdėtumas ir pieštuku nupiešti
   indai fone, tekstai priklijuoti lapeliais su lipnia juostele, numeriai —
   antspaudai. Degimas rodomas krosnies skale, kainos — ant kabančių
   kartoninių etikečių, o pabaigoje — artimiausi užsiėmimai su vietomis. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' fill='none' stroke='rgb(42,33,27)' stroke-opacity='.11' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M92 300 C64 250 74 204 112 184 C100 164 102 140 110 128 L150 128 C158 140 160 164 148 184 C186 204 196 250 168 300 Z'/%3E%3Cpath d='M104 128 h52 M96 200 q34 8 68 0 M84 250 q46 10 92 0'/%3E%3Cpath d='M352 92 h76 v58 q0 30 -38 30 q-38 0 -38 -30 z M428 108 q28 0 28 22 q0 22 -28 22'/%3E%3Cpath d='M372 76 q6 -12 0 -24 M392 76 q6 -12 0 -24 M412 76 q6 -12 0 -24'/%3E%3Cpath d='M396 452 q70 78 140 0 z M404 452 q62 16 124 0'/%3E%3Cpath d='M160 520 m-34 0 a34 34 0 1 0 68 0 a26 26 0 1 0 -52 0 a18 18 0 1 0 36 0 a10 10 0 1 0 -20 0'/%3E%3Cpath d='M560 250 c-30 -50 10 -90 40 -60 c20 20 -10 60 -40 60 z M560 250 l-14 26'/%3E%3Cpath d='M260 380 l18 -18 M270 392 l26 -26 M284 402 l20 -20'/%3E%3C/svg%3E");
  background-size: 220px 220px, 640px 640px;
  opacity: .9;
}

/* ---------- pradžia: didelė antraštė kairėje, vaza dešinėje ---------- */
.ekranas { min-height: calc(100svh - 52px); justify-content: space-between; padding-top: 128px; }
.ekranas__virsus { position: relative; z-index: 2; }
.antraste {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(76px, 10.5vw, 184px);
  line-height: .86;
  letter-spacing: -.03em;
  color: var(--tekstas);
}
.antraste em { font-style: italic; color: var(--akcentas); }
.ekranas__apie { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 34ch; }

/* ---------- lapeliai su lipnia juostele ---------- */
.sekcija__tekstas::before {
  inset: -42px -46px;
  background: #fbf6ee;
  -webkit-mask-image: none;
  mask-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(42, 33, 27, .08), 0 22px 40px -22px rgba(42, 33, 27, .45);
  transform: rotate(-1.1deg);
}
.sekcija--desine .sekcija__tekstas::before { transform: rotate(.9deg); }
.sekcija__tekstas::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -58px;
  width: 128px;
  height: 32px;
  margin-left: -64px;
  background: rgba(222, 205, 168, .78);
  box-shadow: 0 1px 2px rgba(42, 33, 27, .12);
  transform: rotate(-3deg);
  pointer-events: none;
}
.sekcija--desine .sekcija__tekstas::after { transform: rotate(4deg); }
/* Kainų lapeliui fono nereikia — kainos turi savo etiketes. */
#uzsiemimai .sekcija__tekstas::before, #uzsiemimai .sekcija__tekstas::after,
#registracija .sekcija__tekstas::after { display: none; }

/* Numeris — antspaudas. */
.nr {
  display: inline-block;
  padding: 7px 14px 6px;
  border: 1.5px solid var(--akcentas);
  border-radius: 999px;
  transform: rotate(-2deg);
}

/* ---------- krosnies skalė ---------- */
.krosnis { max-width: 460px; margin-top: 30px; padding: 64px 0 64px; }
.krosnis__skale {
  position: relative;
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #cfc6bb 0%, #c98a52 45%, #e0662c 72%, #ffb347 88%, #fff3c4 100%);
  box-shadow: inset 0 0 0 1px rgba(42, 33, 27, .12);
}
.krosnis__zyma {
  position: absolute;
  bottom: 22px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tekstas-2);
}
.krosnis__zyma b { font: 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--tekstas); }
.krosnis__zyma::after { content: ""; width: 2px; height: 12px; margin-top: 4px; background: var(--tekstas); }
.krosnis__zyma--1 { left: 73%; }
.krosnis__zyma--2 { left: 95.4%; }
/* Biskvitas — po skale, glazūra — virš jos: arti esantys užrašai nesusiduria. */
.krosnis__zyma--1 { bottom: auto; top: 22px; }
.krosnis__zyma--1::after { order: -1; margin: 0 0 4px; }
/* Glazūros užrašas eina į kairę nuo žymos — kitaip išlįstų už krašto. */
.krosnis__zyma--2 { justify-items: end; transform: translateX(calc(-100% + 1px)); }

/* ---------- kainos ant kartoninių etikečių ---------- */
.lapeliai { list-style: none; display: grid; gap: 18px; margin: 34px 0 0; padding: 0; }
.lapelis {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px 20px 46px;
  background: #d8bb92;
  color: #2a211b;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  box-shadow: inset 0 0 0 1px rgba(42, 33, 27, .08);
}
.lapelis:nth-child(2) { background: #e2c8a2; }
.lapelis.matosi:nth-child(2) { transform: rotate(.8deg); }
.lapelis.matosi:nth-child(3) { transform: rotate(-.6deg); }
/* Skylutė virvelei. */
.lapelis::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--fonas);
  box-shadow: inset 0 0 0 2px rgba(42, 33, 27, .35);
}
.lapelis__kaina { margin: 0; font: 400 30px/1 var(--serif); }
.lapelis h3 { color: #2a211b; margin-bottom: 4px; }
.lapelis div p { margin: 0; font-size: 15px; color: #4f4136; }

/* ---------- artimiausi užsiėmimai ---------- */
.sesijos { max-width: 620px; margin: 0 auto 36px; text-align: left; }
.sesijos[hidden] { display: none; }
.sesijos__pav { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--akcentas); text-align: center; margin-bottom: 18px; }
.sesijos__sarasas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sesija {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 20px;
  align-items: center;
  padding: 14px 16px 14px 20px;
  background: #fbf6ee;
  border-radius: 2px;
  box-shadow: 0 10px 22px -16px rgba(42, 33, 27, .5);
}
.sesija__data { margin: 0; font: 400 24px/1.1 var(--serif); }
.sesija__data small { display: block; margin-top: 4px; font: 400 14px/1.2 var(--sans); color: var(--tekstas-2); }
.sesija__vietos { display: flex; gap: 5px; }
.sesija__vietos i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--akcentas); }
.sesija__vietos i.uzimta { background: var(--akcentas); }
.sesija button {
  padding: 11px 16px;
  border: 1px solid var(--akcentas);
  border-radius: 999px;
  background: transparent;
  color: var(--tekstas);
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.sesija button:hover, .sesija button[aria-pressed="true"] { background: var(--akcentas); color: var(--ant-akcento); }
.sesija button:disabled { border-color: var(--linija); color: var(--tekstas-2); cursor: default; background: transparent; }
.sesija button:focus-visible { outline: 2px solid var(--akcentas); outline-offset: 3px; }
.sesijos__pranesimas { min-height: 1.5em; margin: 16px 0 0; text-align: center; color: var(--tekstas); }

@media (max-width: 860px) {
  .ekranas { min-height: 100svh; padding-top: 100px; }
  .antraste { font-size: clamp(62px, 17vw, 96px); }
  .ekranas__virsus::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20px calc(var(--krastas) * -1 + 2px);
    background: var(--virsus-fonas);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  }
  /* Pasuktas lapelis kampais neturi išlįsti už ekrano. */
  .sekcija__tekstas::before { inset: -30px -6px; transform: rotate(-.5deg); }
  .sekcija--desine .sekcija__tekstas::before { transform: rotate(.5deg); }
  .lapelis { grid-template-columns: 1fr; gap: 6px; padding: 18px 18px 18px 44px; }
  .sesija { grid-template-columns: minmax(0, 1fr) auto; }
  .sesija__data { font-size: 20px; }
  .sesija__vietos { grid-column: 1; grid-row: 2; }
  .sesija button { grid-column: 2; grid-row: 1 / span 2; }
}
