:root {
  --bg: #f6f3ee;
  --ink: #171614;
  --muted: #6b675f;
  --line: #e4dfd6;
  --card: #fffdf9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

header {
  display: grid;
  grid-template-columns: 96px minmax(0, 0.9fr) minmax(220px, 1.2fr);
  gap: 20px 24px;
  align-items: center;
  margin-bottom: 36px;
}

.world {
  min-width: 0;
  height: 168px;
}

.world canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.lead {
  margin: 8px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.socials a:hover {
  border-bottom-color: var(--ink);
}

.bio {
  margin: 0 0 36px;
  color: var(--muted);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  hanging-punctuation: first last;
  text-wrap: pretty;
}

.bio em {
  font-style: italic;
}

.cal {
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

#my-cal-inline-15min {
  width: 100%;
  height: 100%;
  overflow: auto;
}

@media (max-width: 820px) {
  header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .intro {
    width: 100%;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .socials {
    justify-content: center;
  }

  .world {
    grid-column: 1 / -1;
    width: 100%;
    height: 150px;
  }

  .bio {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 32px 16px 64px;
  }
}
