/* Forsaken Art — forsakenart.net
   Layout and type reproduce the Wix original, measured off the live site:
   Fahkwang for the wordmark and headings, a Helvetica stack for body copy
   (what Wix actually served), Nunito Sans standing in for Wix's licensed
   Avenir LT Light in the nav and footer. */

:root {
  --bg:        #000;
  --ink:       #fff;
  --ink-dim:   #b9b9b9;
  --ink-faint: #7d7d7d;
  --rule:      #242424;

  --body:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --head:  'Fahkwang', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ui:    'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --col-text:  460px;   /* left column of every two-up row, as Wix had it */
  --col-media: 630px;
  --gap:       68px;   /* measured between the two columns on the live site */
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.875;          /* 28.125px, matching the original */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { color: #fff; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: #111; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------- header */

.site-header {
  padding: calc(env(safe-area-inset-top, 0px) + 2.5rem) var(--gutter) 1.5rem;
  text-align: center;
}

.wordmark {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2.5rem, 1rem + 6.5vw, 5.5rem);   /* 88px at desktop */
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}

/* Wix laid the nav out as three equal 236px cells spanning 708px, each with
   its label centred — hence the wide, even spacing. */
.site-header nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 708px;
  margin: .25rem auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.site-header nav a {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-header nav a { position: relative; }

/* The link itself is only ~23px tall, below the 24px WCAG 2.2 AA target size
   and far below a comfortable thumb. This grows the tap area to 44px without
   shifting the underline away from the text. */
.site-header nav a::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.site-header nav a:hover { border-bottom-color: var(--ink-faint); }
/* Wix showed no current-page marker; aria-current stays for screen readers. */

/* ------------------------------------------------------------ main */

main { padding: 0 var(--gutter); }

.logo-block { display: flex; justify-content: center; padding: 2.1rem 0 0; }
.logo-block .logo { width: 280px; mix-blend-mode: screen; }

p { margin: 0 0 1.75em; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- headings */

.page-title {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2rem, 1rem + 3.5vw, 3.5rem);    /* 56px at desktop */
  line-height: 1.25;
  text-align: center;
  margin: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.about h1,
.split-text h2 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

.about h1 { text-align: center; margin-bottom: 1.75rem; }

.split-text h2 { text-align: left; margin-bottom: 45px; }
.split-text h2 a { text-decoration: underline; text-underline-offset: .2em; }

/* ------------------------------------------------------ about block */

.about { padding: clamp(.75rem, 2vw, 1.25rem) 0 clamp(2rem, 5vw, 3.5rem); }

.about-body {
  max-width: 792px;
  margin-inline: auto;
  text-align: justify;
}

/* -------------------------------------------------- two-up sections */

.split {
  display: grid;
  grid-template-columns: var(--col-text) minmax(0, var(--col-media));
  gap: var(--gap);
  justify-content: center;
  align-items: start;
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

/* the home page pairs the text with the 350px-wide Bandcamp player */
.split--player { --col-media: 367px; --gap: 95px; }

.split-media .shot { width: 100%; }

.lead { font-size: 18px; line-height: 1.75; margin-bottom: 0; }

/* --------------------------------- single-column page (Fracture) --- */

.doc > p,
.doc > blockquote {
  max-width: 920px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.75;
}

/* Hypnagogia's subtitle, directly under the page title. */
.doc .lead {
  max-width: 920px;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  font-size: 18px;
  line-height: 1.75;
  text-align: center;
  font-style: italic;
  color: var(--ink-dim);
}

/* Without this an attribution inherits the 18px of `.doc > p`. */
.doc > .attrib {
  max-width: 920px;
  margin-inline: auto;
  font-size: 13px;
}

.shot-center {
  margin: clamp(2rem, 5vw, 3rem) auto;
  max-width: 600px;
}

/* ---------------------------------------------------------- quotes */

blockquote {
  margin: 0 0 1.75em;
  padding-left: 40px;          /* Wix indented these by 40px */
  font-style: italic;
  color: var(--ink-dim);
}
blockquote p { margin-bottom: .9em; }
blockquote p:last-of-type { margin-bottom: 0; }

blockquote cite,
.attrib {
  display: block;
  margin-top: .75em;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-faint);
  text-align: right;
}
.attrib { margin-bottom: 1.75em; }

/* -------------------------------------------------- embedded players */

.embed iframe { display: block; border: 0; }

.embed--bandcamp iframe { width: 350px; max-width: 100%; height: 470px; }

.embed--spotify {
  max-width: 600px;
  margin: clamp(2rem, 5vw, 3rem) auto;
}
.embed--spotify iframe { width: 100%; height: 352px; border-radius: 12px; }

/* ---------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter)
           calc(env(safe-area-inset-bottom, 0px) + 3rem);
  text-align: center;
}

.social { display: flex; justify-content: center; gap: 5px; margin-bottom: 2rem; }
.social a { display: inline-flex; }
.social img { width: 69px; height: 69px; }

.copy {
  margin: 0;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 14px;
  color: var(--ink);
}

/* ------------------------------------------------------- responsive */

@media (max-width: 1140px) {
  .split {
    grid-template-columns: minmax(0, var(--col-media));
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .split-text { max-width: var(--col-media); }
  .split--player { --col-media: 560px; }
}

@media (max-width: 560px) {
  .site-header nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
}

@media (max-width: 700px) {
  .about-body { text-align: left; }
  blockquote { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .doc > p, .doc > blockquote { font-size: 16px; }
  .doc .lead { font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
