:root {
  --ink: #273b3d;
  --teal: #467d7f;
  --teal-deep: #346466;
  --rule: #d3e0df;
  --wall: #c3cbc7;
  --paper: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.125rem/1.6 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.skip {
  position: absolute;
  left: -999rem;
  padding: .75rem 1rem;
  background: var(--paper);
}
.skip:focus { left: 1rem; top: 1rem; z-index: 2; }

/* Portrait: top of the page on phones, fixed left half on wide screens */
.portrait { background: var(--wall); }
.portrait img {
  display: block;
  width: 100%;
  height: min(125vw, 46svh);
  object-fit: cover;
  object-position: 50% 38%;
}

main { padding: 1.5rem 1.5rem 2.5rem; }
.intro, section { max-width: 34rem; }

.mark {
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 0 0 1rem -.25rem;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.outline { stroke-width: 22; }
.script { stroke-width: 11; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 span { display: block; color: var(--teal); font-weight: 400; }

.lead {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.75rem;
  margin: 1.5rem 0 0;
}

a { color: var(--teal-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.actions a, address a { display: inline-block; padding: .35rem 0; }
.actions .button {
  padding: .8rem 1.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.actions .button:hover { background: var(--ink); }

section { margin-top: 3.25rem; }

h2 {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
section p { margin: 0; text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }
li + li { margin-top: .4rem; }

address { margin-top: 1.25rem; font-style: normal; line-height: 1.75; }
address strong { color: var(--teal-deep); font-weight: 600; }
address a { padding: .1rem 0; overflow-wrap: anywhere; }

footer {
  max-width: 34rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}
footer p { margin: 0; text-wrap: pretty; }
footer span { white-space: nowrap; }
footer p + p { margin-top: .4rem; }

@media (min-width: 54rem) {
  body { display: grid; grid-template-columns: 44vw 1fr; }
  .portrait { position: sticky; top: 0; height: 100vh; }
  .portrait img { height: 100%; object-position: 50% 30%; }
  main { padding: clamp(3rem, 12vh, 8rem) clamp(2.5rem, 6vw, 7rem) 3rem; }
  .mark { width: 6.5rem; height: 6.5rem; margin: 0 0 2rem -.4rem; }
  .actions { margin-top: 2rem; }
  section { margin-top: 4.25rem; }
}

/* The monogram draws itself once on load */
@media (prefers-reduced-motion: no-preference) {
  .mark path { stroke-dasharray: 1 2; stroke-dashoffset: 1.1; animation: draw .7s ease-out forwards; }
  .outline path:last-child { animation-duration: 1.3s; }
  .script path { animation-delay: 1.1s; animation-duration: .45s; }
  .script path:nth-child(2) { animation-delay: 1.4s; }
  .script path:nth-child(3) { animation-delay: 1.65s; }
  .script path:nth-child(4) { animation-delay: 2s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
