/* ==========================================================================
   style.css: structure and theme. Day-to-day changes belong in settings.css
   Layout idea: centred masthead with pill tabs, a blob-framed portrait with
   stars, colourful interest pills, a wavy yellow quote band, sticker-framed
   photos on the inner pages, a timeline, and a mixed-size photo collage.
   Single light theme, kept bright on purpose.
   ========================================================================== */

:root {
  --c-bg: #FFFEE8;
  --c-surface: #FFFFFF;
  --c-tint: var(--accent-soft);
  --c-mid: var(--accent-mid);
  --c-ink: #5E4A00;
  --c-head: var(--accent-deep);
  --c-muted: #7F6A0A;
  --c-line: #F2E58A;
  --c-accent: var(--accent);
  --c-on-accent: #4D3F00;
  --c-deep: var(--accent-deep);
  --c-shadow: rgba(122, 98, 0, .3);
  --lip: 0 3px 0 rgba(122, 98, 0, .38);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height);
  font-weight: 500;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--c-head);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: calc(clamp(2.3rem, 5.6vw, 3.8rem) * var(--heading-scale)); letter-spacing: -.02em; }
h2 { font-size: calc(clamp(1.7rem, 3.4vw, 2.3rem) * var(--heading-scale)); letter-spacing: -.015em; }
h3 { font-size: calc(1.3rem * var(--heading-scale)); }
p { margin: 0 0 1em; }
a { color: var(--c-deep); font-weight: 700; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--c-deep); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: max(20px, 4vw);
}
.section { padding-block: clamp(40px, 7vw, var(--section-space)); }
.desc { max-width: var(--description-width); }
.mark {
  background: linear-gradient(transparent 60%, var(--c-mid) 60%, var(--c-mid) 92%, transparent 92%);
  padding-inline: .12em; margin-inline: -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Masthead ---------- */
.masthead .wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 20px; padding-bottom: 6px; }
.brand {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem;
  color: var(--c-head); text-decoration: none; letter-spacing: -.01em; line-height: 1.1;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.site-nav a {
  padding: .45rem 1.1rem; border-radius: 999px; text-decoration: none;
  color: var(--c-ink); font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.site-nav a:hover { background: var(--c-tint); transform: translateY(-2px); }
.site-nav a[aria-current="page"] { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--lip); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--c-accent); color: var(--c-on-accent);
  font: 800 .98rem var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: var(--lip);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 6px 0 rgba(122, 98, 0, .38); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(122, 98, 0, .38); }
.btn--ghost { background: transparent; color: var(--c-deep); border-color: var(--c-deep); box-shadow: none; }
.btn--ghost:hover { background: var(--c-tint); box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- Photos (soft placeholder shows until the image file exists) ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  background: linear-gradient(150deg, var(--c-tint), color-mix(in srgb, var(--c-mid) 55%, var(--c-surface)));
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.photo__ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: .4rem; text-align: center; padding: 1rem; color: var(--c-muted); font-weight: 700; font-size: .92rem;
}
.photo__ph svg { width: 32px; height: 32px; opacity: .75; }
.photo__ph small { font-weight: 600; font-size: .72rem; opacity: .85; word-break: break-all; }
.sticker { border: 5px solid #fff; box-shadow: 0 16px 26px -16px var(--c-shadow); }

/* ---------- Home hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px); align-items: center;
  padding-block: clamp(32px, 6vw, 72px);
}
.hero-art { position: relative; width: min(100%, var(--hero-photo-size)); padding: 0 16px 16px 0; justify-self: start; }
.hero-photo {
  width: 100%; aspect-ratio: 1 / 1.1; border-radius: 62% 38% 55% 45% / 52% 56% 44% 48%;
  box-shadow: 14px 14px 0 var(--c-mid);
}
.hi {
  display: inline-block; transform: rotate(-3deg); background: var(--c-accent); color: var(--c-on-accent);
  font: 800 .95rem var(--font-heading); padding: .25rem 1rem; border-radius: 999px; box-shadow: var(--lip); margin-bottom: .9rem;
}
.hero__text h1 { margin-bottom: .2em; }
.tagline { font-weight: 700; font-size: calc(clamp(1.05rem, 2vw, 1.3rem) * var(--heading-scale)); line-height: 1.35; max-width: 30ch; margin-bottom: 1.3rem; text-wrap: balance; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills a {
  display: inline-block; padding: .4rem 1.1rem; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: .95rem; color: var(--c-on-accent); box-shadow: var(--lip);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.pills li:nth-child(3n+1) a { background: var(--c-tint); }
.pills li:nth-child(3n+2) a { background: var(--c-mid); }
.pills li:nth-child(3n) a { background: var(--c-accent); }
.pills a:hover { transform: translateY(-3px) rotate(-2deg); }

/* ---------- Waves and quote band ---------- */
.wave { display: block; width: 100%; height: clamp(22px, 4vw, 46px); color: var(--c-accent); }
.wave--flip { transform: scaleY(-1); }
.band { background: var(--c-accent); color: var(--c-on-accent); margin-block: -1px; }
.band .wrap { padding-block: clamp(28px, 5vw, 56px); }
.band blockquote { margin: 0 auto; max-width: 34ch; text-align: center; }
.band blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-heading); font-weight: 800; font-size: 4.6rem; line-height: .6;
  color: var(--c-deep); margin-bottom: .3rem;
}
.band p { font-family: var(--font-heading); font-weight: 800; font-size: calc(clamp(1.4rem, 3vw, 2.1rem) * var(--heading-scale)); line-height: 1.25; margin-bottom: .8rem; text-wrap: balance; }
.band footer { font-weight: 700; font-size: .95rem; }

/* ---------- Placeholders (spaces Ria fills in) ---------- */
.is-placeholder { color: var(--c-muted); font-style: italic; }
.placeholder-block {
  border: 2.5px dashed var(--c-mid); border-radius: calc(var(--photo-radius) - 6px);
  padding: 1.1rem 1.4rem; color: var(--c-muted); background: color-mix(in srgb, var(--c-surface) 70%, transparent);
}
.placeholder-block .tag { display: block; font-weight: 800; font-size: .9rem; color: var(--c-deep); margin-bottom: .3rem; }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(32px, 6vw, 64px); }
.page-head h1 { margin-bottom: 0; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 80px); align-items: start; }
.story-photo { width: var(--story-photo-size); max-width: 100%; aspect-ratio: 3 / 3.6; border-radius: var(--photo-radius); transform: rotate(2deg); }
.bio { max-width: var(--description-width); }
.bio > p:first-of-type::first-letter {
  float: left; font-family: var(--font-heading); font-weight: 800; font-size: 3.8em; line-height: .8;
  padding: .06em .1em 0 0; color: var(--c-deep);
}

.timeline { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 24px; }
.timeline .when {
  justify-self: end; align-self: start; padding: .1rem .9rem; border-radius: 999px;
  background: var(--c-tint); font-weight: 800; font-size: .95rem; color: var(--c-deep);
}
.timeline .when:empty { display: none; }
.timeline .what { position: relative; border-left: 3px solid var(--c-mid); padding: 0 0 2rem 30px; }
.timeline li:last-child .what { padding-bottom: 0; border-left-color: transparent; }
.timeline .what::before {
  content: ""; position: absolute; left: -10px; top: .3rem; width: 17px; height: 17px;
  border-radius: 50%; background: var(--c-accent); border: 3px solid var(--c-deep);
}
.timeline h3 { margin-bottom: .2em; }

.interest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(20px, 3vw, 36px); scroll-margin-top: 20px; }
.interest .photo { aspect-ratio: 4 / 3; border-radius: var(--photo-radius); transform: rotate(-1.8deg); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.interest:nth-of-type(even) .photo { order: 2; transform: rotate(1.8deg); }
.interest:hover .photo { transform: rotate(0deg) scale(1.02); }
.interest h3 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--heading-scale)); }

.goal { background: var(--c-tint); border-radius: calc(var(--photo-radius) + 8px); padding: clamp(28px, 5vw, 60px); text-align: center; }
.goal .desc { margin-inline: auto; text-align: left; }

.collage { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--gallery-photo-height); }
.collage .photo { border-radius: calc(var(--photo-radius) - 4px); border-width: 4px; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.collage .photo:hover { transform: rotate(-1.5deg) scale(1.03); z-index: 1; }
.collage .t1 { grid-column: span 2; grid-row: span 2; }
.collage .t3 { grid-row: span 2; }
.collage .t5, .collage .t6 { grid-column: span 2; }

/* ---------- Contact ---------- */
.hello-card { max-width: 640px; margin-inline: auto; background: var(--c-tint); border-radius: calc(var(--photo-radius) + 8px); padding: clamp(24px, 5vw, 48px); text-align: center; }
.hello-card .desc { margin-inline: auto; }
.form { display: grid; gap: 16px; margin-top: 1.4rem; text-align: left; }
.form label { font-weight: 800; font-size: .92rem; display: block; margin-bottom: 4px; color: var(--c-head); }
.form input, .form textarea {
  width: 100%; padding: .7em 1.1em; border-radius: 20px; border: 2.5px solid var(--c-mid);
  background: var(--c-surface); color: var(--c-ink); font: inherit; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 55%, transparent); }
.form textarea { resize: vertical; min-height: 120px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: center; margin-top: 4px; }
.form-status { margin: 0; text-align: center; font-weight: 800; min-height: 1.5em; }
.form-status.ok { color: #1F7A4D; }
.form-status.err { color: #B3361F; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(16px, 4vw, 40px); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-block: 30px; color: var(--c-muted); font-size: .95rem; text-align: center; font-weight: 600; }
.foot .mark-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--c-head); }
.foot a { color: inherit; }

/* ---------- Motion: one bouncy entrance when a page opens ---------- */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.rise { animation: pop .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; }
  .story { grid-template-columns: 1fr; }
  .story-photo { order: -1; width: min(100%, var(--story-photo-size)); margin-inline: auto; }
  .interest { grid-template-columns: 1fr; }
  .interest:nth-of-type(even) .photo { order: 0; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage .t5, .collage .t6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .when { justify-self: start; margin-left: 30px; }
  .collage { grid-template-columns: 1fr; }
  .collage .t1, .collage .t3, .collage .t5, .collage .t6 { grid-column: auto; grid-row: auto; }
}
