/* Anna Danielson: academic site
   Brand: indigo ground, cream daytime, pink / turquoise / yellow accents, Jost */

:root {
  --indigo: #120C2E;
  --indigo-2: #1B1440;
  --cream: #FBF4E8;
  --cream-2: #F3E9D8;
  --pink: #FF4F9A;
  --pink-ink: #C4246C;   /* darker pink for text on cream (passes contrast) */
  --teal: #2EC4B6;
  --teal-ink: #11786E;   /* darker turquoise for text on cream */
  --yellow: #FFD23F;
  --ink: #120C2E;
  --muted: #4A4466;
  --rule: #E2D6C2;
  --max: 68rem;
  --text: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: .5rem 1rem; z-index: 10; }

/* ---------- Header ---------- */
.site-header { background: var(--indigo); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--cream); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.wordmark { font-weight: 300; letter-spacing: .28em; text-transform: uppercase; font-size: .95rem; white-space: nowrap; }
.wordmark .dot { color: var(--pink); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 500; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"] { border-bottom-color: var(--pink); }

/* ---------- Hero ---------- */
.hero { background: var(--indigo); color: var(--cream); padding: 3.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.hero-mark { width: 180px; height: 180px; }
.hero h1 { margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: .28em; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.2; }
.hero h1 .dot { color: var(--pink); }
.tagline { margin: .9rem 0 0; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; font-size: .78rem; color: var(--teal); }
.hero .lead { max-width: 36rem; margin: 1.5rem 0 0; font-size: 1.2rem; line-height: 1.55; font-weight: 300; }

.page-hero { background: var(--indigo); color: var(--cream); padding: 2.75rem 0 3.25rem; }
.page-hero h1 { margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: .22em; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.page-hero p { max-width: var(--text); margin: 1rem 0 0; font-weight: 300; font-size: 1.15rem; }

/* ---------- Sections ---------- */
main section { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
main section:last-child { border-bottom: 0; }
.eyebrow { margin: 0 0 .5rem; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--teal-ink); }
h2 { margin: 0 0 1rem; font-weight: 400; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; }
h3 { margin: 0 0 .5rem; font-weight: 500; font-size: 1.2rem; line-height: 1.3; }
.prose { max-width: var(--text); }
.prose p { margin: 0 0 1rem; }

/* Status chips */
.status { display: inline-block; font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .75rem; }
.status.done { background: var(--teal); color: var(--indigo); }
.status.now { background: var(--yellow); color: var(--indigo); }
.status.next { background: var(--pink); color: var(--indigo); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card .more { margin-top: auto; font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.card::before { content: ""; width: 28px; height: 6px; border-radius: 3px; margin-bottom: 1rem; background: var(--pink); }
.card:nth-child(2)::before { background: var(--teal); }
.card:nth-child(3)::before { background: var(--yellow); }

/* Project blocks */
.project { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: 0; padding-top: .5rem; }
.project-meta { font-size: .9rem; color: var(--muted); }
.project-meta dt { font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-top: .9rem; }
.project-meta dd { margin: .15rem 0 0; }
.project-body { max-width: var(--text); }
.project-body p { margin: 0 0 1rem; }
.question { border-left: 4px solid var(--pink); padding: .25rem 0 .25rem 1rem; margin: 0 0 1.25rem; font-size: 1.2rem; font-weight: 300; }

ul.clean { margin: 0 0 1rem; padding-left: 1.1rem; }
ul.clean li { margin-bottom: .4rem; }
ul.clean li::marker { color: var(--pink); }

/* Commitments (philosophy) */
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.commitment { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; }
.commitment p { margin: 0; color: var(--muted); }
.commitment .num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--indigo); color: var(--yellow); font-weight: 500; font-size: .85rem; margin-bottom: .75rem; }

/* Two-column lists (home) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.courses { list-style: none; margin: 0; padding: 0; }
.courses li { padding: .7rem 0; border-top: 1px solid var(--rule); }
.courses li:first-child { border-top: 0; }
.courses .code { display: inline-block; min-width: 5.5rem; font-weight: 500; font-size: .8rem; letter-spacing: .1em; color: var(--teal-ink); }

.cv { margin: 0; }
.cv div { padding: .8rem 0; border-top: 1px solid var(--rule); }
.cv div:first-child { border-top: 0; }
.cv dt { font-weight: 500; }
.cv dd { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }

/* Pull band */
.band { background: var(--indigo-2); color: var(--cream); }
.band .prose { font-size: 1.3rem; font-weight: 300; line-height: 1.5; }
.band .prose p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: var(--cream); padding: 3rem 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.site-footer h2 { color: var(--cream); font-weight: 300; text-transform: uppercase; letter-spacing: .22em; font-size: 1.1rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { margin: .25rem 0; }
.site-footer .small { font-size: .85rem; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .project { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-mark { width: 112px; height: 112px; }
  .wordmark { font-size: .8rem; letter-spacing: .2em; }
  .hero h1 { letter-spacing: .18em; }
  .nav { gap: .25rem 1.1rem; }
  main section { padding: 2.5rem 0; }
}
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--pink); color: inherit; }
.note { color: var(--muted); font-size: .9rem; }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: var(--text); }
.band .wrap.prose > * { max-width: 48rem; }

/* Philosophy statement */
.meta-line { color: var(--muted); font-size: .9rem; margin-bottom: 2rem !important; }
.opening { font-size: 1.25rem; font-weight: 300; line-height: 1.55; }
.refs h2 { font-size: 1.2rem; }
.refs p { font-size: .88rem; color: var(--muted); padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: .6rem; overflow-wrap: anywhere; }

/* Link to full philosophy statement */
.read-full { margin: 2rem 0 0; font-weight: 500; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.read-full span { font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: .95rem; color: var(--muted); margin-left: .75rem; }

/* Social icons (footer) */
.social { display: flex; gap: 1rem; margin: .75rem 0 .5rem !important; }
.social a { color: #fff; display: inline-flex; line-height: 0; transition: color .15s, transform .15s; }
.social a:hover { color: var(--yellow); transform: translateY(-2px); }

/* Brand graphics */
/* B1: reaching line before small labels */
.eyebrow { display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; flex: none; width: 40px; height: 10px; background: url("reach-label.svg") center / contain no-repeat; }

/* B2: reaching line under project headings */
.project-body h2::after { content: ""; display: block; width: 120px; height: 14px; margin-top: .6rem; background: url("reach-under.svg") left center / contain no-repeat; }

/* A1: fan between page sections */
main section { border-bottom: 0; }
main section + section:not(.band)::before { content: ""; display: block; width: 120px; height: 64px; margin: -2.25rem auto 1.75rem; background: url("divider-fan.svg") center / contain no-repeat; }

/* A2: rule with ornament between projects */
.project + .project { border-top: 0; }
.project + .project::before { content: ""; grid-column: 1 / -1; height: 30px; margin-bottom: 1.25rem;
  background:
    url("divider-rule.svg") center / 130px 30px no-repeat,
    linear-gradient(var(--rule), var(--rule)) left center / calc(50% - 72px) 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) right center / calc(50% - 72px) 1px no-repeat; }

/* C1 / C2: leaves in the indigo headers */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.deco-scatter::after, .deco-mark::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(45%, 420px); pointer-events: none; background: center right / contain no-repeat; }
.deco-scatter::after { background-image: url("deco-scatter.svg"); }
.deco-mark::after { background-image: url("deco-mark.svg"); }
@media (max-width: 860px) { .deco-scatter::after, .deco-mark::after { width: 38%; } }
@media (max-width: 640px) { .deco-scatter::after, .deco-mark::after { display: none; } }

/* Graphics round 2 */
/* C1 varied scatters and C3 garland in the indigo headers */
.deco-scatter-research::after, .deco-scatter-philosophy::after, .deco-scatter-statement::after, .deco-scatter-community::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(45%, 420px); pointer-events: none; background: center right / contain no-repeat; }
.deco-scatter-research::after { background-image: url("deco-scatter-research.svg"); }
.deco-scatter-philosophy::after { background-image: url("deco-scatter-philosophy.svg"); }
.deco-scatter-statement::after { background-image: url("deco-scatter-statement.svg"); }
.deco-scatter-community::after { background-image: url("deco-scatter-community.svg"); }
@media (max-width: 860px) { .deco-scatter-research::after, .deco-scatter-philosophy::after, .deco-scatter-statement::after, .deco-scatter-community::after { width: 38%; } }
@media (max-width: 640px) { .deco-scatter-research::after, .deco-scatter-philosophy::after, .deco-scatter-statement::after, .deco-scatter-community::after { display: none; } }

/* D4: leaves sprouting from the home cards */
.cards { margin-top: 2.75rem; }
a.card { position: relative; overflow: visible; }
.card::before { position: absolute; top: -33px; left: 1.25rem; width: 60px; height: 34px; margin: 0; border-radius: 0; background: url("sprout-pink.svg") center / contain no-repeat; }
.card:nth-child(2)::before { background: url("sprout-teal.svg") center / contain no-repeat; }
.card:nth-child(3)::before { background: url("sprout-yellow.svg") center / contain no-repeat; }

/* D3 + D5: big light numbers and a leaf watermark on the philosophy cards */
.commitment { position: relative; overflow: hidden; }
.commitment > * { position: relative; z-index: 1; }
.commitment .num { display: block; width: auto; height: auto; border-radius: 0; background: none; font-weight: 300; font-size: 3rem; line-height: 1; margin-bottom: .6rem; color: var(--pink-ink); }
.commitment:nth-child(even) .num { color: var(--teal-ink); }
.commitment::after { content: ""; position: absolute; right: -34px; bottom: -56px; width: 140px; height: 140px; background: url("watermark-pink.svg") center / contain no-repeat; }
.commitment:nth-child(3n+2)::after { background-image: url("watermark-teal.svg"); }
.commitment:nth-child(3n)::after { background-image: url("watermark-yellow.svg"); }

/* Philosophy cards: leaves tucked into different corners */
.commitment:nth-child(1)::after { right: -34px; bottom: -56px; top: auto; left: auto; transform: none; }
.commitment:nth-child(2)::after { right: -34px; top: -56px; bottom: auto; left: auto; transform: scaleY(-1); }
.commitment:nth-child(3)::after { left: -48px; bottom: -78px; right: auto; top: auto; transform: scaleX(-1); }
.commitment:nth-child(4)::after { left: -62px; top: -86px; right: auto; bottom: auto; transform: scale(-1, -1); }
.commitment:nth-child(5)::after { right: -34px; top: -56px; bottom: auto; left: auto; transform: scaleY(-1); }
.commitment:nth-child(6)::after { right: -34px; bottom: -56px; top: auto; left: auto; transform: none; }

/* Remove sprouting leaves on home cards */
.card::before { display: none; }
.cards { margin-top: 1.5rem; }

/* Falling leaves (home About): a column running down to the divider */
.about-falling { position: relative; }
.about-falling > .wrap { position: relative; z-index: 1; }
.about-falling::after { content: ""; position: absolute; top: 1.5rem; bottom: -2.5rem; width: 400px; z-index: 0;
  right: max(1.25rem, calc((100% - 68rem) / 2 + 1.25rem)); pointer-events: none;
  background: url("falling-leaves.svg") right top / 100% 100% no-repeat; }
@media (max-width: 1000px) { .about-falling::after { display: none; } }

/* Bigger dot in the nav wordmark */
.wordmark .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--pink); font-size: 0; vertical-align: middle; margin: 0; position: relative; top: -2.25px; left: -2.1px; }

/* Bigger dot in the home header name */
.hero h1 .dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--pink); color: transparent; overflow: hidden; vertical-align: middle; position: relative; top: -.13em; left: -.115em; line-height: 0; text-indent: -999px; }

/* About leaves turned off for now. Delete this rule to bring them back. */
.about-falling::after { display: none !important; }

/* About: photo, numbers, quote band */
.about-grid { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.about-photo { justify-self: center; width: 100%; max-width: 300px; margin-top: 1.5rem; }
.about-photo .frame { position: relative; aspect-ratio: 1; }
.about-photo .portrait { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; object-fit: cover; }
.about-photo .photo-leaves { position: absolute; inset: 0; width: 100%; height: 100%; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.stats-row b { display: block; font-weight: 300; font-size: 2.8rem; line-height: 1; }
.stats-row .pink { color: var(--pink-ink); } .stats-row .teal { color: var(--teal-ink); }
.stats-row span { display: block; margin-top: .4rem; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.quote-band .qin { display: flex; align-items: center; gap: 1.5rem; margin: 0; max-width: 52rem; }
.quote-band .qin img { flex: none; }
.quote-band blockquote { margin: 0; font-weight: 300; font-size: 1.6rem; line-height: 1.45; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-photo { max-width: 240px; margin-top: 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .quote-band blockquote { font-size: 1.3rem; }
}

/* Philosophy: roots section with pull quote */
.roots-grid { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.roots-quote { margin-top: 3rem; }
.roots-quote blockquote { margin: .75rem 0 0; font-weight: 300; font-size: 1.45rem; line-height: 1.45; border-left: 4px solid var(--pink); padding-left: 1.1rem; }
@media (max-width: 860px) { .roots-grid { grid-template-columns: 1fr; gap: 1.5rem; } .roots-quote { margin-top: 0; } .roots-quote blockquote { font-size: 1.25rem; } }

/* Full statement: pull quotes */
.pull { float: right; clear: right; width: min(21rem, 30%); max-width: none !important; margin: .25rem 0 1.5rem 2rem; padding-top: .9rem; position: relative; }
.pull::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; border-radius: 2px; background: var(--pink); }
.pull-teal::before { background: var(--teal); } .pull-yellow::before { background: var(--yellow); }
.pull p { margin: 0; font-weight: 300; font-size: 1.35rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 1000px) { .pull { float: none; width: auto; margin: 1.5rem 0; } .pull p { font-size: 1.2rem; } }

/* Photo ring */
.about-photo .frame::before { content: ""; position: absolute; inset: 9.5%; border-radius: 50%; border: 3px solid var(--pink); }

/* Footer: centered sign-off */
.footer-signoff { position: relative; margin-top: 0; padding: 3.5rem 0 2.5rem; }
.footer-fan { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); line-height: 0; }
.site-footer .footer-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; }
.footer-center .footer-mark { width: 72px; height: 72px; }
.footer-center p { margin: 0; }
.footer-name { color: var(--cream); font-size: 1rem; }
.footer-tag { color: var(--teal); font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.footer-center .social { justify-content: center; margin: .4rem 0 !important; }

/* Open to work */
.open-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border: 1px solid var(--pink); border-radius: 999px; font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); text-decoration: none; margin-top: .3rem; }
a.open-chip:hover { color: var(--yellow); }
.open-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(46,196,182,.25); }
.open-chip.on-light { color: var(--ink); border-color: rgba(18,12,46,.25); margin: 0 0 .5rem; }
.open-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; background: #DDF5F2; border-radius: 16px; padding: 1.5rem 1.75rem; }
.open-banner p { margin: 0; font-size: 1.2rem; font-weight: 300; max-width: 34rem; }
.resume-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 500; font-size: .85rem; letter-spacing: .06em; text-decoration: none; }
.resume-btn:hover { background: var(--pink); color: var(--ink); }

/* Open to work banner: white, no border. */
.open-banner { background: #FFFFFF; color: var(--ink); border: 1px solid var(--rule); }
.open-banner .open-chip.on-light { color: var(--ink); border-color: rgba(18,12,46,.25); }
.open-banner .resume-btn { background: var(--ink); color: var(--cream); }
.open-banner .resume-btn:hover { background: var(--pink); color: var(--ink); }
.open-banner { margin-top: 2.5rem; }
.open-banner .resume-btn:hover { background: var(--teal); color: var(--ink); }
