/* Self-hosted fonts (SIL Open Font License, see /assets/fonts) */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lora-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}

:root {
    --bg: #ffffff;
    --ink: #000000;
    --select: #b5c8f7;
  }

  * { box-sizing: border-box; }

  html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
  }

  /* Centred header: photo + name, links home */
  .top {
    display: flex;
    justify-content: center;
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.25rem 0;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.585rem;
    color: var(--ink);
    text-decoration: none;
  }

  .brand:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 4px;
  }

  .pfp {
    flex: none;
    width: 2.925rem;
    height: 2.925rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #e9e9e9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.16);
    overflow: hidden;
  }

  .pfp img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .name {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 1.381rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  main {
    max-width: 38rem;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 4rem;
  }

  h1 {
    margin: 0 0 0.5rem;
    font-size: 2.125rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .updated {
    margin: 0 0 3rem;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
  }

  h2 {
    margin: 3.25rem 0 1rem;
    font-size: 1.375rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  p {
    margin: 0 0 1.25rem;
  }

  /* Placeholders to fill in before publishing */
  .fill {
    background: var(--select);
    color: var(--ink);
    padding: 0.04em 0.2em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .footer {
    margin: 0 auto;
    max-width: 38rem;
    padding: 0 1.5rem calc(4rem + env(safe-area-inset-bottom, 0px));
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #5a5a5a;
    overflow-wrap: anywhere;
  }

  .footer p { margin: 0 0 0.5rem; }

  @media (max-width: 480px) {
    body { font-size: 1rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; margin-top: 2.75rem; }
    main { padding-top: 3.25rem; }
  }
