/* ---------- shared ---------- */
:root {
  --paper: #fffdfb;
  --ink: #1e1c1c;
  --body-text: #434343;
  --rose: #BE8695;
  --rose-hover: #a56e7d;
  --muted: #A6A6A6;
  --flag-home: #BCABAB;
  --flag-projects: #DEA7A7;
  --flag-fun: #EBC1C1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

a { color: inherit; }
a:hover { color: var(--rose-hover); }

/* ---------- doodle hover (sketch + handwritten tip) ---------- */
.sk .sk-tip {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.sk:hover .sk-tip, .sk.show .sk-tip { opacity: 1; transform: translateY(0); }
.sk:hover svg.doodle { transform: rotate(-3deg) scale(1.05); }
svg.doodle { transition: transform .3s ease; }

@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}
.wig:hover svg.doodle { animation: wiggle .5s ease infinite; transform: none; }

.tip-text {
  font-family: Caveat, cursive;
  color: var(--rose);
  line-height: 1.1;
}

/* ---------- flag nav (home page) ---------- */
.flagnav a .fwave {
  transform-box: fill-box;
  transform-origin: var(--fo, left bottom);
}
.flagnav a:hover .fwave { animation: flagwave .7s ease-in-out infinite; }
@keyframes flagwave {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(4deg); }
  70% { transform: rotate(-3deg); }
}

/* ---------- circle nav (projects / fun pages) ---------- */
.circle-nav {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding-top: 56px;
}
.circle-nav a {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- home page ---------- */
.home-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.home-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 300px;
  text-align: center;
}
.home-center h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 300;
  font-size: 34px;
  margin: 0;
}
.home-center h1 .name { color: var(--rose); }
.home-tagline {
  font-family: Judson, serif;
  font-size: 22px;
  letter-spacing: .03em;
  margin-top: 14px;
}
.home-blurb {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17.5px;
  line-height: 1.45;
  max-width: 550px;
  margin: 16px 0 0;
  font-weight: 300;
}
.home-blurb strong { color: var(--rose); font-weight: 600; }
.home-previously {
  font-family: 'Instrument Sans', sans-serif;
  text-align: left;
  max-width: 590px;
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.4;
}
.home-previously .lede { font-style: italic; }
.home-previously ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-contact {
  font-family: 'Instrument Sans', sans-serif;
  text-align: center;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.home-contact-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.home-contact-icons a {
  color: var(--rose);
  display: flex;
  transition: color 0.15s ease;
}
.home-contact-icons a:hover {
  color: var(--rose-hover);
}
.home-contact-note {
  font-style: italic;
  color: var(--rose);
  font-size: 15px;
  line-height: 1.4;
}
.doodle-spot { position: absolute; cursor: pointer; }

/* ---------- projects page ---------- */
.page-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px;
  margin: 26px 0 0;
  text-align: center;
  color: var(--ink);
}
.projects-grid {
  display: grid;
  grid-template-columns: 383px 383px;
  gap: 48px 84px;
  justify-content: center;
  margin: 44px auto 70px;
  padding: 0 20px;
  font-family: 'Instrument Sans', sans-serif;
  color: var(--body-text);
}
.project-card { display: flex; flex-direction: column; }
.project-media {
  width: 383px;
  max-width: 100%;
  height: 200px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--rose);
  overflow: hidden;
  background-color: #fff;
  background-repeat: no-repeat;
}
.project-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #fff, #fff 14px,
    #fdf7f8 14px, #fdf7f8 28px
  );
}
.project-media.placeholder span {
  font-family: Caveat, cursive;
  font-size: 24px;
  color: var(--rose);
}
.project-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.project-title-row .title {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--rose);
}
.project-title-row .year {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-size: 10px;
  color: var(--muted);
}
.project-desc {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 2px;
  max-width: 383px;
}

/* ---------- fun page ---------- */
.fun-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 20px 100px;
  text-align: center;
}
.coming-soon {
  font-family: Caveat, cursive;
  font-size: 30px;
  color: var(--rose);
  margin-top: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .home-center { padding: 48px 60px; }
  .doodle-spot { display: none; }
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: minmax(0, 383px); }
}
