/* Szeroki Dunaj — bookbinding workshop. Serif headings (Baskerville), warm leather palette. */
:root {
  --paper: #f4ecdd;
  --paper-2: #ede2cd;
  --ink: #2b241c;
  --ink-soft: #5c5245;
  --leather: #5a3d29;
  --leather-deep: #40291b;
  --gold: #a3823c;
  --line: #d8c9ad;
  --teal: #2c5a54;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(90, 61, 41, .025) 0 2px, transparent 2px 5px);
  color: var(--ink);
  font-family: Lato, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leather); }

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 3px double var(--line);
  background: var(--paper-2);
}
.brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--leather-deep);
  text-decoration: none;
}
.brand span { color: var(--gold); }
header.top nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
header.top nav a {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: .15rem;
  border-bottom: 2px solid transparent;
}
header.top nav a:hover { color: var(--leather); border-bottom-color: var(--gold); }
header.top nav a[aria-current="page"] { color: var(--leather-deep); border-bottom-color: var(--leather); }

main { max-width: 62rem; margin: 0 auto; padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 3rem; }
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; color: var(--leather-deep); line-height: 1.25; }
h1 { font-size: 2rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 42rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--gold);
  margin: 0 0 .4rem;
}
.btn {
  display: inline-block;
  background: var(--leather);
  color: var(--paper);
  padding: .55rem 1.3rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
}
.btn:hover { background: var(--leather-deep); color: var(--paper); }

.hero { display: flex; gap: 2rem; align-items: center; }
.hero-text { flex: 1 1 24rem; }
.hero h1 { font-size: 2.4rem; margin-bottom: .8rem; }
.hero-book { flex: 0 0 13rem; width: 13rem; height: auto; filter: drop-shadow(0 10px 14px rgba(64, 41, 27, .25)); }

figure.banner { margin: 2.4rem calc(-1 * clamp(1rem, 4vw, 2.5rem)); }
figure.banner img, figure.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 8px 22px rgba(64, 41, 27, .28);
}
figure.banner figcaption, figure.photo figcaption {
  font-size: .88rem;
  color: var(--ink-soft);
  padding: .5rem .2rem 0;
  font-style: italic;
}

section.shelf { margin-top: 2.6rem; }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.4rem; margin-top: 1rem; }
.items figure { margin: 0; text-align: left; }
.items svg { width: 100%; height: auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; }
.items figcaption { padding: .5rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.items figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.items figcaption span { font-size: .85rem; }
.note { font-size: .9rem; color: var(--ink-soft); font-style: italic; }

.split { display: flex; gap: 2.2rem; align-items: flex-start; margin-top: 1.6rem; }
.split > div { flex: 1 1 18rem; }
.split > img { flex: 1 1 20rem; width: 50%; height: auto; border-radius: 3px; box-shadow: 0 8px 22px rgba(64, 41, 27, .28); }
@media (max-width: 47rem) {
  .hero, .split { flex-direction: column; }
  .hero-book { align-self: flex-end; }
  .split > img { width: 100%; }
}

ul.posts { list-style: none; margin: 1rem 0; padding: 0; }
ul.posts li { padding: .8rem 0; border-top: 1px solid var(--line); }
ul.posts time { display: block; font-size: .82rem; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }
ul.posts a { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.08rem; text-decoration: none; color: var(--leather-deep); }
ul.posts a:hover { text-decoration: underline; }
ul.posts p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .95rem; }

ul.plain, ol.plain { padding-left: 1.2rem; }
ul.plain li, ol.plain li { margin: .45rem 0; }
dl.hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.4rem; margin: 0; }
dl.hours dt { font-weight: 700; color: var(--leather-deep); }
dl.hours dd { margin: 0; }

table.schedule { border-collapse: collapse; width: 100%; margin: 1.2rem 0; }
table.schedule th, table.schedule td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.schedule thead th { text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; color: var(--ink-soft); }
table.schedule small { color: var(--ink-soft); }

article.post { max-width: 44rem; }
article.post > time { font-size: .82rem; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }
article.post h1 { margin-top: .3rem; }
article.post p { margin: 1rem 0; }
div.more { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: .8rem; border-top: 3px double var(--line); font-size: .95rem; }

form.signin { max-width: 26rem; margin: 1.6rem 0; display: flex; flex-direction: column; gap: .45rem; }
form.signin label { font-weight: 700; font-size: .92rem; color: var(--leather-deep); }
form.signin input {
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf7;
  font: inherit;
  color: var(--ink);
}
form.signin input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
form.signin .btn { margin-top: .7rem; border: 0; cursor: pointer; font: inherit; }
.signin-error { color: #8a2f22; min-height: 1.3em; margin: .2rem 0 0; font-size: .95rem; }
small.field-error { display: block; color: #8a2f22; font-size: .85rem; margin-top: .15rem; }

footer {
  border-top: 3px double var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  text-align: center;
  font-size: .9rem;
  padding: 1.1rem 1rem 1.4rem;
}
footer p { margin: .25rem 0; }

@font-face { font-family: "Libre Baskerville"; src: url(/type/baskerville-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url(/type/baskerville-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Lato; src: url(/type/lato-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(/type/lato-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
