/* Graphite surfaces lit by the accent of each section. */
:root {
  --bg: #1a211f;
  --ink: #e7ebe5;
  --muted: #bdc8bf;
  --line: #53635a;
  --accent: #b8d0c0;
  --accent-rgb: 184, 208, 192;
  --surface: #24332e;
  --deep: #111715;
  --shadow: 0 24px 54px -22px #080b0ad9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

.theme-words {
  --bg: #242127;
  --deep: #18151c;
  --accent: #d0bdcf;
  --accent-rgb: 208, 189, 207;
  --surface: #332a36;
  --line: #655967;
}

.theme-photos {
  --bg: #1a2422;
  --accent: #b5d3c4;
  --accent-rgb: 181, 211, 196;
}

.theme-sound {
  --bg: #20252c;
  --deep: #15191f;
  --accent: #bacbe0;
  --accent-rgb: 186, 203, 224;
  --surface: #2a3542;
  --line: #536173;
}

body[class^="theme-"] {
  background:
    radial-gradient(ellipse 68rem 36rem at 82% 2rem, rgba(var(--accent-rgb), .14), transparent 76%),
    radial-gradient(ellipse 42rem 34rem at 0 37rem, rgba(var(--accent-rgb), .07), transparent 82%),
    linear-gradient(150deg, var(--bg), var(--deep) 75%);
  min-height: 100vh;
}

body > header {
  background: color-mix(in srgb, var(--deep) 88%, transparent);
  border-color: rgba(var(--accent-rgb), .23);
  box-shadow: 0 12px 32px -20px #090d0c;
}

.brand, .hero h1, .essay-heading h1, .texts-heading h1, .gallery-intro h1,
.music > h1, .featured-essay h2, .about .large, .section-head h2 {
  font-family: var(--serif);
}

body > footer { background: var(--deep); }

.brand, .eyebrow, .tiny, .number, nav [aria-current], nav a:hover,
footer a:hover, .essay-body h2, .gallery-intro h1, .music > h1, .texts-heading h1 {
  color: var(--accent);
}

nav [aria-current] {
  text-decoration: underline;
  text-underline-offset: .45em;
  text-decoration-thickness: 1px;
}

.language-control select, .comment-action, .comment-login,
.comments input, .comments textarea, .comment-item, .comment-confirm {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button, .comment-submit {
  background: var(--accent);
  color: var(--deep);
  border-color: var(--accent);
  border-radius: 4px;
}

.button:hover, .comment-submit:hover {
  background: #e1e9e1;
}

a:focus-visible, summary:focus-visible, button:focus-visible,
.photo:focus-visible, .language-control select:focus-visible, .comments :focus-visible {
  outline-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 9rem) 1.4rem;
  row-gap: .75rem;
}

.hero .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
.hero h1 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(3.45rem, 6.5vw, 7.5rem);
  letter-spacing: -.05em;
  margin: .28em 0 .2em;
}
html:is([lang="de"], [lang="en"], [lang="fr"], [lang="it"]) .hero h1 {
  font-size: clamp(3.15rem, 5.55vw, 6.4rem);
  overflow-wrap: anywhere;
}
.hero h1 em { color: var(--accent); }
.hero-bottom { grid-column: 1; grid-row: 3; gap: 1rem; align-self: start; align-items: center; }
.hero-bottom .intro { max-width: 28rem; }
.hero .round {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .6);
}
.hero .round:hover { background: rgba(var(--accent-rgb), .1); }
.hero .strip { grid-column: 1 / -1; grid-row: 4; margin-top: 2.5rem; }

.hero-art {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(10px, 1.35vw, 20px);
  border: 1px solid rgba(var(--accent-rgb), .44);
  border-radius: 7rem 1.25rem 4rem 1.25rem;
  background: linear-gradient(145deg, #43564b, var(--deep) 72%);
  box-shadow: 0 32px 65px -20px #050906, inset 0 1px rgba(var(--accent-rgb), .22);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 6rem .7rem 3.2rem .7rem;
  box-shadow: 0 0 0 1px #090e0b, 0 12px 22px -5px #090e0b;
}

.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(var(--accent-rgb), .26);
  border-radius: inherit;
  pointer-events: none;
}

.hero-art::before { inset: -11px 11px 11px -11px; }
.hero-art::after { inset: 15px -15px -15px 15px; border-color: rgba(var(--accent-rgb), .18); }

.featured-essay {
  background: linear-gradient(118deg, rgba(var(--accent-rgb), .085), transparent 75%);
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}

.featured-essay:nth-child(even) {
  background: linear-gradient(118deg, rgba(var(--accent-rgb), .038), transparent 70%);
}

.featured-essay h2 { letter-spacing: -.035em; text-wrap: balance; }

.about {
  background: radial-gradient(ellipse at 80% 0, #37473d, transparent 76%), #222e29;
  box-shadow: inset 0 1px rgba(var(--accent-rgb), .11);
}

.path, .path.dark {
  background: linear-gradient(140deg, #34483e, #1a2722);
  border: 1px solid #526a5e;
  border-radius: 1.5rem .45rem 1.5rem .45rem;
  box-shadow: var(--shadow);
}

.path.dark {
  background: linear-gradient(140deg, #353141, #231f2b);
  border-color: #61576b;
}

.essay-heading::before, .texts-heading::before, .gallery-intro::before, .music::before {
  content: "";
  display: block;
  width: 76px;
  height: 12px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb), .32);
}
.essay-heading::before, .music::before { margin-bottom: 1.5rem; }
.music > h1 {
  font: 400 clamp(3rem, 7vw, 5.25rem)/1.05 var(--serif);
  margin: 0 0 .9em;
}

.photo-card {
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), .26);
  border-radius: 1.1rem .4rem 1.1rem .4rem;
  box-shadow: var(--shadow);
  padding: clamp(.8rem, 1.4vw, 1.3rem);
}
.photo-media { background: var(--deep); }
.photo-like { background: var(--deep); border-color: var(--line); }

.track {
  position: relative;
  padding: clamp(1rem, 3.5vw, 2.25rem);
  background: linear-gradient(140deg, var(--surface), var(--deep));
  border: 1px solid rgba(var(--accent-rgb), .34);
  border-radius: 1.5rem .5rem 1.5rem .5rem;
  box-shadow: var(--shadow);
}
.track::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1rem, 3.5vw, 2.25rem);
  width: 64px;
  border-top: 1px solid var(--accent);
}
.track h2 { color: var(--accent); }
.track img { border: 1px solid rgba(var(--accent-rgb), .28); }
.track-lyrics > summary, .track-comments > summary { color: var(--accent); }
.track-lyrics > summary:hover, .track-comments > summary:hover {
  background: rgba(var(--accent-rgb), .09);
}

@media (max-width: 900px) {
  .hero { column-gap: 2rem; }
  .hero-art::after { inset: 10px -10px -10px 10px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .85rem;
  }
  .hero .eyebrow, .hero h1, .hero-bottom, .hero-art, .hero .strip {
    grid-column: 1;
    grid-row: auto;
  }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; font-size: clamp(2.7rem, 11vw, 4.2rem); margin: 0; }
  html:is([lang="de"], [lang="en"], [lang="fr"], [lang="it"]) .hero h1 {
    font-size: clamp(2.55rem, 9.5vw, 4.2rem);
  }
  .hero-bottom { order: 3; }
  .hero-art {
    order: 4;
    width: min(92%, 440px);
    margin-top: 1rem;
    border-radius: 4.25rem .8rem 2.8rem .8rem;
  }
  .hero-art img { border-radius: 3.65rem .5rem 2.35rem .5rem; }
  .hero .strip { order: 5; margin-top: 1.5rem; }
}

@media (max-width: 650px) {
  .track img { max-width: none; }
}

/* Shared gutters and reading order for the essay collections. */
.theme-home main > section:not(.comments),
.theme-words .texts-heading,
.theme-words .essay-grid {
  padding-inline: clamp(1rem, 5vw, 5rem);
}

.hero {
  padding-bottom: clamp(3rem, 7vw, 6rem);
  perspective: 1100px;
  perspective-origin: 72% 45%;
}

.hero:not(:has(.hero-art)) {
  grid-template-columns: minmax(0, 1fr);
}

.hero-art {
  transform: rotateY(-11deg) rotateX(3deg);
  transform-style: preserve-3d;
}

.hero-art::before { transform: translateZ(-20px); }
.hero-art::after { transform: translateZ(-43px); }
.hero-art img { transform: translateZ(14px); }

.hero-bottom { justify-content: flex-start; }
.hero-bottom .intro { max-width: min(75%, 28rem); }

.essay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.theme-words .essay-grid { padding-bottom: clamp(3rem, 6vw, 6rem); }
.essay-collection .section-head { align-items: center; }

.essay-grid .featured-essay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  background: linear-gradient(140deg, var(--surface), var(--deep) 93%);
  border: 1px solid rgba(var(--accent-rgb), .29);
  border-radius: 1.4rem .45rem 1.4rem .45rem;
  box-shadow: inset 0 1px rgba(var(--accent-rgb), .12), var(--shadow);
}

.essay-grid .featured-essay h2 {
  margin-block: .25rem .55rem;
  font-size: clamp(1.65rem, 2.65vw, 2.65rem);
  line-height: 1.17;
  overflow-wrap: anywhere;
}

.essay-grid .featured-essay p { margin: 0 0 1.35rem; }
.essay-grid .featured-essay .button { margin-top: auto; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-art { transition: transform 500ms ease; }
  .hero-art:hover { transform: rotateY(-4deg) rotateX(0) translateZ(18px); }
}

@media (max-width: 760px) {
  .hero { perspective-origin: center; }
  .hero-art { transform: rotateY(-7deg) rotateX(2deg); }
  .essay-grid { grid-template-columns: minmax(0, 1fr); }
  .essay-collection .section-head { align-items: flex-start; }
  body > header nav { gap: 0 clamp(.85rem, 3vw, 1.5rem); }
  body > header nav .yt { display: inline-flex; border: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art { transition: none; }
}

/* Sharp silver letterforms over a continuous twilight landscape. */
:root {
  --serif: Georgia, "Times New Roman", serif;
  --surface-light: #616365;
  --surface-edge: #222325;
  --raised-surface:
    inset 0 1px 0 #e1e2e345,
    inset 1px 0 0 #dfdfe01c,
    0 4px 0 #191a1b,
    0 6px 0 #131415,
    0 15px 24px -9px #09090a;
}

body[class^="theme-"] {
  --bg: #202b3a;
  --deep: #121b2a;
  --ink: #eef1ee;
  --muted: #c8d1d6;
  --line: #5e6e7c;
  --accent: #e1e7e6;
  --accent-rgb: 225, 231, 230;
  --surface: #273648;
  background: var(--deep);
  isolation: isolate;
}

body[class^="theme-"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #111c2adc, #19253876 65%, #121a2b42),
    linear-gradient(0deg, #0e231978, transparent 60%),
    url("/laka-pod-gwiazdami.webp") center / cover no-repeat,
    linear-gradient(155deg, #303d58, #1e423d);
}

body[class^="theme-"] :is(h1, h2, h3, .brand) {
  color: #eef2f1;
  font-family: var(--serif);
  font-weight: 700;
  text-shadow: 1px 1px #8c9599, 2px 2px #576168, 3px 3px #202a33;
}

.hero h1 { line-height: 1.08; }
.hero h1 em { color: inherit; font-weight: inherit; }

@supports (background-clip: text) {
  body[class^="theme-"] :is(h1, h2, h3, .brand) {
    width: fit-content;
    max-width: 100%;
    background: linear-gradient(180deg, #ffffff 10%, #edf1f0 48%, #bac4c8 100%);
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter:
      drop-shadow(0 -1px 0 #f9faf9)
      drop-shadow(1px 1px 0 #737e86)
      drop-shadow(1px 1px 0 #414b55)
      drop-shadow(1px 1px 0 #17202a);
  }
}

@media (max-width: 760px) {
  body[class^="theme-"]::before { background-position: center, center, 62% center, center; }
}

body[class^="theme-"] > header {
  border-bottom-color: #727375;
  background: linear-gradient(161deg, #34455a, #141d2cf2 90%);
  box-shadow: var(--raised-surface);
  position: relative;
  z-index: 2;
}

body[class^="theme-"] header nav a {
  text-shadow: 0 1px var(--deep), 0 2px 2px #101011;
}

.hero-art {
  background: linear-gradient(145deg, #606164, #262729 65%);
  border-color: #797a7c;
}

body[class^="theme-"] :is(.essay-grid .featured-essay, .photo-card, .track, .path, .comment-item, main > form) {
  background: linear-gradient(145deg, #3a4a60f2, #263545f5 37%, #172834f7);
  border: 1px solid #626365;
  box-shadow: var(--raised-surface);
}

body[class^="theme-"] main > form {
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: 1.1rem .45rem 1.1rem .45rem;
}

body[class^="theme-"] :is(.essay-collection, .about, .closing, footer) {
  background: linear-gradient(145deg, #233348e8, #172b2be8);
  border-top: 1px solid #555658;
  box-shadow: inset 0 1px #e5e5e529;
}

body[class^="theme-"] :is(.button, .comment-submit, .essay-read-button, main > form button) {
  background: linear-gradient(175deg, #eeedeb, #c1c1be 78%, #9a9a99);
  color: #1d1e20;
  border: 1px solid #dbdbd8;
  box-shadow: inset 0 1px #ffffff99, 0 3px #6b6c6d, 0 5px #272829, 0 9px 16px -5px #0f0f10cc;
}

body[class^="theme-"] :is(.button, .comment-submit, .essay-read-button, main > form button):hover {
  background: #e0e0dd;
}

body[class^="theme-"] :is(.button, .comment-submit, .essay-read-button, main > form button):active {
  transform: translateY(2px);
  box-shadow: inset 0 1px #ffffff50, 0 1px #626365;
}

body[class^="theme-"] :is(select, input:not([type="checkbox"]):not([type="radio"]), textarea) {
  box-shadow: inset 0 2px 5px #0e0e0f80, 0 1px #e5e5e529;
}

@media (forced-colors: active) {
  body[class^="theme-"] :is(h1, h2, h3, .brand) {
    background: none;
    color: CanvasText;
    filter: none;
    text-shadow: none;
  }
}
