/* ===========================================================================
   Layout: indie-grunge (2008) - a late-2000s band site: a grainy textured
   page, the banner picture full-bleed with a torn bottom edge, every part a
   panel with torn top and bottom edges in one centred column, stamped
   typewriter headings with a rough double print, a bold centred menu.
   =========================================================================== */

:root {
  --s-container: 50rem;
  --s-section-y: var(--s-space-7);
  --s-header-h: 3.5rem;
  --sx-torn: polygon(0 1.2%, 4% 0, 9% 1%, 15% .2%, 22% 1.3%, 30% .3%, 37% 1.1%, 45% 0, 53% 1.2%, 60% .4%, 68% 1.3%, 76% .2%, 83% 1.1%, 91% .3%, 100% 1%, 100% 98.8%, 95% 100%, 88% 99%, 80% 99.9%, 72% 98.9%, 64% 99.8%, 56% 98.7%, 48% 99.9%, 40% 99%, 32% 100%, 24% 98.8%, 16% 99.8%, 8% 98.9%, 0 99.7%);
}
body {
  background-color: var(--s-bg-sunken);
  background-image:
    repeating-radial-gradient(circle at 17% 32%, color-mix(in srgb, var(--s-fg) 5%, transparent) 0 .05rem, transparent .05rem .21rem),
    repeating-radial-gradient(circle at 71% 64%, color-mix(in srgb, var(--s-bg) 40%, transparent) 0 .07rem, transparent .07rem .29rem);
  background-size: auto;
}
/* the header is drawn on the page's own colours, so its text follows them
   (the header colours picked for a header bar would not be readable on it) */
.s-head { --s-head-bg: var(--s-bg); --s-head-fg: var(--s-fg); }
.s-head { position: static; flex-direction: column; gap: var(--s-space-2); padding-block: var(--s-space-5); background: transparent; border: 0; text-align: center; }
.s-head__brand { font-size: var(--s-text-3xl); letter-spacing: .06em; text-transform: uppercase; text-shadow: .04em .03em 0 color-mix(in srgb, var(--s-accent) 50%, transparent); white-space: normal; }
.s-head__nav { justify-content: center; margin: 0; }
.s-head__link { font-family: var(--s-font-display); font-size: var(--s-text-sm); letter-spacing: .2em; text-transform: uppercase; border-radius: 0; }
.s-head__link:hover, .s-head__link[aria-current="true"] { background: transparent; color: var(--s-accent); text-decoration: line-through; }

.s-main { width: min(100% - 2 * var(--s-space-3), calc(var(--s-container) + 2 * var(--s-gutter))); margin: 0 auto var(--s-space-8); display: grid; gap: var(--s-space-6); }
.s-main > [data-section],
.s-main > [data-section]:nth-of-type(even) {
  padding: calc(var(--s-section-y) + var(--s-space-3)) clamp(var(--s-space-4), 5vw, var(--s-space-7));
  background: var(--s-bg-elev);
  clip-path: var(--sx-torn);
}
.s-main > [data-section] > * { max-width: none; }
.s-main > .s-footer, .s-main > .s-footer:nth-of-type(even) { background: transparent; clip-path: none; text-align: center; }
.s-section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.s-section-head h2 { font-size: var(--s-text-3xl); letter-spacing: .08em; text-transform: uppercase; text-shadow: .05em .04em 0 color-mix(in srgb, var(--s-accent) 45%, transparent); transform: rotate(-1deg); }
.s-main .s-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .12em; border-width: var(--s-border-w-strong); }
.s-main :is(.s-card, .s-panel) { border-radius: 0; }
.s-main .s-media { border-radius: 0; box-shadow: var(--s-shadow-2); }

/* the banner, full-bleed with a torn edge */
.s-main > .s-hero, .s-main > .s-hero:nth-of-type(even) {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: min(70vh, 38rem);
  padding: 0;
  background: var(--s-bg-elev);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 93% 100%, 85% 97%, 76% 99.5%, 66% 96.5%, 55% 99.8%, 44% 96.8%, 33% 99.6%, 22% 97%, 11% 99.9%, 0 97%);
}
.s-main .s-hero__inner { max-width: calc(var(--s-container) + 2 * var(--s-gutter)); }
.s-main .s-hero__name { font-size: var(--s-text-4xl); letter-spacing: .05em; text-transform: uppercase; text-shadow: .05em .04em 0 color-mix(in srgb, var(--s-accent) 45%, transparent); }
.s-main .s-hero:has(.s-hero__bg) .s-hero__text { border-radius: 0; }
