/* Lauren Meadows main page: portrait and name on one side, link buttons on the other. */

:root {
  --ink: #536163;
  --button: #e8f5f7;
  --line: rgb(0 0 0 / 0.051);
  --pad: 4rem;
  --radius: 1.75rem;
}

/* Carrd scaled the whole page by screen width; these keep its three sizes. */
html { font-size: 91.667%; }
@media (min-width: 981px) { html { font-size: 108.333%; } }
@media (min-width: 1681px) { html { font-size: 150%; } }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background-color: #f2f2f2;
}

/* Fixed backdrop: two faint dots per tile over a soft grey glow. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("assets/images/dots.svg") center / 799px repeat,
    radial-gradient(94% 32% at 100% 78%, #dedede 45%, #f2f2f2 100%);
}

.card {
  inline-size: min(59rem, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--pad);
  background: #fff;
  border-radius: var(--radius);
}

.who { padding-inline-end: var(--pad); }

.portrait {
  display: block;
  inline-size: 15rem;
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 50%;
}

h1 {
  margin: 1.375rem 0 0;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
}

.links {
  list-style: none;
  margin: 0;
  /* The divider between the two halves, stretched over the card's padding. */
  padding: var(--pad) 0 var(--pad) var(--pad);
  margin-block: calc(var(--pad) * -1);
  border-inline-start: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.86rem 1.25rem 2rem;
  border-radius: 2.5rem;
  font-size: 1.125rem;
  line-height: 2rem;
  background: var(--button);
  color: inherit;
  text-decoration: none;
}

.links svg {
  flex: none;
  inline-size: 1.75em;
  block-size: 2rem;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .links a:hover { transform: scale(1.0425); }
}

.links a:active { transform: scale(0.98); }

@media (prefers-reduced-motion: no-preference) {
  .links a { transition: transform 0.25s ease; }
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Icon definitions; the buttons reference them with <use>. */
.sprite { display: none; }

/* Phone: one centered column, card runs edge to edge. */
@media (max-width: 736px) {
  :root { --pad: 2.5rem; }

  body { padding: 0; }

  .card {
    grid-template-columns: 1fr;
    padding: 4rem var(--pad);
    text-align: center;
  }

  .who { padding: 0 0 var(--pad); }
  .portrait { margin-inline: auto; }

  h1 {
    margin-block-start: 1.5rem;
    font-size: 4.25rem;
  }

  .links {
    margin: 0 calc(var(--pad) * -1);
    padding: var(--pad) var(--pad) 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
    text-align: start;
  }
}
