/* Supscore — static site stylesheet */

@font-face {
  font-family: "Artnoova";
  src: url("../fonts/artnoova-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Artnoova";
  src: url("../fonts/artnoova-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Artnoova";
  src: url("../fonts/artnoova-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Artnoova";
  src: url("../fonts/artnoova-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimsonpro-normal-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimsonpro-italic-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --green: #19bb58;
  --green-dark: #128a40; /* AA contrast on white for links */
  --red: #e41c3f;
  --magenta: #ae2482;
  --yellow: #cdd503;
  --orange: #f6a409;
  --indigo: #383387;
  --text: #4a4e57;
  --text-muted: #6a7684;
  --heading: #212934;
  --bg: #fff;
  --bg-soft: #f4f4f4;
  --max: 75rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font-body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-head: "Artnoova", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--indigo);
  color: #fff;
  font-family: var(--font-head);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  padding-block: 1rem;
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo img {
  width: 13.5rem;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 1rem;
}

.site-nav a {
  color: var(--heading);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--heading);
  border-bottom-color: var(--green);
}

/* Home hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero::before {
  /* Soft quarter circle, as on the original site */
  content: "";
  position: absolute;
  left: -20rem;
  top: -20rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: var(--bg-soft);
  z-index: -1;
}

.hero .container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 50rem) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-intro {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  letter-spacing: -0.04em;
  color: #5a5a5a;
  margin: 0;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(3rem, 2rem + 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--green);
  margin: 0.1em 0 0.3em;
}

.hero-lead {
  font-size: 1.375rem;
  color: var(--text-muted);
}

.hero-figure {
  margin: 0;
  justify-self: center;
  max-width: 25rem;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--green-dark);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.button:hover {
  color: #fff;
  background: var(--indigo);
}

/* Services */

.services {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.service {
  text-align: center;
}

.service h3 {
  color: var(--accent);
  margin-top: 1rem;
}

.service p {
  font-size: 1.125rem;
  margin-bottom: 0.5em;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.accent-red { --accent: var(--red); }
.accent-magenta { --accent: var(--magenta); }
.accent-yellow { --accent: #9ea300; } /* darker yellow for legible text */
.accent-orange { --accent: #c47f00; }
.accent-indigo { --accent: var(--indigo); }
.accent-green { --accent: var(--green-dark); }

/* Content pages */

.page-header {
  background: var(--bg-soft);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.page-header h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.prose {
  max-width: 48rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.prose h2 {
  margin-top: 2.5rem;
  color: var(--indigo);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose figure {
  margin: 1.5rem 0;
}

.prose figcaption {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
}

.gallery a {
  display: block;
  border: 1px solid #e2e2e2;
}

.warning {
  border-left: 4px solid var(--red);
  padding-left: 1rem;
}

/* Footer */

.site-footer {
  background: var(--indigo);
  color: #fff;
  font-size: 1.0625rem;
  padding-block: 2rem;
}

.site-footer .container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer a {
  color: #7ee2a5;
}

.site-footer a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.25rem;
  color: #fff;
}

.social svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.social .x { background: #000; }
.social .linkedin { background: #0a66c2; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
