:root {
  --cream: #f3ead6;
  --paper: #f7efdd;
  --ink: #0e3f50;
  --teal: #265f66;
  --plum: #6a345c;
  --mustard: #ccb94b;
  --orange: #c3582c;
  --magenta: #a02264;
  --display: "Lilita One", sans-serif;
  --label: "Josefin Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 19px/1.7 "Playfair", serif;
}

a { color: var(--teal); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

/* Sidebar: a top band on phones, a sticky column from 800px up. */
.sidebar {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.badge { display: block; width: 64px; height: 64px; padding: 6px; border-radius: 14px; background: var(--cream); }
.badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.name { margin-right: auto; font-family: var(--display); font-size: 28px; line-height: 0.95; text-transform: uppercase; text-decoration: none; }
.name span { display: block; }
.name span:first-child { color: var(--paper); text-shadow: 2px 2px 0 var(--orange); }
.name span:last-child { color: var(--mustard); text-shadow: 2px 2px 0 var(--plum); }

.sidebar nav { display: flex; gap: 4px 24px; }
.sidebar nav a, .sidebar-foot {
  font-family: var(--label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--paper); text-decoration: none; font-size: 16px; }
.sidebar nav a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.sidebar nav a[aria-current] { color: var(--mustard); }
.sidebar nav a[aria-current]::before { background: var(--mustard); }
.sidebar-foot { font-size: 13px; font-weight: 600; color: var(--mustard); }
.sidebar-foot a { color: var(--paper); }

main { padding: 40px 24px 64px; min-width: 0; }

@media (min-width: 800px) {
  .layout { display: flex; }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    flex: 0 0 280px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 32px;
  }
  .badge { width: 120px; height: 120px; padding: 10px; border-radius: 22px; }
  .name { font-size: 48px; margin-right: 0; }
  .name span:first-child { text-shadow: 3px 3px 0 var(--orange); }
  .name span:last-child { text-shadow: 3px 3px 0 var(--plum); }
  .sidebar nav { flex-direction: column; }
  .sidebar-foot { margin-top: auto; }
  main { flex: 1; padding: 64px 72px; }
}

/* Headings */
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h1 { margin: 0 0 12px; font-size: 56px; color: var(--teal); text-shadow: 4px 3px 0 var(--mustard); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 30px; color: var(--magenta); text-transform: uppercase; }
.more { margin-left: auto; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Homepage fits one screen */
.home main { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 800px) {
  .home main { justify-content: center; min-height: 100vh; }
}
.intro { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.intro > div { flex: 999 1 360px; min-width: 0; }
.intro p { margin: 0; }
.intro p + p { margin-top: 0.6em; }
.portrait {
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mustard);
  border: 8px solid var(--orange);
  box-shadow: 0 0 0 8px var(--teal);
}

/* Post lists */
.posts { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.posts li { border-bottom: 2px solid var(--ink); }
.posts a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 14px 0; color: var(--ink); text-decoration: none; }
.posts a:hover span { color: var(--teal); }
.posts time { flex: 0 0 140px; }
.posts span { font-family: var(--display); font-size: 24px; line-height: 1.15; }
time { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); }

/* Posts */
article { max-width: 38em; }
article h1 { margin-bottom: 8px; }
article h2 { margin: 2em 0 0.25em; font-size: 30px; color: var(--teal); }
blockquote { margin: 1.5em 0; padding: 0 0 0 1em; font-style: italic; color: var(--teal); border-left: 3px solid var(--mustard); }

/* Work */
.cases { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 40px; }
@media (min-width: 1200px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 3px solid var(--ink); border-radius: 14px; background: #fff; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cases h2 { margin: 18px 0 6px; font-size: 30px; }
.cases h2 a { color: var(--magenta); text-decoration: none; }
.cases h2 a:hover { color: var(--plum); }
.cases p { margin: 0; }
.cases p + p { margin-top: 0.6em; }
