/* GutterCactus.org — kraft paper, ink, sage, desert sky.
   Palette:
     --paper   #cfc1a4  kraft tan (illustration ground)
     --paper-2 #c4b493  deeper kraft
     --ink     #17140e  near-black ink
     --sage    #8ea982  prickly pear green
     --sage-d  #5f7a55  deep pad green
     --sky     #a9c4cb  dusty desert blue
     --sky-2   #c9dade  high pale sky
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #cfc1a4;
  --paper-2: #c4b493;
  --ink: #17140e;
  --sage: #8ea982;
  --sage-d: #5f7a55;
  --sky: #a9c4cb;
  --sky-2: #c9dade;
  --display: "Alfa Slab One", "Rockwell", serif;
  --body: "Bitter", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --frame: 3px solid var(--ink);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* kraft speckle */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }

/* ---------- top bar ---------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  color: var(--ink);
}

.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.wordmark .tld { opacity: 0.7; }

.topbar-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  padding: clamp(4.5rem, 8vh, 6rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 5vh, 3.5rem);
}

.hero-grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 11fr 10fr; }
}

/* the artwork sits bare on the page: its kraft ground blends into ours */
.hero-art {
  margin: 0;
  mix-blend-mode: multiply;
  transform: rotate(0.4deg);
  will-change: transform;
}
.hero-art img { width: 100%; }

@media (max-width: 919px) {
  .hero { padding-top: 5rem; }
  .hero-grid { grid-template-rows: auto auto; }
  .hero-art { order: -1; max-width: 30rem; margin: 0 auto; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.hero .eyebrow { color: var(--sage-d); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.hero h1 .line { display: block; }

.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 34ch;
}

.scroll-cue {
  margin-top: 2.2rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}
.scroll-cue:hover { opacity: 1; }
.cue-arrow { display: inline-block; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* hero load reveal */
.reveal-line {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.eyebrow.reveal-line { animation-delay: 0.15s; }
h1 .reveal-line:nth-child(1) { animation-delay: 0.3s; }
h1 .reveal-line:nth-child(2) { animation-delay: 0.42s; }
h1 .reveal-line:nth-child(3) { animation-delay: 0.54s; }
.hero-sub.reveal-line { animation-delay: 0.8s; }
.scroll-cue.reveal-line { animation-delay: 1.05s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* opacity-only keyframe: transform stays free for the scroll drift */
.hero-art {
  opacity: 0;
  animation: art-in 1.1s ease 0.25s forwards;
}
@keyframes art-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- bands ---------- */

.band { padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 5vw, 4rem); }

.band-paper { background: transparent; }

.band-sky {
  background-color: var(--sky);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, var(--sky-2), var(--sky));
  border-top: var(--frame);
  border-bottom: var(--frame);
}

.band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.band .eyebrow { color: var(--sage-d); }

/* ---------- plaque (signature) ---------- */

.plaque {
  max-width: 44rem;
  margin: 0 auto;
  border: var(--frame);
  background: rgba(255, 252, 240, 0.55);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  position: relative;
  box-shadow: 6px 6px 0 rgba(23, 20, 14, 0.18);
}
/* overshooting ink corners, like the illustration's frame */
.plaque::before, .plaque::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.plaque::before { /* horizontal overshoot, top-left */
  top: -3px; left: -22px; width: 40px; height: 3px;
}
.plaque::after { /* vertical overshoot, bottom-right */
  bottom: -22px; right: 26px; width: 3px; height: 40px;
}

.plaque-head {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--sage-d);
}

.plaque-no {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 1.8rem;
}

.plaque-grid { display: grid; gap: 0.85rem; }
.plaque-grid > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(23, 20, 14, 0.25);
  padding-top: 0.85rem;
}
.plaque-grid dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.plaque-grid dd { font-size: 1rem; }
.plaque-grid .status {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--sage-d);
  letter-spacing: 0.04em;
}

/* ---------- story / gallery two-column ---------- */

.story, .gallery {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .story { grid-template-columns: 5fr 6fr; }
  .gallery { grid-template-columns: 5fr 6fr; }
}

.story-text p + p, .gallery-text p + p { margin-top: 1rem; }
.story-text .eyebrow, .gallery-text .eyebrow { margin-bottom: 0.8rem; }

/* hand-inked frame around images */
.framed {
  position: relative;
  border: var(--frame);
  background: #fff;
  padding: 10px;
  box-shadow: 8px 8px 0 rgba(23, 20, 14, 0.18);
  transform: rotate(-0.6deg);
}
.gallery .framed { transform: rotate(0.5deg); }
.framed::before, .framed::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.framed::before { top: -3px; right: -20px; width: 44px; height: 3px; }
.framed::after { bottom: 24px; left: -3px; width: 3px; height: 44px; bottom: -20px; }
.framed figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.2rem 0.1rem;
  color: rgba(23, 20, 14, 0.75);
}

/* ---------- doctrine ---------- */

.doctrine { max-width: 46rem; margin: 0 auto; }

.notes { list-style: none; counter-reset: note; margin-top: 2.2rem; }
.notes li {
  counter-increment: note;
  position: relative;
  padding: 0 0 1.8rem 4.2rem;
}
.notes li::before {
  content: counter(note, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--sage-d);
  min-width: 3.2rem;
}
.notes li + li { border-top: 1px solid rgba(23, 20, 14, 0.2); padding-top: 1.8rem; }
.notes li + li::before { top: 1.85rem; }
.notes h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.credo {
  margin-top: 3.5rem;
  text-align: center;
  border-top: var(--frame);
  padding-top: 3rem;
}
.credo-big {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-style: italic;
  max-width: 36ch;
  margin: 0 auto 1.2rem;
}
.credo-punch {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  line-height: 1.05;
  color: var(--sage-d);
  margin-bottom: 1.4rem;
}
.credo-small {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------- coming soon ---------- */

.soon { max-width: 46rem; margin: 0 auto; text-align: center; }
.soon-sub { max-width: 44ch; margin: 0 auto; }

.soon-row {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.soon-btn {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: var(--frame);
  padding: 0.8rem 1.5rem;
  background: rgba(255, 252, 240, 0.4);
  color: rgba(23, 20, 14, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: not-allowed;
  box-shadow: 4px 4px 0 rgba(23, 20, 14, 0.12);
  user-select: none;
}
.soon-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

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

.footer {
  border-top: var(--frame);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 2.6rem 1.2rem 2.8rem;
}
.footer-line { font-size: 1.05rem; font-style: italic; margin-bottom: 0.8rem; }
.footer-fine {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.framed.reveal.is-in { transform: rotate(-0.6deg); }
.gallery .framed.reveal.is-in { transform: rotate(0.5deg); }

/* keyboard focus */
a:focus-visible {
  outline: 3px solid var(--sage-d);
  outline-offset: 3px;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-line, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .framed.reveal, .framed.reveal.is-in { transform: rotate(-0.6deg); }
  .cue-arrow { animation: none; }
  .hero-art { opacity: 1; animation: none; transform: rotate(0.4deg) !important; }
}

/* small screens */
@media (max-width: 560px) {
  .topbar-note { display: none; }
  .plaque-grid > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .notes li { padding-left: 3rem; }
}
