/* Kaia Reyes: lifestyle site. Warm paper, editorial serif headings, rose accent. Shared by the home page and the journal. */
:root {
  --paper: #fbf7f2; --card: #ffffff; --tile: #f1ece5; --ink: #1b1715; --muted: #6f6660; --line: #e8e0d7;
  --rose: #d9466c; --rose-ink: #b3304f; --rose-soft: #fbe6ec;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --body: "Manrope", system-ui, -apple-system, sans-serif;
  --gut: max(16px, 4vw); --max: 1240px; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(251,247,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.who b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); font-size: 0.88rem; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .pill { color: var(--paper); background: var(--ink); border-radius: 999px; padding: 8px 14px; }
.nav .pill:hover { background: var(--rose); color: #fff; }
@media (max-width: 560px) { .nav .hide-s { display: none; } }

/* type */
.kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: 0.98; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--rose); }
h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.04; text-wrap: balance; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); line-height: 1.6; max-width: 42ch; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.b { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 20px; font-weight: 700; font-size: 0.92rem; text-decoration: none; border: 1.5px solid var(--ink); }
.b.dark { background: var(--ink); color: var(--paper); }
.b.dark:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.b.line:hover { background: var(--ink); color: var(--paper); }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 6vw, 80px); padding-bottom: clamp(36px, 6vw, 84px); }
.hero .text { display: grid; gap: 20px; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.hero figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 8px 14px; font-size: 0.8rem; font-weight: 700; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero figure { order: -1; } .hero figure img { aspect-ratio: 4 / 4.4; } }

/* section heads */
.sec { padding: clamp(40px, 7vw, 96px) 0 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(18px, 3vw, 32px); }
.head p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; max-width: 52ch; }
.more { font-weight: 700; font-size: 0.9rem; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* a week in my life */
.life { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23%, 290px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.life::-webkit-scrollbar { display: none; }
.moment { scroll-snap-align: start; text-decoration: none; display: grid; gap: 10px; }
.moment img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; transition: transform .4s ease; }
.moment:hover img { transform: translateY(-4px); }
.moment span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-ink); }
.moment p { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
@media (max-width: 760px) { .life { grid-auto-columns: 68%; } }

/* cart */
.rail { position: sticky; top: 59px; z-index: 5; background: rgba(251,247,242,.94); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin-bottom: 18px; }
.rail::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search { flex: none; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); padding: 0 14px; margin-left: auto; }
.search input { border: 0; outline: 0; font: inherit; font-size: 0.86rem; background: transparent; color: var(--ink); padding: 9px 0; width: 150px; }
.count { flex: none; font-size: 0.8rem; color: var(--muted); padding-left: 4px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 36px) clamp(12px, 1.8vw, 22px); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; scroll-margin-top: 130px; }
.pic { position: relative; aspect-ratio: 4 / 5; width: 100%; background: var(--tile); border-radius: 18px; overflow: hidden; }
.pic .lk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item:hover .pic .lk { transform: scale(1.04); }
.pic .solo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.inset { position: absolute; right: 10px; bottom: 10px; width: 30%; aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.inset img { width: 100%; height: 100%; object-fit: contain; }
.note { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--rose); color: #fff; padding: 5px 9px; border-radius: 999px; }
.meta { padding: 12px 2px 0; display: grid; gap: 4px; flex: 1; align-content: start; }
.brand { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.meta h3 { font-family: var(--body); font-size: clamp(0.95rem, 1.4vw, 1.03rem); line-height: 1.28; font-weight: 700; letter-spacing: 0; }
.meta p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.btn { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; border-radius: 999px; background: var(--ink); color: var(--paper); padding: 11px 16px; font-size: 0.86rem; font-weight: 700; }
.btn::after { content: "→"; transition: transform .2s ease; }
.item:hover .btn { background: var(--rose); }
.item:hover .btn::after { transform: translateX(3px); }
.empty { color: var(--muted); }

/* journal cards */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.post { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.post time { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 1.45rem; line-height: 1.15; }
.post p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.93rem; }
.post:hover h3 { color: var(--rose-ink); }

/* say hi */
.hello { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 52px); }
@media (max-width: 760px) { .hello { grid-template-columns: 1fr; } }
.hello .side { display: grid; gap: 16px; align-content: start; }
.hello .side p { margin: 0; color: var(--muted); line-height: 1.6; }
.dm { display: flex; flex-wrap: wrap; gap: 10px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 700; }
input, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.status { margin: 0; font-size: 0.9rem; min-height: 1.4em; }
.status.ok { color: #2f7a4b; } .status.err { color: var(--rose-ink); }
button.b { cursor: pointer; font-family: inherit; justify-self: start; }

/* article */
.article { max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0 0; }
.article .crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.article .crumbs a { text-decoration: none; }
.article h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.article .by { display: flex; align-items: center; gap: 10px; margin: 18px 0 26px; color: var(--muted); font-size: 0.9rem; }
.article .by img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article .cover { width: 100%; aspect-ratio: 4 / 5; max-height: 760px; object-fit: cover; border-radius: 24px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 1.8em 0 0.4em; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--rose-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.shopthis { margin-top: 40px; }
.shopthis .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .shopthis .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

footer { margin-top: clamp(48px, 8vw, 110px); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-top: 24px; padding-bottom: max(30px, env(safe-area-inset-bottom)); }
footer p { margin: 0; max-width: 62ch; }
footer nav { display: flex; gap: 16px; }
a:focus-visible, button:focus-visible, .chip:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pic .lk, .moment img, .btn::after { transition: none; } }

/* moments: her life collection, masonry columns */
.moments { columns: 3 280px; column-gap: clamp(14px, 2vw, 24px); }
.mo { break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 24px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.mo img, .mo video { width: 100%; display: block; background: var(--tile); }
.mo.reel video { aspect-ratio: 9 / 16; object-fit: cover; }
.mo figcaption { padding: 12px 14px 14px; display: grid; gap: 6px; }
.mo figcaption p { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }
.wearing { font-size: 0.8rem; font-weight: 700; color: var(--rose-ink); text-decoration: none; }
.wearing:hover { text-decoration: underline; }
