/*
Theme Name: Open by Kristian
Theme URI: https://open.kristianjensen.site
Author: Kristian Hole Jensen
Description: A calm, editorial build journal for Mammavenn, FellowU and useful digital products.
Version: 1.0.0
Text Domain: open-by-kristian
*/

:root {
  --ink: #10213f;
  --ink-soft: #5d6b82;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: rgba(16, 33, 63, 0.12);
  --coral: #ff685f;
  --coral-soft: #ffe3dd;
  --mint: #dff7ef;
  --blue: #dcecff;
  --rose: #ffdce8;
  --shadow: 0 24px 70px rgba(16, 33, 63, 0.1);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 104, 95, .11), transparent 30rem),
    radial-gradient(circle at 92% 28%, rgba(109, 211, 181, .13), transparent 34rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 33, 63, .08);
  background: rgba(255, 250, 243, .86);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 850; letter-spacing: -.03em; font-size: 1.1rem; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--ink); box-shadow: 0 8px 22px rgba(16,33,63,.16); }
.brand-mark span { color: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: .92rem; }
.main-nav a { color: var(--ink-soft); transition: color .2s ease; }
.main-nav a:hover { color: var(--ink); }
.nav-cta { padding: 11px 17px; color: white !important; background: var(--ink); border-radius: 999px; }

.hero { padding: 92px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--coral); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 6.8rem); font-weight: 600; line-height: .95; letter-spacing: -.06em; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-copy { max-width: 620px; margin: 28px 0 32px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,33,63,.11); }
.button-primary { color: white; border-color: var(--ink); background: var(--ink); }
.button-light { background: rgba(255,255,255,.72); }

.hero-visual { position: relative; min-height: 510px; }
.orbit { position: absolute; inset: 8% 4%; border: 1px dashed rgba(16,33,63,.18); border-radius: 50%; animation: rotate 24s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); }
.orbit::before { top: 7%; left: 22%; }
.orbit::after { right: 7%; bottom: 24%; background: #52b898; }
@keyframes rotate { to { transform: rotate(360deg); } }
.portrait-card { position: absolute; inset: 30px 34px 34px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 44px; background: linear-gradient(145deg, #dff7ef 0%, #dcecff 54%, #ffe3dd 100%); box-shadow: var(--shadow); transform: rotate(2deg); }
.portrait-card::after { content: "K"; position: absolute; right: -10px; bottom: -120px; color: rgba(255,255,255,.5); font: 700 24rem/1 Georgia, serif; }
.status { position: relative; z-index: 2; width: fit-content; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.78); font-weight: 800; font-size: .83rem; }
.status i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #2db47d; }
.visual-copy { position: relative; z-index: 2; }
.visual-copy p { margin: 0 0 8px; color: var(--ink-soft); font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.visual-copy strong { display: block; max-width: 360px; font: 600 clamp(2rem, 4vw, 3.5rem)/1.02 Georgia, serif; letter-spacing: -.04em; }
.floating-note { position: absolute; z-index: 3; right: -4px; top: 92px; max-width: 190px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 16px 40px rgba(16,33,63,.13); transform: rotate(-4deg); font-size: .88rem; font-weight: 750; }

.section { padding: 82px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; max-width: 680px; font: 600 clamp(2.4rem, 5vw, 4.5rem)/1 Georgia, serif; letter-spacing: -.05em; }
.section-heading p { max-width: 390px; margin: 0; color: var(--ink-soft); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-card { position: relative; min-height: 510px; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(16,33,63,.07); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.mammavenn { background: linear-gradient(145deg, #fff 0%, #ffe5ed 100%); }
.project-card.fellowu { background: linear-gradient(145deg, #fff 0%, #dff7ef 100%); }
.project-number { font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.project-card h3 { margin: 14px 0 12px; font: 600 clamp(2.5rem, 5vw, 4.4rem)/.95 Georgia, serif; letter-spacing: -.05em; }
.project-card p { max-width: 500px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.project-meta span { padding: 8px 12px; border: 1px solid rgba(16,33,63,.1); border-radius: 999px; background: rgba(255,255,255,.62); font-size: .78rem; font-weight: 800; }
.project-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.project-link b { width: 36px; height: 36px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--ink); }
.project-shape { position: absolute; right: -50px; bottom: -80px; width: 260px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.42); }

.principles { background: var(--ink); color: white; }
.principle-grid { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 70px; align-items: start; }
.principles h2 { margin: 0; font: 600 clamp(2.5rem, 5vw, 4.7rem)/1 Georgia, serif; letter-spacing: -.05em; }
.principles .eyebrow { color: #ff8c84; }
.principle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.principle { min-height: 190px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.05); }
.principle span { color: #ff8c84; font-weight: 900; }
.principle h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.principle p { margin: 0; color: rgba(255,255,255,.68); font-size: .92rem; }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; min-height: 320px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.72); transition: transform .2s ease, background .2s ease; }
.post-card:hover { transform: translateY(-4px); background: white; }
.post-card time { color: var(--coral); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.post-card h3 { margin: 24px 0 12px; font: 600 1.75rem/1.08 Georgia, serif; letter-spacing: -.035em; }
.post-card p { margin: 0; color: var(--ink-soft); }
.post-card .read { margin-top: auto; padding-top: 28px; font-weight: 900; }
.empty-journal { grid-column: 1/-1; padding: 34px; border: 1px dashed var(--line); border-radius: 24px; color: var(--ink-soft); background: rgba(255,255,255,.55); }

.cta-band { padding: 72px 0; }
.cta-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center; padding: 46px; border-radius: 34px; background: var(--coral); color: #251626; box-shadow: 0 26px 65px rgba(255,104,95,.22); }
.cta-inner h2 { margin: 0; font: 600 clamp(2.2rem, 4vw, 4rem)/1 Georgia, serif; letter-spacing: -.05em; }
.cta-inner p { margin: 14px 0 0; max-width: 620px; }
.cta-inner .button { justify-self: end; background: #251626; color: white; border-color: #251626; }

.site-footer { padding: 36px 0 54px; color: var(--ink-soft); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }

.article-shell { width: min(calc(100% - 40px), 780px); margin: 72px auto; }
.article-shell h1 { margin: 0 0 18px; font: 600 clamp(2.7rem, 6vw, 5rem)/.98 Georgia, serif; letter-spacing: -.05em; }
.article-meta { margin-bottom: 40px; color: var(--coral); font-weight: 850; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.17rem; }
.article-content p { margin: 0 0 1.45em; }
.article-content h2 { margin: 1.6em 0 .6em; font-size: 2rem; }
.article-content a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .main-nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid, .project-grid, .principle-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .hero-visual { min-height: 430px; }
  .floating-note { right: 4px; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-card { min-height: 450px; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner .button { justify-self: start; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-cta { padding: 9px 13px; }
  .hero { padding: 48px 0 42px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 5rem); }
  .hero-visual { min-height: 360px; }
  .portrait-card { inset: 20px 10px 24px; padding: 24px; border-radius: 32px; }
  .floating-note { top: 78px; max-width: 150px; padding: 14px; font-size: .76rem; }
  .section { padding: 58px 0; }
  .project-card { min-height: 430px; padding: 26px; }
  .principle-list, .journal-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 30px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
