@font-face {
  font-family: "Carlito";
  src: url("./fonts/Carlito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Carlito";
  src: url("./fonts/Carlito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Carlito";
  src: url("./fonts/Carlito-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Carlito";
  src: url("./fonts/Carlito-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
  font-family: "Carlito", "Calibri", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

button, input, select, textarea {
  font: inherit;
}

@font-face {
  font-family: "Tinos";
  src: url("./fonts/Tinos-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tinos";
  src: url("./fonts/Tinos-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tinos";
  src: url("./fonts/Tinos-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Tinos";
  src: url("./fonts/Tinos-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

.font-tinos {
  font-family: "Tinos", "Times New Roman", serif;
}

/* Compact, readable layout on both mobile and desktop. */
main {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 16px 24px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 16px;
  line-height: 1.2;
}

h2 {
  margin: 16px 0 8px;
  line-height: 1.25;
}

h3 {
  margin: 14px 0 6px;
  line-height: 1.25;
}

p {
  margin: 0 0 8px;
}

/* Hand-drawn-style annotation beside the contact line. */
.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 145px);
  column-gap: 8px;
  align-items: end;
  margin: 0 0 8px;
}

.contact-details { min-width: 0; }
.contact-details p { margin: 0; }

.contact-annotation {
  min-width: 0;
  padding: 3px 5px 0 0;
  align-self: end;
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
}

.contact-annotation span {
  display: block;
  transform: rotate(12deg);
  transform-origin: center;
}

.contact-annotation svg {
  display: block;
  width: 82%;
  max-width: 108px;
  height: auto;
  margin: 2px auto -5px 0;
  overflow: visible;
}

@media (max-width: 350px) {
  .contact-heading { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .contact-annotation { font-size: 0.75rem; }
}
