/* =========================================================
   Tracy Hopfer — online resume
   Your colors live in :root. Change them here once.
   ========================================================= */
:root {
  --green: #303b2d;        /* your dark green */
  --green-soft: #46553f;
  --linen: #faf0e6;        /* linen */
  --cream: #fffaf5;
  --pink: #e8759a;         /* your pink — lines and dots */
  --pink-text: #a83c63;    /* darker pink, easy to read for links */
  --ink: #2b2b2b;
  --muted: #5c5650;
  --line: #eadfd3;
  --serif: Georgia, "Times New Roman", Times, serif;   /* fonts already on every device — no outside font service */
  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--green); color: var(--ink); font-family: var(--serif); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-text); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; color: var(--green); margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 70ch; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* The page sits on your green like a framed card */
.page { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: var(--gutter) auto; background: var(--cream); }

/* ---------- Daisy banner ---------- */
.banner { height: clamp(120px, 23vw, 258px); background: url("imgs/daisies.webp") center / cover no-repeat; }
@media (max-width: 700px) { .banner { background-image: url("imgs/daisies-small.webp"); } }

/* ---------- Name card ---------- */
.hello { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
         padding: 0 clamp(20px, 5vw, 56px) 32px clamp(20px, 9vw, 100px); margin-top: -70px; }
.hello img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--cream);
             box-shadow: 3px 4px 10px rgba(0, 0, 0, .35); }
.hello .text { padding-top: 70px; }
.role { font-size: 1.25rem; font-style: italic; color: var(--pink-text); margin: 0; }
.where { color: var(--muted); margin: 4px 0 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; padding: .55em 1.2em; border-radius: 999px; border: 2px solid var(--green); color: var(--green);
       text-decoration: none; font-weight: 600; font-size: .98rem; }
.btn:hover { background: var(--green); color: var(--cream); }
.btn.solid { background: var(--green); color: var(--cream); }
.btn.solid:hover { background: var(--green-soft); border-color: var(--green-soft); }
@media (max-width: 640px) {
  .hello { grid-template-columns: 1fr; margin-top: -60px; }
  .hello img { width: 150px; }
  .hello .text { padding-top: 0; }
}

/* ---------- Section menu ---------- */
.menu { position: sticky; top: 0; z-index: 5; background: var(--green); }
.menu ul { list-style: none; margin: 0; padding: 0 clamp(12px, 4vw, 44px); display: flex; flex-wrap: wrap; }
.menu a { display: block; color: var(--cream); text-decoration: none; padding: 12px 14px; }
.menu a:hover { background: var(--linen); color: var(--green); }

/* ---------- Sections ---------- */
section { padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 56px); scroll-margin-top: 50px; }
section + section { border-top: 1px solid var(--line); }
section h2::before { content: ""; display: block; width: 100%; height: 3px; background: var(--pink); margin-bottom: 14px; }
.tint { background: linear-gradient(var(--cream), var(--linen)); }
.lede { font-size: 1.15rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

ul.dots { padding-left: 1.1em; margin: 0; }
ul.dots li { margin-bottom: 8px; }
ul.dots li::marker { color: var(--pink); }
.skill-group { margin-bottom: 18px; }
.skill-group h3 { margin-bottom: 4px; }
.skill-group p { margin: 0; color: var(--muted); }

/* ---------- Experience ---------- */
.job { margin-bottom: 28px; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.job h3 { margin: 0; }
.when { color: var(--muted); font-style: italic; margin: 0; white-space: nowrap; }
.org { color: var(--pink-text); margin: 2px 0 8px; }
.other { margin: 36px 0 12px; font-size: 1.35rem; }

/* ---------- Portfolio ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 24px; }
.work .shot { display: block; border: 1px solid #d9c8b4; background: #fff; overflow: hidden; }
.work a.shot img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.work a.shot:hover { border-color: var(--pink); }
.work .shot img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.work .noimg { aspect-ratio: 8 / 5; display: grid; place-items: center; text-align: center; padding: 16px; background: var(--green); color: var(--cream); font-size: 1.2rem; }
.work h3 { margin: 12px 0 4px; }
.work h3 a { color: inherit; text-decoration: none; }
.work p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Footer ---------- */
footer { background: url("imgs/daisies-small.webp") center / cover no-repeat; }
footer .inner { background: rgba(48, 59, 45, .88); color: var(--cream); padding: 26px clamp(20px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer p { margin: 0; max-width: none; }
footer a { color: var(--cream); }

/* ---------- Printing: just the resume ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .page { width: 100%; margin: 0; }
  .banner, .menu, .buttons, .skip, #portfolio, footer { display: none !important; }
  .hello { margin-top: 0; padding: 0 0 12px; }
  .hello .text { padding-top: 0; }
  section { padding: 12px 0; }
  a { color: inherit; text-decoration: none; }
}

/* Skills + Education share one pink line across both columns */
.two { border-top: 3px solid var(--pink); padding-top: 14px; }
.two h2::before { display: none; }

/* Phones: center the photo, name and buttons */
@media (max-width: 640px) {
  .hello { justify-items: center; text-align: center; padding-left: clamp(20px, 5vw, 56px); }
  .buttons { justify-content: center; }
}
