/* Carmine Advisors: one-page site. Brand: skills/carmine-brand/SKILL.md */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-400.02194deb92.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Swap the text face here only. */
  --font-text: 'Source Serif 4', Georgia, serif;
  --white: #FFFFFF;
  --ink: #111A16;
  --green: #2D7445;
  --rule: #8A948F;   /* lines only, never text */
  --logo-width: 260px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-text);
  font-weight: 400;
  background-color: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem 5rem;
}

h1 {
  font-weight: 400;   /* only Regular 400 is shipped: never synthesise bold */
}

.content {
  text-align: center;
  max-width: 620px;
}

/* The logo SVG carries its own margin (about 5% of its width on every side),
   which is more than the height of the word ADVISORS: the brand clear space. */
.logo {
  margin-bottom: 1.25rem;
  line-height: 0;
}

.logo img {
  display: inline-block;
  width: var(--logo-width);
  height: auto;
}

.tagline {
  font-size: 1.1875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact {
  position: fixed;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  text-align: center;
}

.contact a,
.back a {
  font-family: var(--font-text);
  font-size: 1.125rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.contact a:hover,
.contact a:focus-visible,
.back a:hover,
.back a:focus-visible {
  border-bottom-color: var(--green);
}

.contact a:focus-visible,
.back a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.back {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  :root { --logo-width: 320px; }
  .tagline { font-size: 1.375rem; }
}

@media (max-width: 480px) {
  :root { --logo-width: 210px; }
  .logo { margin-bottom: 1rem; }
  .tagline { font-size: 0.9375rem; }
  .contact a,
  .back a { font-size: 0.875rem; }
}

/* Short screens (phones in landscape): keep the fixed link clear of the tagline. */
@media (max-height: 500px) {
  :root { --logo-width: 190px; }
  body { padding: 1rem 2rem 3.5rem; }
  .logo { margin-bottom: 0.5rem; }
  .tagline { font-size: 1rem; }
  .contact { bottom: 1.25rem; }
  .contact a,
  .back a { font-size: 0.9375rem; }
  .back { margin-top: 1.25rem; }
}
