/* lauraarossi.com — hand-written, inspired by "Phantom" by HTML5 UP */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --text: #585858;
  --text-strong: #3a3f3e;
  --text-muted: #8a8a8a;
  --rule: #e2e2e2;
  --timeline: #38423f;
  --accent: #21989a;
  --accent-strong: #187577;
  --overlay-text: #ffffff;
  --menu-bg: #2e3836;
  --menu-text: #ffffff;
  --icon-filter: none;
  --tile1: #21989A; --tile2: #F9AF8A; --tile3: #F8C8AF;
  --tile4: #60B0B3; --tile5: #64A38D; --tile6: #A7C4CE;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68em;
  --gutter: 2.5em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2322;
    --bg-alt: #252c2b;
    --text: #c3c9c7;
    --text-strong: #eef2f1;
    --text-muted: #8e9896;
    --rule: #37403e;
    --timeline: #8fa6a1;
    --accent: #5cc4c6;
    --accent-strong: #86d6d8;
    --menu-bg: #111615;
    --icon-filter: invert(1);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@media (max-width: 736px) { html { font-size: 16px; } :root { --gutter: 1.25em; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: color .2s ease, border-color .2s ease;
}
a:hover { color: var(--accent); border-bottom-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

strong, b { font-weight: 600; color: var(--text-strong); }

h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.3; margin: 0 0 1em; }
h1 { font-size: 2.75em; font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: .5em; }
h2 { font-size: 1.05em; font-weight: 900; text-transform: uppercase; letter-spacing: .35em; margin-top: 2.5em; }
h3 { font-size: 1em; font-weight: 800; text-transform: uppercase; letter-spacing: .25em; margin-top: 2em; }
h4 { font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .3em; margin: 1.75em 0 .75em; }
@media (max-width: 736px) {
  h1 { font-size: 2.1em; }
  h2 { letter-spacing: .2em; }
  h3 { letter-spacing: .12em; }
}

p, ul, ol { margin: 0 0 1.25em; }
ul { padding-left: 1.25em; }
li { margin-bottom: .35em; }
li > ul { margin: .35em 0 .5em; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }

.print-only { display: none; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--bg); padding: .5em 1em; z-index: 100; }
.skip-link:focus { left: 1em; }

/* ---------- Layout ---------- */

#wrapper > * > .inner {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

#header { padding: 5em 0 .5em; }
#header .inner { display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 736px) { #header { padding: 2em 0 0; } }

.logo { display: inline-flex; align-items: center; gap: .9em; border: 0; color: var(--text-strong); }
.logo:hover { color: var(--text-strong); }
.logo .symbol img { width: 1.9em; height: auto; display: block; filter: var(--icon-filter); }
.logo .title { font-weight: 900; text-transform: uppercase; letter-spacing: .35em; font-size: .9em; }

.menu-toggle {
  position: fixed; top: 2.25em; right: 2.5em; z-index: 20;
  display: flex; align-items: center; gap: .6em;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border: 0; border-radius: 4px; padding: .6em .4em; cursor: pointer;
  color: var(--text-strong); font: inherit;
}
.menu-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 2em; height: 2px; background: currentColor; content: "";
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before { position: absolute; top: -8px; }
.menu-toggle .bars::after { position: absolute; top: 8px; }
@media (max-width: 736px) { .menu-toggle { top: 1.35em; right: 1em; } }

/* ---------- Slide-in menu ---------- */

#menu {
  position: fixed; inset: 0; z-index: 30;
  display: flex; justify-content: flex-end;
  visibility: hidden;
  transition: visibility 0s linear .45s;
}
#menu[hidden] { display: flex; }
#menu .menu-close {
  position: absolute; inset: 0; z-index: -1; border: 0; padding: 0;
  background: rgba(0,0,0,.25); opacity: 0; transition: opacity .45s ease; cursor: pointer;
}
#menu .menu-inner {
  width: min(22em, 85vw); height: 100%; overflow-y: auto;
  background: var(--menu-bg); color: var(--menu-text);
  padding: 3em 2.5em; transform: translateX(100%); transition: transform .45s ease;
}
body.menu-open #menu { visibility: visible; transition: none; }
body.menu-open #menu .menu-inner { transform: none; }
body.menu-open #menu .menu-close { opacity: 1; }
#menu h2 { color: inherit; font-size: .8em; margin: 0 0 2em; }
#menu ul { list-style: none; padding: 0; margin: 0; }
#menu li { margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
#menu li:first-child { border-top: 0; }
#menu a { display: block; padding: .8em 0; border: 0; color: inherit; font-weight: 400; letter-spacing: .05em; }
#menu a:hover, #menu a[aria-current="page"] { color: var(--tile2); }
@media (prefers-reduced-motion: reduce) { #menu .menu-inner, #menu .menu-close { transition: none; } }

/* ---------- Page header ---------- */

#main { padding: 2.5em 0 2em; }
.page-header { margin-bottom: 3em; }
.page-header h1 { margin-top: 0; }
.page-header .tagline { font-size: 1.15em; margin: 0; }
.page-header .lead { font-size: 1.15em; max-width: 42em; }
.page-header.home { margin-bottom: 1.5em; }

.intro { max-width: 46em; font-size: 1.1em; margin-bottom: 2.5em; }
.intro p:last-child { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: .75em; margin: 1.5em 0 0; }
.button {
  display: inline-block; border: 2px solid var(--text-strong); border-radius: 4px;
  padding: .55em 1.4em; font-size: .8em; font-weight: 800; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-strong);
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button.primary { background: var(--text-strong); color: var(--bg); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Tiles (home) ---------- */
/* The grid decides the size of each square; everything inside a tile (title size,
   letter-spacing, whether the description shows) scales from the tile's own width
   through container queries, so it works at any screen size. */

.tiles {
  display: grid;
  gap: clamp(.6rem, 1.8vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 3em;
}
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Very narrow phones: one column of short banners rather than tiny squares */
@media (max-width: 340px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 2 / 1; }
}

.tile {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px;
  container-type: inline-size;
}
.tile .image { position: absolute; inset: 0; display: block; transition: transform .5s ease; }
.tile .image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .image::before {
  content: ""; position: absolute; inset: 0; opacity: .8; transition: opacity .5s ease;
  background: var(--tile-color);
}
.tile .image::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='white' stroke-width='1' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.tile.style1 { --tile-color: var(--tile1); }
.tile.style2 { --tile-color: var(--tile2); }
.tile.style3 { --tile-color: var(--tile3); }
.tile.style4 { --tile-color: var(--tile4); }
.tile.style5 { --tile-color: var(--tile5); }
.tile.style6 { --tile-color: var(--tile6); }

.tile > a {
  position: absolute; inset: 0; z-index: 1; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8cqi; text-align: center; color: var(--overlay-text);
}
.tile > a:hover { color: var(--overlay-text); }
.tile h2 {
  margin: 0; color: inherit;
  font-size: clamp(.72rem, 6.5cqi, 1.2rem);
  letter-spacing: clamp(.1em, 1.4cqi, .35em);
  margin-right: calc(-1 * clamp(.1em, 1.4cqi, .35em)); /* optical centring: cancel trailing spacing */
  text-shadow: 0 1px 6px rgba(0,0,0,.18);
  overflow-wrap: anywhere;
}
.tile .content {
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .5s ease;
  font-weight: 400; line-height: 1.4; font-size: clamp(.8rem, 5cqi, 1rem);
}
.tile .content p { margin: .6em 0 0; }
.tile:hover .image, .tile:focus-within .image { transform: scale(1.08); }
.tile:hover .image::before, .tile:focus-within .image::before { opacity: .92; }
.tile:hover .content, .tile:focus-within .content { max-height: 10em; opacity: 1; }
/* Touch screens can't hover: show the description when the tile has room for it */
@media (hover: none) {
  @container (min-width: 15rem) { .tile .content { max-height: 10em; opacity: 1; } }
}
/* Small tiles: title only */
@container (max-width: 11rem) { .tile .content { display: none; } }
@media (prefers-reduced-motion: reduce) { .tile .image, .tile .content { transition: none; } }

/* ---------- Prose ---------- */

.prose { max-width: 52em; }
.prose > h2:first-child { margin-top: 0; }
.prose a[href$=".pdf"]::after, .prose a[href$=".docx"]::after { content: " ↓"; border: 0; }

.meta {
  font-size: .85em; font-weight: 400; color: var(--text-muted);
  letter-spacing: .08em; margin: -.6em 0 1em;
}
.meta em { font-style: normal; }

/* "Highlights" style: a list right after a section heading reads as cards */
.prose blockquote {
  margin: 0 0 1.5em; padding: 1em 1.4em; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 4px 4px 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: .95em; }
.prose th, .prose td { text-align: left; padding: .5em .75em; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; color: var(--text-strong); }

/* ---------- Timeline (paw markers) ---------- */

.timeline { list-style: none; padding: 0; margin: 0 0 2em; }
.timeline .entry {
  position: relative; margin: 0; padding: 0 0 1.25em 2.75em;
}
.timeline .entry::before {
  content: ""; position: absolute; left: 11px; top: 1.9em; bottom: 0; width: 3px;
  background: var(--timeline); border-radius: 2px;
}
.timeline .entry:last-child::before { bottom: 1.5em; }
.timeline .entry::after {
  content: ""; position: absolute; left: 0; top: .1em; width: 25px; height: 25px;
  background: url("/images/paw.svg") center / contain no-repeat;
  filter: var(--icon-filter);
}
.timeline .entry > h3 { margin-top: 0; padding-top: .15em; }
.timeline .entry > :last-child { margin-bottom: 0; }
.timeline .entry + .entry { padding-top: 1.25em; }
.timeline .entry + .entry::after { top: 1.35em; }
.timeline .entry + .entry::before { top: 3.15em; }

/* ---------- Gallery + lightbox ---------- */

.gallery {
  display: grid; gap: .9em;
  grid-template-columns: repeat(auto-fill, minmax(9em, 1fr));
  margin: 0 0 2em;
}
.gallery-item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 6px; overflow: hidden; aspect-ratio: .75;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 14, 13, .85); }
.lightbox img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: -.6em; right: -.6em; width: 2em; height: 2em; border-radius: 50%;
  border: 0; background: #fff; color: #222; font-size: 1.4em; line-height: 1; cursor: pointer;
}

/* ---------- Footer ---------- */

#footer { background: var(--bg-alt); padding: 4em 0 3em; margin-top: 3em; }
#footer .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1em 3em; }
#footer section h2 { margin-top: 0; font-size: .85em; }
@media (max-width: 736px) { #footer .inner { grid-template-columns: 1fr; } }

.icons { list-style: none; padding: 0; display: flex; gap: .9em; margin: 0; }
.icons li { margin: 0; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75em; height: 2.75em; border: 1px solid var(--text-strong); border-radius: 50%;
  color: var(--text-strong);
}
.icon svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.icon:hover { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }

.footer-nav { list-style: none; padding: 0; columns: 2; margin: 0; }
.footer-nav a { border: 0; }

.copyright {
  grid-column: 1 / -1; list-style: none; padding: 0; margin: 2em 0 0;
  font-size: .8em; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .4em 1.5em;
}
.copyright li { margin: 0; }

/* ---------- Print: any page prints as a clean CV-style document ---------- */

@media print {
  :root { --text: #222; --text-strong: #000; --text-muted: #555; --timeline: #999; --icon-filter: none; }
  html { font-size: 10.5pt; }
  body { background: #fff; }
  .menu-toggle, #menu, #footer, .actions, .skip-link, .lightbox, .gallery { display: none !important; }
  #header { padding: 0 0 1em; }
  #main { padding: 0; }
  #wrapper > * > .inner { max-width: none; padding: 0; }
  a { border: 0; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  h2, h3, h4, .meta { break-after: avoid; }
  ul > li { break-inside: avoid; }
  .prose h3 a::after { content: none !important; }
  .print-only { display: block !important; font-size: .9em; margin: -.5em 0 1.5em; }
  .tiles { display: none; }
}

/* Without JavaScript the footer links are the navigation */
html:not(.js) .menu-toggle { display: none; }

.timeline ul { list-style: disc; }
.timeline ul ul { list-style: circle; }
