html { scroll-behavior: smooth; }
body { background: #edf8f9; color: #0c2b30; font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }

.font-display { font-family: 'Fraunces', serif; font-optical-sizing: auto; }
.display-xl { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144, "SOFT" 50; line-height: 0.92; letter-spacing: -0.035em; }
.display-lg { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 96, "SOFT" 30; line-height: 0.98; letter-spacing: -0.025em; }
.display-md { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 48; line-height: 1.02; letter-spacing: -0.018em; }

.hero-sun {
  background: radial-gradient(ellipse at 78% 42%, #a8e6ea 0%, #4EC4CE 18%, #2BAAB5 34%, #1a8a95 52%, rgba(26,138,149,0) 72%);
  filter: blur(0.5px);
}

.eyebrow { letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; font-size: 11px; }

.btn-primary { background: #0e3d46; color: #edf8f9; transition: all .25s ease; }
.btn-primary:hover { background: #2BAAB5; color: #0c2b30; transform: translateY(-1px); }
.btn-outline { border: 1px solid #0c2b30; color: #0c2b30; transition: all .25s ease; }
.btn-outline:hover { background: #0c2b30; color: #edf8f9; }
.btn-sun { background: #2BAAB5; color: #0c2b30; transition: all .25s ease; }
.btn-sun:hover { background: #0c2b30; color: #edf8f9; }

.underline-hover { position: relative; }
.underline-hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.underline-hover:hover::after { transform: scaleX(1); }

.marquee { display: flex; overflow: hidden; gap: 0; }
.marquee-track { display: flex; gap: 4rem; animation: slide 45s linear infinite; flex-shrink: 0; padding-right: 4rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 2px; background: #0c2b3022; border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #2BAAB5; border: 3px solid #edf8f9; box-shadow: 0 1px 6px rgba(0,0,0,0.18); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #2BAAB5; border: 3px solid #edf8f9; cursor: grab;
}

.reveal { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .25s; }
.reveal.d3 { animation-delay: .4s; }
.reveal.d4 { animation-delay: .55s; }
.reveal.d5 { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

details[open] summary .plus { transform: rotate(45deg); }
.plus { transition: transform .3s ease; }
summary::-webkit-details-marker { display: none; }

.lift { transition: transform .4s ease, box-shadow .4s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(14, 61, 70, 0.3); }

.proj-card img { transition: transform .9s ease; }
.proj-card:hover img { transform: scale(1.06); }

.dashed-divider {
  background-image: linear-gradient(to right, #0c2b3033 50%, transparent 50%);
  background-size: 10px 1px; background-repeat: repeat-x; height: 1px;
}

/* ── Ghost blog content ─────────────────────────────────── */
.gh-content { max-width: 740px; margin: 0 auto; padding: 4rem 1.5rem; line-height: 1.75; font-size: 1.05rem; }
.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 {
  font-family: 'Fraunces', serif; margin-top: 2.5rem; margin-bottom: 1rem; color: #0c2b30;
}
.gh-content h1 { font-size: 2.4rem; }
.gh-content h2 { font-size: 1.9rem; }
.gh-content h3 { font-size: 1.5rem; }
.gh-content p { margin-bottom: 1.5rem; }
.gh-content a { color: #2BAAB5; text-decoration: underline; }
.gh-content a:hover { color: #1a8a95; }
.gh-content img { max-width: 100%; border-radius: 4px; margin: 2rem 0; }
.gh-content blockquote {
  border-left: 3px solid #2BAAB5; margin: 2rem 0; padding: 1rem 1.5rem;
  background: #f5fcfd; font-style: italic; font-family: 'Fraunces', serif; font-size: 1.2rem;
}
.gh-content pre { background: #0e3d46; color: #edf8f9; padding: 1.5rem; border-radius: 4px; overflow-x: auto; }
.gh-content code { background: #c2e4e833; color: #1a8a95; padding: .15em .4em; border-radius: 3px; font-size: .9em; }
.gh-content pre code { background: none; color: inherit; padding: 0; }
.gh-content ul, .gh-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.gh-content li { margin-bottom: .4rem; }
.gh-content hr { border: none; border-top: 1px solid #c2e4e8; margin: 3rem 0; }
.gh-content figure { margin: 2rem 0; }
.gh-content figcaption { text-align: center; font-size: .85rem; color: #5b7c82; margin-top: .5rem; }

/* ── Ghost Koenig editor width helpers ──────────────────── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image { max-width: 100%; }
.kg-image-card { margin: 2rem 0; }
.kg-image-card img { width: 100%; }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: .5rem; margin-bottom: .5rem; }
.kg-gallery-image { flex: 1 1 auto; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { border: 1px solid #c2e4e8; border-radius: 4px; overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { flex: 1; padding: 1rem; }
.kg-bookmark-title { font-weight: 700; color: #0c2b30; }
.kg-bookmark-description { font-size: .875rem; color: #5b7c82; margin-top: .25rem; }
.kg-bookmark-thumbnail img { width: 160px; height: 100%; object-fit: cover; }

.kg-callout-card { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: 4px; background: #f5fcfd; border-left: 3px solid #2BAAB5; }
.kg-callout-emoji { font-size: 1.5rem; line-height: 1.6; }

.kg-video-card video { width: 100%; }
.kg-audio-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #f5fcfd; border-radius: 4px; }

.kg-toggle-card { border: 1px solid #c2e4e8; border-radius: 4px; padding: 1rem 1.25rem; }
.kg-toggle-heading { font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; }
.kg-toggle-content { margin-top: .75rem; }

.kg-button-card { text-align: center; margin: 2rem 0; }
.kg-btn { display: inline-block; background: #2BAAB5; color: #edf8f9; padding: .75rem 2rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .25s; }
.kg-btn:hover { background: #0e3d46; }

/* ── Post card ───────────────────────────────────────────── */
.post-card { transition: transform .4s ease, box-shadow .4s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(14,61,70,0.3); }
.post-card img { transition: transform .9s ease; }
.post-card:hover img { transform: scale(1.05); }

.tag-pill {
  display: inline-block; padding: .2rem .75rem; border-radius: 999px;
  background: #c2e4e8; color: #0e3d46; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
