/* Layout intentionally kept very close to the simple, text-first
   structure of rory.codes: narrow column, plain links, horizontal rules,
   almost no decorative UI. */

:root {
  --background: #ffffff;
  --text: #222222;
  --muted: #555555;
  --link: #111111;
  --line: #222222;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.container {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 48px 0 70px;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
}

.intro {
  margin: 0;
  max-width: 720px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 27px 0 22px;
}

section {
  margin: 0 0 27px;
}

h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

ul {
  margin: 0;
  padding-left: 28px;
}

li {
  margin: 0;
  padding-left: 2px;
}

small {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

section p {
  margin: 0 0 10px;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 760px);
    padding-top: 28px;
  }

  h1 {
    font-size: 24px;
  }

  body {
    font-size: 15px;
  }

  small {
    display: block;
    margin-left: 0;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}
