:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #6d675f;
  --mark: #ffe14a;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at calc(100% - 9rem) 15.5rem, #f14c32 0 0.7rem, transparent 0.8rem),
    radial-gradient(circle at calc(100% - 1rem) 17.5rem, transparent 0 2rem, #f14c32 2.08rem 2.22rem, transparent 2.32rem);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 9.5rem;
  height: 9.5rem;
  right: 2.75rem;
  top: 3.4rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) center 36% / 100% 0.42rem no-repeat,
    linear-gradient(var(--bg), var(--bg)) center 64% / 100% 0.42rem no-repeat,
    linear-gradient(var(--mark) 0 36%, #ff8a2e 36% 64%, #e4376e 64% 100%);
}

.page { position: relative; z-index: 1; }

::selection { background: var(--mark); }

.page {
  box-sizing: border-box;
  max-width: 40rem;
  margin-left: max(1.5rem, 11vw);
  margin-right: max(1.5rem, 11vw);
  padding: 11vh 0 5rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.mark {
  width: 3.4rem;
  height: auto;
  display: block;
  margin-bottom: 2.5rem;
}

h1 {
  /* Pull left so Fraunces sidebearing optically lines up with the logo and body. */
  margin: 0 0 1.4rem -0.08em;
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(3.1rem, 8vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.about {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2.75rem;
  max-width: 36rem;
}

.about p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.55;
}

.links {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.links a svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  background: var(--mark);
  text-decoration: none;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.copy p { margin: 0; }

@media (max-width: 800px) {
  body { background-image: none; }
  body::before {
    width: 7.5rem;
    height: 7.5rem;
    right: -2.4rem;
    top: -2.4rem;
  }
}

@media (max-width: 640px) {
  .page {
    /* Drop the 11vw side margins on phones — they felt left-heavy.
       Use equal inline padding so gutters can't be eaten by min-content. */
    margin-left: 0;
    margin-right: 0;
    padding: 3rem 1.5rem 5rem;
  }
  h1 { font-size: clamp(2.75rem, 11.5vw, 3.25rem); }
  .about p { font-size: 1.12rem; }
}
