/* torontocatgirl.com: one stylesheet for the whole site.
   One look: two fonts, the colours below, one corner, one shadow,
   and every section built the same way. Change a token and the site follows. */

:root {
  --pink: #f9e3eb;
  --pink-strong: #e58fb1;
  --blue: #e6ecf6;
  --accent: #ad3d67;
  --text: #3b3a3d;
  --muted: #615d66;
  --line: #e6e0e8;
  --bg: #ffffff;
  --surface: #ffffff;
  --timeline: #e8bccd;
  --cat-line: #3b3a3d;
  --cat-halo: rgb(255 255 255 / 95%);
  --shadow: 5px 5px 0 var(--text); /* pink on the pink bands, set further down */
  --shadow-hover: 2px 2px 0 var(--text);
  --radius: 14px;
  --max: 58rem;
  --font: "Lora", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-label: "Oswald", "Arial Narrow", Arial, sans-serif; /* printed résumé only */
  color-scheme: light;
}

/* ---------- Basics (the printed résumé relies on these too) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cat { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Résumé ---------- */
.resume { max-width: 52rem; background: var(--surface); border: 1px solid var(--line); padding: 2rem 1.25rem; margin-bottom: 4rem; }
@media (min-width: 40rem) { .resume { padding: 3rem; } }
.resume-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.resume-name { font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.25rem; }
.resume-role { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; margin: 0 0 0.4rem; }
.resume-contact { color: var(--muted); font-size: 0.92rem; margin: 0; }
.resume-block { margin-bottom: 1.5rem; }
.resume-block h3 { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.8rem; color: var(--accent); border-bottom: 2px solid var(--pink-strong); padding-bottom: 0.3rem; margin-bottom: 0.9rem; }
.resume-item { margin-bottom: 1rem; }
@media screen {
  .resume-timeline { border-left: 2px solid var(--timeline); margin-left: 0.5rem; padding-left: 1.5rem; }
  .resume-timeline .resume-item { position: relative; padding-bottom: 0.4rem; }
  .resume-timeline .resume-item::before { content: ""; position: absolute; left: calc(-1.5rem - 0.5rem - 1px); top: 0.3rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
}
.resume-line { margin-bottom: 0.3rem; }
.resume-line::after { content: ""; display: block; clear: both; }
.resume-line span { float: right; margin-left: 1rem; color: var(--muted); font-size: 0.9rem; }
.resume ul { margin: 0; }
.resume li { margin-bottom: 0.2rem; font-size: 0.97rem; }
.resume-skills { display: grid; gap: 0.6rem 1.5rem; }
@media (min-width: 40rem) { .resume-skills { grid-template-columns: 1fr 1fr; } }
.resume-skills h4 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; margin: 0; }
.resume-skills p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Printing the résumé (or "Save as PDF"): just the résumé, black on white */
@media print {
  @page { margin: 0.9cm 1.3cm; }
  body { background: #fff; color: #000; font-size: 9.2pt; line-height: 1.28; }
  .site-header, .site-footer, .skip-link, .no-print, .peek, .cat, .next-page { display: none !important; }
  main > :not(.resume) { display: none !important; }
  .resume { border: 0; padding: 0; margin: 0; max-width: none; background: #fff; }
  .resume-head { padding-bottom: 0.6rem; margin-bottom: 0.8rem; }
  .resume-name { font-size: 20pt; }
  .resume-block { margin-bottom: 0.8rem; }
  .resume-block h3 { color: #000; border-color: #999; font-size: 8.5pt; margin-bottom: 0.45rem; }
  .resume-item { margin-bottom: 0.55rem; break-inside: avoid; }
  .resume li { font-size: 9.2pt; margin-bottom: 0; }
  .resume-line span, .resume-contact, .resume-skills p { color: #333; }
  .resume-line span { font-size: 9pt; }
  .resume-contact { font-size: 9.5pt; }
  .resume-skills { gap: 0.3rem 1rem; grid-template-columns: repeat(4, 1fr); }
  .resume-skills h4 { font-size: 9.5pt; font-weight: 600; font-family: var(--font); }
  .resume-skills p { font-size: 8.5pt; }
  .resume-block p { margin-bottom: 0.3rem; }
  a { color: #000; text-decoration: none; }
}

/* ---------- The website itself (screens only) ---------- */
@media screen {
  body { line-height: 1.65; }
  h1, h2, h3 { text-wrap: balance; }
  p, li, figcaption { text-wrap: pretty; }
  h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); line-height: 1.1; margin-bottom: 0.25em; }
  h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 1rem; }
  h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  p { margin-bottom: 0.9em; }
  p:last-child { margin-bottom: 0; }
  .lead { font-size: 1.25rem; line-height: 1.55; }
  .prose { max-width: 42rem; }

  /* Every section: same padding, white or a soft colour */
  .section { padding-block: 4.5rem; }
  .band-pink { background: var(--pink); }
  .band-blue { background: var(--blue); }

  /* Header */
  .site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
  .header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.9rem; }
  .brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); text-decoration: none; }
  .site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
  .site-nav li { margin: 0; }
  .site-nav a { color: var(--text); text-decoration: none; display: block; padding-block: 0.25rem; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
  /* Sticky from tablet up. Links to a section stop exactly under the header. */
  @media (min-width: 40rem) {
    html { scroll-padding-top: 3.875rem; }
    .site-header { position: sticky; top: 0; z-index: 20; height: 3.875rem; }
    .header-inner { height: 100%; padding-block: 0; }
  }

  /* Buttons */
  .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.6rem 1.4rem; font: inherit; border: 2px solid var(--text); border-radius: var(--radius); text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .btn-primary { background: var(--pink-strong); color: var(--text); }
  .btn-ghost { background: var(--bg); color: var(--text); }
  .btn:hover { transform: translate(3px, 3px); box-shadow: var(--shadow-hover); }
  .band-pink, .site-footer { --shadow: 5px 5px 0 var(--pink-strong); --shadow-hover: 2px 2px 0 var(--pink-strong); }
  .band-pink .btn-primary, .site-footer .btn-primary { background: var(--text); color: var(--bg); }

  /* Hero */
  .hero { position: relative; overflow: hidden; padding-block: 5rem 6.5rem; }
  .hero .wrap { position: relative; }
  .hero-hello { font-size: 1.25rem; margin-bottom: 0.25rem; }
  .hero-tag { color: var(--accent); font-size: 1.25rem; margin-bottom: 1.25rem; }
  .hero .lead { max-width: 36rem; }
  .hero-cats { position: absolute; right: 1.5rem; bottom: -6.5rem; display: flex; align-items: flex-end; width: 13rem; }
  .hero-cats .cat { width: 50%; }

  /* Projects: words on the left, the site on the right */
  .project { display: grid; gap: 1.5rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
  .project:first-of-type { padding-top: 0.5rem; }
  @media (min-width: 44rem) { .project { grid-template-columns: 1fr 15rem; gap: 3rem; align-items: center; } }
  .shot { display: block; max-width: 15rem; }
  .shot img { width: 100%; aspect-ratio: 600 / 1035; object-fit: cover; object-position: top; border: 2px solid var(--text); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .shot:hover img { transform: translate(3px, 3px); box-shadow: var(--shadow-hover); }

  /* Two side by side */
  .pair { display: grid; gap: 2.5rem; }
  @media (min-width: 36rem) { .pair { grid-template-columns: 1fr 1fr; } }
  .project + .pair, .pair:has(> article) { padding-top: 2.5rem; }
  figure { margin: 0; }
  figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
  figcaption { margin-top: 1.1rem; }
  figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }

  /* Footer: the same on every page */
  .site-footer { background: var(--pink); }
  .footer-inner { padding-block: 4.5rem 1.5rem; }
  .contact-form { max-width: 36rem; margin-top: 1.5rem; }
  .field { margin-bottom: 1rem; }
  .field label { display: block; margin-bottom: 0.25rem; }
  .field input, .field textarea { display: block; width: 100%; padding: 0.6rem 0.8rem; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--text); border-radius: var(--radius); }
  .field textarea { resize: vertical; min-height: 8rem; }
  .contact-form .actions { margin-top: 0.5rem; }
  .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
  .form-status { margin-top: 1rem; }
  .form-status:empty { display: none; }
  .footer-cats { display: flex; align-items: flex-end; width: 9rem; margin-top: 3rem; }
  .footer-cats .cat { width: 50%; }
  .copyright { color: var(--muted); font-size: 0.875rem; margin-top: 0.75rem; }

  /* Résumé page: same fonts as the rest of the site on screen */
  .page-head { padding-block: 3rem 2rem; }
  .page-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
  .page-head .actions { margin-top: 1rem; }
  .resume { max-width: calc(var(--max) - 3rem); border-radius: var(--radius); padding-inline: 1.5rem; }
  .resume-role { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--accent); }
  .resume-name { text-transform: none; letter-spacing: 0; }
  .resume-block h3 { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 1.25rem; color: var(--text); }
  .resume-item ul { margin: 0; }
  .resume-skills h4 { margin-bottom: 0.15rem; }

  @media (max-width: 40rem) {
    .section { padding-block: 3rem; }
    .hero { padding-block: 3rem 6rem; }
    .hero-cats { width: 10rem; right: 1rem; bottom: -6rem; }
    /* Pink fills the first screen (minus the header) so the next section doesn't peek in as a white strip */
    .hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h, 6.5rem)); }
    .hero .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .actions .btn { flex: 1 1 100%; }
    .resume { padding: 1.5rem 1rem; }
    .resume-line span { float: none; display: block; margin: 0.1rem 0 0; }
  }
}

/* ---------- Gentle cat motion (off for people who ask for less) ---------- */
.cat-eyes { transform-box: fill-box; transform-origin: center; animation: cat-blink 5s infinite; }
.cat-blade .cat-eyes { animation-duration: 6.5s; animation-delay: 1.7s; }
.cat-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: cat-tail 2.8s ease-in-out infinite alternate; }
.cat-zzz { animation: cat-zzz 3s ease-in-out infinite; }
@keyframes cat-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes cat-tail { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes cat-zzz { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-4px); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
