/* ricarda.cloud – colours, fonts and the link page.
   Used by every page; the imprint, privacy and 404 pages add legal.css on top.

   Palette
     pinks   #EEBBBB #F6C8C7 #F9D6D5 #FBE3E3 #FDF1F1
     browns  #4F3624 #7A563B #A67B5B #C9A483 #E9D3BC

   Every text/background pair below meets WCAG 2.2 AA (4.5:1 for text, 3:1 for
   borders and the focus ring). Contrast ratios are noted next to each pair. */

/* Fonts (self-hosted, SIL Open Font License 1.1)
   –––––––––––––––––––––––––––––––––––––––––––––––––– */
/* Inter Black: the name "ricarda" */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/inter-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/inter-900-latin.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;
}

/* Inter SemiBold: section headings above the buttons */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin.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;
}

/* Noto Serif Display SemiBold: headings on the legal pages */
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-display-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-display-600-latin.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;
}

/* Be Vietnam Pro: buttons (600) and running text (400) */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-400-latin.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-600-latin.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;
}

/* Colour tokens
   –––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  color-scheme: light dark;

  --font-name: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --font-ui: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;

  /* Light: pink page, pale buttons, brown type */
  --bg: #F9D6D5;
  --bg-top: #F6C8C7;
  --text: #4F3624;            /*  8.3:1 on --bg */
  --text-soft: #7A563B;       /*  4.8:1 on --bg */
  --heading: #7A563B;         /*  4.8:1 on --bg (4.3:1 on --bg-top, large text needs 3:1) */
  --link: #7A563B;
  --link-hover: #4F3624;
  --btn-bg: rgba(79, 54, 36, 0.14); /* translucent #4F3624 over the pink page */
  --btn-text: #4F3624;        /*  6.0:1 or better on --btn-bg over the page */
  --btn-border: #7A563B;      /*  4.8:1 on --bg */
  --btn-hover-bg: #4F3624;
  --btn-hover-text: #FDF1F1;  /* 10.1:1 on --btn-hover-bg */
  --focus: #4F3624;           /*  8.3:1 on --bg */
  --ring: #FDF1F1;
  --rule: #C9A483;
}

/* Dark: deep espresso browns and beige only, no pink or golden brown */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221815;
    --bg-top: #2C1F1A;          /* #221815 lifted a touch */
    --text: #E9D3BC;            /* 12.0:1 on --bg */
    --text-soft: #C8AE98;       /*  8.2:1 on --bg */
    --heading: #C8AE98;         /*  8.2:1 on --bg */
    --link: #C8AE98;
    --link-hover: #E9D3BC;
    --btn-bg: #36271F;
    --btn-text: #E9D3BC;        /*  9.9:1 on --btn-bg */
    --btn-border: #A58B76;      /*  5.4:1 on --bg */
    --btn-hover-bg: #E9D3BC;
    --btn-hover-text: #221815;  /* 12.0:1 on --btn-hover-bg */
    --focus: #E9D3BC;           /* 12.0:1 on --bg */
    --ring: #A58B76;            /*  5.4:1 on --bg */
    --rule: #5C473B;
  }
}

/* Base
   –––––––––––––––––––––––––––––––––––––––––––––––––– */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 22rem);
  background-repeat: no-repeat;
}

.container {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.avatar {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Link page
   –––––––––––––––––––––––––––––––––––––––––––––––––– */
.links {
  padding-top: clamp(2.5rem, 9vh, 5rem);
  padding-bottom: 3rem;
}

.profile {
  margin-bottom: 2.5rem;
}

.name {
  margin: 1.5rem 0 0;
  font-family: var(--font-name);
  font-size: clamp(2.75rem, 12vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section + .section {
  margin-top: 2.25rem;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-name);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.link-list {
  display: grid;
  gap: 0.875rem;
  margin: 0 auto;
  padding: 0;
  max-width: 25rem;
  list-style: none;
}

/* Buttons */
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 3.5rem;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--btn-text);
  text-decoration: none;
  background-color: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: 999px;
}

.button:hover {
  color: var(--btn-hover-text);
  background-color: var(--btn-hover-bg);
  text-decoration: none;
}

.button:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

/* Brand marks are single-colour SVGs used as masks, so they always take the
   button's text colour and keep its contrast in both themes. */
.icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: -0.6875rem;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-youtube  { --icon: url("/images/icons/mono-youtube.svg"); }
.icon-twitch   { --icon: url("/images/icons/mono-twitch.svg"); }
.icon-whatsapp { --icon: url("/images/icons/mono-whatsapp.svg"); }
.icon-kofi     { --icon: url("/images/icons/mono-kofi.svg"); }
.icon-throne   { --icon: url("/images/icons/mono-throne.svg"); }
.icon-pirumi   { --icon: url("/images/icons/mono-pirumi.svg"); }
.icon-instagram { --icon: url("/images/icons/mono-instagram.svg"); }

.site-foot {
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.site-foot a {
  color: var(--text-soft);
}

.site-foot a:hover {
  color: var(--text);
}

.site-foot .sep {
  margin: 0 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  }
  .button:hover {
    transform: translateY(-1px);
  }
  .button:active {
    transform: translateY(0);
  }
}

/* Windows high contrast and other forced-colour modes */
@media (forced-colors: active) {
  .button {
    border-color: ButtonBorder;
  }
  .icon {
    forced-color-adjust: none;
    background-color: LinkText;
  }
  .avatar {
    box-shadow: none;
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
}
