/* =====================================================================
   gur.al — wabi-sabi imperfect ceramic
   Palette:
     Kiln Cream       #f5efe6   (background)
     Earth Umber      #3b2f2a   (primary text)
     Celadon Green    #7ea886   (primary accent)
     Terracotta Blush #c47d5a   (secondary accent)
     Gold Kintsugi    #c4a44e   (special emphasis)
     Ash Gray         #9b9389   (secondary text)
     Slip White       #ece5d8   (alternate background)
   Typography:
     Display: "Playfair Display", serif (700)
     Body:    "Lora", serif (400)
     Korean:  "Nanum Myeongjo", serif (400)
     Inter:   used as utility/eyebrow sans (per design seed)
   ===================================================================== */

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

:root {
    --kiln-cream: #f5efe6;
    --earth-umber: #3b2f2a;
    --celadon: #7ea886;
    --terracotta: #c47d5a;
    --gold: #c4a44e;
    --ash: #9b9389;
    --slip: #ece5d8;

    --col-narrow: 480px;
    --col-text: 620px;
    --col-wide: 840px;
    --col-max: 720px;

    --font-display: "Playfair Display", "Lora", Georgia, serif;
    --font-body: "Lora", Georgia, "Times New Roman", serif;
    --font-korean: "Nanum Myeongjo", "Lora", serif;
    --font-eyebrow: "Inter", system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--kiln-cream);
    color: var(--earth-umber);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.85;
    overflow-x: hidden;
    position: relative;
}

/* ---------------------------------------------------------------------
   Grain texture overlay — full page
   --------------------------------------------------------------------- */
.grain-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* All real content sits above the grain layer */
.hero,
section,
footer,
.wavy-divider {
    position: relative;
    z-index: 2;
}

/* ---------------------------------------------------------------------
   Typography utilities
   --------------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--earth-umber);
    line-height: 1.18;
    letter-spacing: 0.005em;
}

p { margin: 0 0 1.1em; }
em { font-style: italic; color: var(--terracotta); }

a {
    color: var(--celadon);
    text-decoration: none;
    border-bottom: 1px solid rgba(126, 168, 134, 0.4);
    transition: color 600ms ease, border-color 600ms ease;
}
a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.korean-caption {
    font-family: var(--font-korean);
    font-size: 15px;
    color: var(--ash);
    letter-spacing: 0.18em;
    text-align: center;
    margin-bottom: 1.6rem;
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.4rem;
    letter-spacing: -0.005em;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: var(--celadon);
    margin: 1.4rem auto 0;
    opacity: 0.7;
}

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    background:
        radial-gradient(circle at 20% 18%, rgba(196, 164, 78, 0.08), transparent 55%),
        radial-gradient(circle at 80% 82%, rgba(126, 168, 134, 0.07), transparent 60%),
        var(--kiln-cream);
}

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

.hero-eyebrow {
    font-family: var(--font-korean);
    font-size: 14px;
    color: var(--ash);
    letter-spacing: 0.7em;
    margin-bottom: 2.4rem;
    padding-left: 0.7em; /* visually re-center after letter-spacing */
}

.calligraphy {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    margin: 0 auto 2.6rem;
}

.calligraphy .stroke {
    stroke: var(--earth-umber);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.calligraphy .stroke.dot {
    stroke: none;
    fill: var(--earth-umber);
    opacity: 0;
    transition: opacity 400ms ease;
}
.calligraphy .stroke.flourish {
    stroke: var(--terracotta);
    opacity: 0.85;
}

.calligraphy .kintsugi-crack {
    stroke: var(--gold);
    fill: none;
    opacity: 0;
    stroke-linecap: round;
}

.hero-tagline {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--earth-umber);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 520px;
    margin: 0 auto 2.6rem;
    opacity: 0.88;
}

.hero-scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-eyebrow);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash);
    margin-top: 2rem;
}
.hero-scroll-cue svg path {
    stroke: var(--ash);
    fill: none;
    stroke-linecap: round;
    animation: drift 3.2s ease-in-out infinite;
}
@keyframes drift {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------------------------------------------------------------------
   Wavy divider
   --------------------------------------------------------------------- */
.wavy-divider {
    width: 50%;
    max-width: 600px;
    margin: 5rem auto;
    opacity: 0.4;
}
.wavy-divider svg {
    width: 100%;
    height: 36px;
    display: block;
}
.wavy-divider svg path {
    stroke: var(--ash);
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------------------------------------------------------------
   Content sections — variable column widths (organic flow)
   --------------------------------------------------------------------- */
.content-section {
    margin: 5rem auto;
    padding: 0 1.5rem;
    position: relative;
}

.content-section.narrow { max-width: var(--col-text); }     /* 620px */
.content-section.wide   { max-width: var(--col-wide); }     /* 840px */

.prose p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 1.2em;
}

.dropcap {
    font-family: var(--font-display);
    float: left;
    font-size: 4.6rem;
    line-height: 0.92;
    padding: 0.32rem 0.6rem 0 0;
    color: var(--terracotta);
    font-weight: 700;
}

.caption-line {
    font-family: var(--font-korean);
    text-align: center;
    color: var(--ash);
    font-size: 15px;
    line-height: 1.8;
    max-width: 540px;
    margin: 1.5rem auto 0;
    font-style: normal;
}

/* ---------------------------------------------------------------------
   Swatch row (clay textures, simulated with CSS gradients)
   --------------------------------------------------------------------- */
.swatch-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin: 1rem auto 2rem;
}

.swatch {
    width: 140px;
    height: 100px;
    position: relative;
    border-radius: 2px;
    box-shadow:
        inset 0 0 30px rgba(59, 47, 42, 0.18),
        0 1px 0 rgba(59, 47, 42, 0.04);
    overflow: hidden;
    transition: transform 800ms ease;
}

.swatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16), transparent 38%),
        radial-gradient(circle at 70% 80%, rgba(0,0,0,0.18), transparent 50%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.swatch figcaption {
    position: absolute;
    bottom: -1.6rem;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-korean);
    font-size: 12px;
    color: var(--ash);
    letter-spacing: 0.1em;
}

.swatch-celadon {
    background:
        repeating-linear-gradient(120deg,
            rgba(255,255,255,0.04) 0 2px,
            transparent 2px 6px),
        linear-gradient(135deg, #8fb89a, #6e9779);
}
.swatch-stoneware {
    background:
        radial-gradient(circle at 30% 40%, #5a4a40 0 1px, transparent 1px 4px),
        radial-gradient(circle at 70% 60%, #4a3c33 0 1px, transparent 1px 4px),
        linear-gradient(135deg, #8a7666, #6b5a4d);
    background-size: 12px 12px, 16px 16px, 100% 100%;
}
.swatch-crackled {
    background:
        linear-gradient(135deg, #ede4d2, #d8cdb6);
    position: relative;
}
.swatch-crackled::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 49%, rgba(59,47,42,0.35) 49.5%, transparent 50%) 0 0/22px 22px,
        linear-gradient(-30deg, transparent 49%, rgba(59,47,42,0.25) 49.5%, transparent 50%) 0 0/30px 30px,
        linear-gradient(70deg, transparent 49%, rgba(59,47,42,0.25) 49.5%, transparent 50%) 0 0/26px 26px;
    mix-blend-mode: multiply;
    opacity: 0.55;
}
.swatch-slip {
    background:
        radial-gradient(circle at 40% 30%, rgba(255,255,255,0.7), transparent 50%),
        linear-gradient(135deg, #ece5d8, #d6cdbb);
}

.swatch-row { padding-bottom: 2rem; } /* room for captions */

/* ---------------------------------------------------------------------
   Story section with floating margin element
   --------------------------------------------------------------------- */
.story { position: relative; }

.margin-float {
    position: absolute;
    left: -160px;
    top: 4rem;
    width: 110px;
    text-align: center;
    color: var(--ash);
}
.margin-float svg {
    width: 80px;
    height: 120px;
}
.margin-float svg path,
.margin-float svg ellipse {
    stroke: var(--ash);
    fill: none;
}
.margin-float .margin-label {
    display: block;
    font-family: var(--font-korean);
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-top: 0.6rem;
    color: var(--ash);
}

@media (max-width: 1080px) {
    .margin-float {
        position: static;
        margin: 0 auto 2rem;
        opacity: 0.7;
    }
}

/* ---------------------------------------------------------------------
   Pull quote
   --------------------------------------------------------------------- */
.pullquote-section {
    max-width: var(--col-narrow);
    margin: 6rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.pullquote {
    border-left: 2px solid var(--terracotta);
    border-right: 2px solid var(--terracotta);
    padding: 2rem 1.5rem;
    margin: 0;
    position: relative;
}

.pullquote p[lang="ko"] {
    font-family: var(--font-korean);
    font-size: 1.45rem;
    line-height: 1.7;
    color: var(--earth-umber);
    margin-bottom: 1rem;
    font-weight: 400;
}

.pullquote .translation {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--ash);
    margin-bottom: 1.4rem;
}

.pullquote cite {
    font-family: var(--font-eyebrow);
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--terracotta);
    text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   Kintsugi vessel grid
   --------------------------------------------------------------------- */
.kintsugi-section { margin-top: 6rem; }

.kintsugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.6rem;
    margin-top: 3rem;
}

.vessel-card {
    background: var(--slip);
    padding: 2rem 1.6rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: transform 1000ms ease, box-shadow 1000ms ease;
}

.vessel-card::before,
.vessel-card::after {
    /* Kintsugi crack lines along block edges, drawn-in on hover */
    content: "";
    position: absolute;
    background: var(--gold);
    opacity: 0;
    transition: opacity 800ms ease-in-out, transform 800ms ease-in-out;
}
.vessel-card::before {
    top: 0; left: 8%; right: 8%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left center;
}
.vessel-card::after {
    bottom: 0; left: 8%; right: 8%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right center;
}

.vessel-card:hover::before,
.vessel-card.is-hover::before {
    opacity: 0.35;
    transform: scaleX(1);
}
.vessel-card:hover::after,
.vessel-card.is-hover::after {
    opacity: 0.35;
    transform: scaleX(1);
}

.vessel-illustration {
    position: relative;
    margin-bottom: 1.4rem;
    display: flex;
    justify-content: center;
}
.vessel-illustration svg {
    width: 140px;
    height: 140px;
    display: block;
}
.vessel-illustration svg path,
.vessel-illustration svg ellipse {
    stroke: var(--earth-umber);
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kintsugi-overlay {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 140px;
    height: 140px;
    pointer-events: none;
}
.kintsugi-overlay path {
    stroke: var(--gold);
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    transition: stroke-dashoffset 1200ms ease-in-out;
}
.vessel-card:hover .kintsugi-overlay path,
.vessel-card.is-hover .kintsugi-overlay path {
    stroke-dashoffset: 0;
}

.vessel-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.vessel-meta {
    font-family: var(--font-eyebrow);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ash);
    margin-bottom: 0.9rem;
}

.vessel-text {
    font-size: 15.5px;
    line-height: 1.78;
    color: var(--earth-umber);
}

/* ---------------------------------------------------------------------
   Journal entries
   --------------------------------------------------------------------- */
.journal-entry {
    padding: 1.8rem 0.4rem;
    border-bottom: 1px solid rgba(155, 147, 137, 0.25);
    position: relative;
    transition: background 800ms ease;
}
.journal-entry:last-child { border-bottom: none; }

.journal-entry header { margin-bottom: 0.8rem; }

.journal-date {
    display: inline-block;
    font-family: var(--font-korean);
    font-size: 13px;
    color: var(--celadon);
    letter-spacing: 0.18em;
    margin-bottom: 0.5rem;
}

.journal-entry h3 {
    font-size: 1.55rem;
    line-height: 1.3;
}

.journal-entry::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: var(--gold);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 800ms ease-in-out, transform 800ms ease-in-out;
}
.journal-entry:hover::before,
.journal-entry.is-hover::before {
    opacity: 0.4;
    transform: scaleX(0.92);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, var(--slip), #d8cdb8);
    color: var(--earth-umber);
    padding: 4rem 1.5rem 3rem;
    margin-top: 6rem;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: rgba(196, 164, 78, 0.4);
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-col p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--earth-umber);
    letter-spacing: 0.04em;
    font-weight: 300;
    margin-bottom: 0.4rem;
}

.footer-label {
    font-family: var(--font-eyebrow);
    font-size: 10px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-fine {
    margin-top: 1.4rem;
    font-size: 11px;
    color: var(--ash);
    letter-spacing: 0.12em;
}

.dot-sep { color: var(--celadon); margin: 0 0.25em; }

.footer-crack {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    width: 100%;
    height: 14px;
    opacity: 0.55;
}
.footer-crack path {
    stroke: var(--gold);
    fill: none;
    stroke-linecap: round;
}

/* ---------------------------------------------------------------------
   Fade-in scroll reveal — slow and gentle
   --------------------------------------------------------------------- */
[data-fade] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1000ms ease, transform 1000ms ease;
}
[data-fade].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero data-fade elements: reveal in order with a small stagger */
.hero [data-fade] {
    opacity: 0;
    transform: translateY(8px);
    animation: heroFade 1400ms ease forwards;
}
.hero .hero-eyebrow   { animation-delay: 200ms; }
.hero .hero-tagline   { animation-delay: 5800ms; }
.hero .hero-scroll-cue{ animation-delay: 6400ms; }

@keyframes heroFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    [data-fade], .hero [data-fade] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .calligraphy .stroke,
    .calligraphy .stroke.dot,
    .calligraphy .kintsugi-crack {
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
    }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
    .swatch { width: 44%; }
    .pullquote p[lang="ko"] { font-size: 1.2rem; }
    .vessel-illustration svg,
    .kintsugi-overlay { width: 110px; height: 110px; }
}
