:root {
  --bg: #fff;
  --ink: #000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 "Times New Roman", Times, serif;
  min-height: 100vh;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

main {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 12vh, 110px) 24px 80px;
}

.flag { display: block; width: 50px; height: auto; margin: 0 0 24px; }

h1 {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

p { margin-bottom: 10px; }

a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; }
p a:hover { opacity: .6; }
.flaglink { display: inline-block; }
.project { font-size: 30px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Projects / Essays: outlined boxes */
.pages { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin: 34px 0 34px; }
.pages a {
  border: 1.5px solid var(--ink);
  padding: 11px 26px;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.pages a:hover { background: var(--ink); color: var(--bg); }

/* X / LinkedIn / Email */
.icons { display: flex; justify-content: flex-start; gap: 22px; align-items: center; }
.icons a { display: block; line-height: 0; transition: opacity .2s; }
.icons a:hover { opacity: .55; }
.icons svg { height: 25px; width: auto; display: block; }
.icons a:nth-child(1) svg { width: 29px; }
.icons a:nth-child(2) svg, .icons a:nth-child(3) svg { width: 25px; }

/* sub pages */
.back { display: inline-block; margin-bottom: 40px; }
.back:hover { text-decoration: underline; }
h2 { font-weight: 700; font-size: 30px; margin-bottom: 24px; }
.list { list-style: none; border-top: 2px solid var(--ink); }
.list li { padding: 18px 0; border-bottom: 1px solid var(--ink); }
.list .m { display: block; font-size: .8em; opacity: .6; }
.list .empty { opacity: .6; }

@media (max-width: 520px) {
  .pages a { padding: 9px 18px; }
}
