/* julienpalliere.com — rebuilt as a static site.
   Colours and fonts come from the old site's settings; the flicker effects,
   waterfall, card hover and two-column text are Julien's own custom CSS. */

@import url("/assets/fonts/fonts.css");
@font-face { font-family: "neuelight"; src: url("/assets/fonts/neue-regrade-light.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "neueregular"; src: url("/assets/fonts/neue-regrade-regular.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #151815;
  --red: #f2363c;
  --red-hot: #ff464a;
  --white: #ffffff;
  --cream: #f1e9da;
  --ink: #3e3f39;
  --heading: "neuelight", "Barlow", system-ui, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --meta: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 58px);
  --text: clamp(1.05rem, 0.95rem + 0.35vw, 1.21rem);
  --h2: clamp(1.5rem, 1.2rem + 0.9vw, 2.05rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--red);
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--text);
  line-height: 1.5;
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 300; letter-spacing: .1em; line-height: 1.34; }
strong, b { font-weight: 600; }
h1 strong, h2 strong, h3 strong { font-weight: inherit; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--cream); color: var(--bg); padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 2.4rem;
  padding: 1.6rem var(--gutter);
}
.logo img { width: 49px; height: 50px; }
.page-home .logo { pointer-events: none; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-family: var(--mono); font-size: 1.21rem; line-height: 1.5;
  color: var(--red); text-decoration: none;
}
.site-nav a:hover { animation: text-flicker .5s linear reverse; color: var(--ink); }
.menu-toggle { display: none; }

/* ---------- home: hero ---------- */
.hero {
  min-height: 550px;
  max-width: 880px; margin: 0 auto;
  padding: 220px var(--gutter) 80px;
  display: flex; align-items: flex-start; gap: 2rem;
}
.hero h2 { flex: 1; margin: 0; font-size: var(--h2); color: var(--red); }
.hero .icon-wrap { flex: 0 0 156px; padding-top: 70px; }

/* Julien's waterfall */
.icon-container { position: relative; width: 78px; height: auto; aspect-ratio: .89655172; overflow: hidden; margin: 80px auto 0; display: block; flex: 0 0 78px; }
.icon-container .line { position: absolute; top: 0; left: 0; width: 100%; height: 200%; overflow: hidden; animation: waterfall linear infinite; }
.icon-container .line img { width: 100%; height: auto; display: block; }
#line1 { animation-duration: 5s; } #line2 { animation-duration: 5.2s; } #line3 { animation-duration: 5.4s; }
#line4 { animation-duration: 5.6s; } #line5 { animation-duration: 5.8s; } #line6 { animation-duration: 5.5s; }
#line7 { animation-duration: 5.3s; } #line8 { animation-duration: 5.1s; } #line9 { animation-duration: 5.7s; }
@keyframes waterfall { 0% { top: -100%; } 45.5% { top: 0%; } 46% { top: -100%; } 90% { top: 0%; } 100% { top: -100%; } }
.icon-container:hover .line { animation-timing-function: steps(12, end); }

/* ---------- home: writing + music ---------- */
.work {
  max-width: 1440px; margin: 0 auto;
  padding: 30px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 880px) minmax(0, 323px);
  justify-content: space-between; gap: 3rem;
}
.work h2 { color: var(--white); font-size: var(--h2); margin: 0 0 .4rem; }
.music h2 { text-align: center; }

.carousel { position: relative; margin-bottom: 1.2rem; }
.carousel-controls { position: absolute; top: .3rem; right: 0; display: flex; gap: .6rem; }
.carousel-controls button {
  background: none; border: 0; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: .2rem .4rem;
}
.carousel-controls button:hover { animation: text-flicker .5s linear reverse; }
.carousel-track {
  list-style: none; margin: 0; padding: .6rem 0 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1rem) / 3); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  padding: .6rem 1rem; border-radius: 20px; opacity: .75;
  background: rgba(255, 234, 237, 0); color: var(--white);
  transition: opacity .5s, transform .5s, background-color .5s, border-radius .5s;
}
.card:hover { opacity: 1; animation: back-flicker2 linear .2s; background: rgba(255, 234, 237, .2); transform: scale(1.05); border-radius: 5px; }
.card .card-img img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 0 20px 0 20px; margin-bottom: .6rem; transition: border-radius .3s; }
.card .card-img:hover img { border-radius: 0; }
.card h3 { font-family: var(--body); font-size: clamp(1.3rem, 1rem + .9vw, 1.875rem); line-height: 1.2; letter-spacing: .01em; margin: 0 0 .5rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { animation: text-flicker .3s linear reverse; }
.card p { font-size: .875rem; line-height: 1.4; margin: 0 0 .6rem; }
.card .more { font-size: .875rem; text-decoration: none; }
.card:hover .more { animation: text-flicker .8s linear; }

/* music player */
.track {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 0;
  font-family: var(--meta); transition: all .5s;
}
.track .play {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .95); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: all .2s;
}
.track .icon { width: 0; height: 0; border-left: 11px solid var(--white); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.track.playing .icon { width: 11px; height: 13px; border: 0; margin: 0; border-left: 3px solid var(--white); border-right: 3px solid var(--white); }
.track-info { flex: 1; min-width: 0; }
.track .title { display: block; color: var(--white); font-size: .975rem; margin-bottom: .35rem; }
.track .bar { height: 2px; background: rgba(255, 255, 255, .25); cursor: pointer; }
.track .fill { height: 100%; width: 0; background: var(--white); }
.track .time { display: none; }
.track:hover .title { color: red; transition: all .6s; animation: text-flicker linear .5s; }
.track:hover .play { background-color: var(--red-hot); box-shadow: 20px 0 90px -5px red; }

/* ---------- home: clients ---------- */
.clients {
  max-width: 880px; margin: 0 auto; padding: 48px var(--gutter);
  display: flex; gap: 0; align-items: flex-start;
}
.shape.shape-half { flex: 0 0 156px; width: 156px; height: 147px; background: var(--red); border-radius: 73.5px; margin-right: -44px; }
.clients > div { flex: 1; min-width: 0; align-self: stretch; position: relative; }
.clients h2 { color: var(--white); font-size: var(--h2); margin: 1rem 0 0; }
.line { border: 0; border-top: 1px solid var(--red); width: 434px; max-width: 100%; margin: 14px 0 0; }

/* ---------- home: gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem;
  padding: 48px var(--gutter) 50px calc(var(--gutter) + 6vw);
}
.footer-left { display: flex; align-items: flex-start; gap: 10px; }
.btn-connect {
  display: grid; place-items: center; width: 212px; height: 68px;
  background: var(--red); color: var(--cream);
  font-family: var(--meta); font-size: 1rem; letter-spacing: .15em; text-decoration: none;
  transition: all .9s;
}
.btn-connect:hover { animation: back-flicker2 .3s linear reverse; background: var(--cream); color: #151815; }
.shape { display: block; width: 45px; height: 68px; fill: var(--red); }
.shape-rect { background: var(--red); }
.shape-pill { height: 28px; border-radius: 14px; background: var(--red); }
.footer-right { display: flex; align-items: center; gap: 1.5rem; }
.footer-right .line { width: 156px; margin: 0; }
.footer-right p { font-size: .89rem; margin: 0; }

/* ---------- articles ---------- */
.post { max-width: 1440px; margin: 0 auto; padding: 170px var(--gutter) 40px; }
.post-head { text-align: center; margin-bottom: 3rem; }
.post-head h1 { font-family: var(--body); color: var(--white); font-size: clamp(2rem, 1.2rem + 2.6vw, 3.31rem); line-height: 1.4; margin: 0 0 1rem; }
.post-meta { font-size: var(--text); margin: 0; }
.post-meta .sep { margin: 0 .6em; opacity: .7; }
.post-body h1, .post-body h2 { color: var(--red); }
.post-body h3, .post-body h4 { color: var(--white); }
.post-body h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.post-body h2 { font-size: var(--h2); }
.post-body h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.7rem); }
.post-body a { color: var(--white); }
.post-body p:empty { min-height: 1em; }
.post-body blockquote { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.63rem); line-height: 1.5; margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--red); }
.post-body hr { border: 0; border-top: 1px solid var(--red); margin: 2rem 0; }
.post-body .spacer { height: 1.5rem; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body figure { margin: 1.5rem 0; }
.post-body figure img { border-radius: 0 20px 0 20px; transition: border-radius .3s; }
.post-body figure img:hover { border-radius: 0; }
.post-body figcaption { font-size: .89rem; text-align: right; margin-top: .5rem; }
/* Squarespace spans count out of 12 across the page, so a floated image's width is
   its span divided by the span of the column it sits in. */
.post-body { --col: 12; }
.post-body figure.float-right { float: right; width: calc(var(--span, 4) / var(--col) * 100%); margin: .3rem 0 1rem 1.5rem; }
.post-body figure.float-left { float: left; width: calc(var(--span, 4) / var(--col) * 100%); margin: .3rem 1.5rem 1rem 0; }
.post-body .row { display: flex; gap: 1.5rem; clear: both; }
.post-body .row::after { content: ""; display: table; clear: both; }
.post-body .col { flex: 1 1 calc(var(--span) / 12 * 100%); min-width: 0; }
.post-body::after { content: ""; display: table; clear: both; }
.tc-white { color: var(--white); }
.tc-cream { color: var(--cream); }
.tc-red { color: var(--red); }
.small { font-size: .85em; }
.large { font-size: 1.3em; }

/* Julien's two-column text */
.textcolumn { text-align: justify; column-count: 2; column-gap: 2.5rem; }
.textcolumn h1 { font-weight: bold; }
.textcolumn h3 { text-decoration: underline; }
.textcolumn p { word-break: break-word; font-size: 1.2rem; }

.pager { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(242, 54, 60, .4); }
.pager a { text-decoration: none; color: var(--white); max-width: 45%; }
.pager a span { display: block; font-size: .8rem; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.pager .next { text-align: right; margin-left: auto; }
.pager a:hover { animation: text-flicker .5s linear reverse; }

/* ---------- journal index ---------- */
.journal { max-width: 1100px; margin: 0 auto; padding: 170px var(--gutter) 40px; }
.page-title { color: var(--white); text-align: center; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.31rem); margin: 0 0 3rem; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem 2rem; }
.entry .thumb img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 0 20px 0 20px; margin-bottom: 1rem; }
.entry .post-meta { font-size: .85rem; }
.entry h2 { font-family: var(--body); font-size: 1.6rem; letter-spacing: .01em; margin: .5rem 0; }
.entry h2 a { color: var(--white); text-decoration: none; }
.entry h2 a:hover { animation: text-flicker .3s linear reverse; }
.entry .excerpt { font-size: .95rem; margin: 0 0 .6rem; }
.entry .more { font-size: .9rem; color: var(--white); text-decoration: none; }

/* ---------- contact ---------- */
.contact { max-width: 880px; margin: 0 auto; padding: 200px var(--gutter) 80px; display: flex; gap: 3rem; align-items: flex-start; }
.contact .shape-half { margin: 0; }
.contact-form, .form-success { flex: 1; }
.contact-form label { display: block; margin-bottom: 1.6rem; color: var(--red); }
.contact-form .req { opacity: .7; font-size: .85em; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .4rem;
  background: transparent; color: var(--white); font: inherit;
  border: 0; border-bottom: 1px solid var(--red); padding: .6rem 0; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--white); }
.contact-form button {
  width: 100%; height: 60px; border: 0; cursor: pointer;
  background: var(--red); color: var(--cream); font-family: var(--meta); font-size: 1rem; letter-spacing: .15em;
}
.contact-form button:hover { background: var(--cream); color: #151815; animation: back-flicker2 .3s linear reverse; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5em; color: var(--white); }
.form-success p { color: var(--white); font-size: 1.3rem; }

.notfound { padding: 220px var(--gutter) 120px; text-align: center; }
.notfound h1 { color: var(--white); }
.notfound a { color: var(--white); }

/* ---------- Julien's flicker effects ---------- */
@keyframes back-flicker2 {
  0% { background-color: rgba(0, 0, 0, 0); } 10% { background-color: rgba(255, 234, 237, .2); }
  23% { background-color: rgba(0, 0, 0, 0); } 48% { background-color: rgba(255, 234, 237, .2); }
  78% { background-color: rgba(0, 0, 0, 0); } 93% { background-color: rgba(255, 234, 237, .2); }
}
@keyframes text-flicker {
  0% { text-shadow: rgba(255, 234, 237, .2) -10px 10px 50px; opacity: .5; }
  18% { opacity: .5; }
  20% { opacity: 1; transform: skew(0deg); }
  31% { opacity: 1; transform: skew(40deg); }
  33% { opacity: .5; transform: skew(0deg); }
  45% { opacity: .5; }
  48% { opacity: 1; transform: skewX(0deg); }
  55% { opacity: 1; transform: skewX(-80deg); }
  60% { opacity: .5; transform: skewX(0deg); }
  84% { opacity: .5; }
  94% { opacity: 1; }
  98% { text-shadow: rgba(255, 234, 237, .2) -10px 10px 50px; opacity: .5; }
}
.site-nav a, .carousel-controls button, .card h3 a, .pager a, .entry h2 a { display: inline-block; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 1rem) / 2); }
  .row { flex-direction: column; }
  .post-body .row { flex-direction: column; gap: 0; }
}
@media (max-width: 640px) {
  .site-header { justify-content: space-between; }
  .site-header .logo { order: 2; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; order: 1; position: relative; z-index: 31;
  }
  .menu-toggle span:not(.sr) { display: block; height: 1px; background: var(--red); }
  .site-nav {
    position: fixed; inset: 0; z-index: 30; background: #fff;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav a { font-size: 1.6rem; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .hero { flex-direction: column; padding-top: 150px; min-height: 0; }
  .icon-container { margin: 0 auto; }
  .carousel-track { grid-auto-columns: 85%; }
  .clients { flex-direction: column; }
  .shape.shape-half { width: 120px; height: 113px; flex-basis: auto; margin: 0 0 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .textcolumn { column-count: 1; }
  .post-body figure.float-right, .post-body figure.float-left { float: none; width: 100%; margin: 1.5rem 0; }
  .contact { flex-direction: column; padding-top: 150px; }
  .site-footer { padding-left: var(--gutter); }
  .footer-left { flex-wrap: wrap; }
  .btn-connect { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .icon-container .line { top: 0; }
}
