/* muhan.studio - wabi-sabi single-column meditation */

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

:root {
  --clay-earth: #E8E0D0;
  --stone-warm: #D8D0C0;
  --ash-brown: #6A6058;
  --earth-mid: #8A8070;
  --kiln-dark: #3A3830;
  --glaze-cream: #F0E8D8;
  --crack-line: rgba(58, 56, 48, 0.1);
  --rule-faint: rgba(138, 128, 112, 0.2);
}

html { scroll-behavior: smooth; }

body {
  background: var(--clay-earth);
  color: var(--ash-brown);
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.9;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ceramic crackle texture overlay - fixed, very subtle */
.crackle-texture {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 48px);
  background: var(--clay-earth);
  z-index: 2;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 38vw, 420px);
  height: clamp(280px, 38vw, 420px);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.logotype {
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 200;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--kiln-dark);
  letter-spacing: 0.02em;
  margin-bottom: 1.6em;
  opacity: 0;
  transition: opacity 2000ms ease;
  z-index: 1;
}

.logotype.is-visible { opacity: 1; }

.tagline {
  position: relative;
  font-family: "Josefin Sans", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--earth-mid);
  opacity: 0;
  transition: opacity 2000ms ease 800ms;
  z-index: 1;
}

.tagline.is-visible { opacity: 1; }

.hero-mark {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 2000ms ease 1600ms;
}

.hero-mark.is-visible { opacity: 0.5; }

.hero-mark svg {
  width: 28px;
  height: 28px;
  animation: gentle-drift 6s ease-in-out infinite;
}

.hero-mark-label {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--earth-mid);
}

@keyframes gentle-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== COLUMN ===== */
.column {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 48px);
}

.section {
  margin-bottom: 18vh;
  padding-top: 4vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1200ms ease, transform 1200ms ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-divider {
  width: 100%;
  border-top: 1px solid var(--rule-faint);
  margin-bottom: 4em;
}

.annotation {
  display: block;
  font-family: "Josefin Sans", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: clamp(10px, 0.7vw, 12px);
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--earth-mid);
  margin-bottom: 2.4em;
}

.heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 200;
  font-size: clamp(24px, 3.4vw, 38px);
  color: var(--kiln-dark);
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 2em;
}

.body {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.9;
  color: var(--ash-brown);
  margin-bottom: 3em;
}

.body:last-child { margin-bottom: 0; }

.circle-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 4em 0 0;
  opacity: 0.55;
}

.circle-mark-thin { opacity: 0.4; width: 56px; height: 56px; }
.circle-mark-large { width: 96px; height: 96px; opacity: 0.5; }

/* ===== WORKS LIST ===== */
.works-list {
  list-style: none;
  margin: 0 0 3em;
  padding: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 4em 1fr;
  column-gap: 1.4em;
  row-gap: 0.2em;
  padding: 1.6em 0;
  border-top: 1px solid var(--rule-faint);
}

.work-item:last-child { border-bottom: 1px solid var(--rule-faint); }

.work-year {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--earth-mid);
  padding-top: 0.35em;
}

.work-title {
  grid-column: 2;
  grid-row: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--kiln-dark);
  line-height: 1.4;
}

.work-medium {
  grid-column: 2;
  grid-row: 2;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--earth-mid);
  line-height: 1.6;
}

/* ===== CONTACT LINES ===== */
.contact-line {
  display: grid;
  grid-template-columns: 6em 1fr;
  column-gap: 1.4em;
  padding: 0.9em 0;
  border-top: 1px solid var(--rule-faint);
  margin: 0;
}

.contact-line:last-of-type { border-bottom: 1px solid var(--rule-faint); }

.contact-key {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--earth-mid);
  align-self: center;
}

.contact-value {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 16px);
  color: var(--ash-brown);
  align-self: center;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 12vh clamp(24px, 6vw, 48px) 8vh;
  text-align: center;
  background: var(--stone-warm);
  border-top: 1px solid var(--rule-faint);
}

.footer-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-bottom: 2.4em;
  opacity: 0.5;
}

.footer-mark svg { width: 100%; height: 100%; }

.footer-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--kiln-dark);
  letter-spacing: 0.04em;
  margin-bottom: 1em;
}

.footer-fine {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--earth-mid);
}

/* Footer wraps full-width even though inner column is constrained */
body > .footer {
  max-width: none;
  background: var(--stone-warm);
}

body > .footer > * {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

body > .footer > .footer-text,
body > .footer > .footer-fine,
body > .footer > .footer-mark {
  display: block;
}

body > .footer > .footer-mark {
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 560px) {
  .work-item {
    grid-template-columns: 3.5em 1fr;
    column-gap: 1em;
  }
  .contact-line {
    grid-template-columns: 5em 1fr;
    column-gap: 1em;
  }
  .section { margin-bottom: 14vh; }
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .logotype,
  .tagline,
  .hero-mark { transition: none !important; }
  .hero-mark svg { animation: none !important; }
}
