/* YCappuccino's page: light, the teal and coffee of the logo. It styles the yc-* classes ui_static writes. */
:root {
  --bg: #f7f5f2;
  --panel: #ffffff;
  --ink: #1f2a30;
  --muted: #5b6870;
  --line: #e2ddd6;
  --teal: #1f7a6d;
  --teal-dark: #155b51;
  --coffee: #6b4a35;
  --code-bg: #1f2a30;
  --code-ink: #e8f1ee;
  --radius: 10px;
  --nav-h: 72px;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

html {
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
}

/* the bar: the name, the sections, the languages */
/* one line: the sections scroll sideways when they do not fit; narrower, a burger opens them */
.yc-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.yc-brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.yc-menus {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 2px;
}

.yc-nav-link,
.yc-languages {
  flex-shrink: 0;
  white-space: nowrap;
}

.yc-nav-link {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.yc-nav-link:hover,
.yc-nav-link:focus-visible {
  background: #e9f3f1;
  color: var(--teal-dark);
}

.yc-languages {
  display: flex;
  gap: 4px;
}

.yc-language {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
}

.yc-language[aria-current="true"] {
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 600;
}

.yc-burger-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
  clip: rect(0 0 0 0);
}

.yc-burger {
  display: none;
}

/* the page: one column of sections */
.yc-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.yc-section {
  padding: 40px 0 8px;
}

.yc-content > .yc-page > .yc-section + .yc-section,
.yc-page > .yc-section + .yc-section {
  border-top: 1px solid var(--line);
}

.yc-section-title {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--teal-dark);
}

.yc-heading {
  margin: 8px 0 4px;
  font-size: 44px;
  line-height: 1.1;
  color: var(--ink);
}

.yc-text {
  margin: 0 0 14px;
  max-width: 72ch;
}

.yc-image {
  display: block;
  width: 260px;
  max-width: 70%;
  height: auto;
  margin: 0 0 8px;
}

/* the home: the logo, the name, two buttons */
#accueil {
  padding-top: 24px;
}

#accueil > .yc-image {
  margin-left: auto;
  margin-right: auto; /* the logo centred over the home */
}

#accueil > .yc-section-title {
  display: none; /* the menu names it; the logo and the name head it */
}

#accueil > .yc-text:first-of-type {
  font-size: 22px;
  color: var(--coffee);
}

.yc-button,
#accueil .yc-link {
  display: inline-block;
  margin: 8px 12px 8px 0;
  padding: 11px 20px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.yc-button:hover,
.yc-button:focus-visible,
#accueil .yc-link:hover,
#accueil .yc-link:focus-visible {
  background: var(--teal-dark);
  color: #fff;
}

#accueil .yc-link + .yc-link {
  background: transparent;
  color: var(--teal-dark);
}

/* a section of sections (features, applications, technologies): cards in a grid */
.yc-section:has(> .yc-section) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  align-items: start;
}

.yc-section:has(> .yc-section) > .yc-section-title,
.yc-section:has(> .yc-section) > .yc-text {
  grid-column: 1 / -1;
}

.yc-section .yc-section {
  padding: 18px 20px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.yc-section .yc-section .yc-section-title {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--ink);
}

.yc-section .yc-section .yc-text {
  font-size: 15.5px;
  color: var(--muted);
}

/* the code samples */
.yc-pre {
  max-width: none;
  margin: 4px 0 22px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  font: 14px/1.6 var(--mono);
  white-space: pre;
}

/* the last links */
.yc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 8px 0 0;
}

.yc-link {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .yc-nav {
    flex-wrap: wrap;
  }

  .yc-brand {
    margin-right: auto;
  }

  .yc-burger {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .yc-burger::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 9px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
  }

  .yc-menus {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
  }

  .yc-burger-toggle:checked ~ .yc-menus {
    display: flex;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .yc-nav {
    padding: 10px 16px;
  }

  .yc-content {
    padding: 8px 16px 48px;
  }

  .yc-heading {
    font-size: 34px;
  }

  .yc-section-title {
    font-size: 25px;
  }
}
