/* =========================================================================
   Studio Name — starter stylesheet
   This is a plain, minimal baseline. The designer replaces / extends it.
   Tweak the values in :root first; most of the look comes from there.
   ========================================================================= */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-accent: #1a1a1a;
  --color-border: #e5e5e5;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --space: 1rem;
  --container-width: 64rem;
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }

/* --- base ------------------------------------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p + p, p + ul, h2, h3 { margin-top: var(--space); }
h2, h3 { margin-top: calc(var(--space) * 2); }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f4f4f4;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* --- layout --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: calc(var(--space) * 1.5);
}

main > section { padding-block: calc(var(--space) * 3); }

/* --- header / nav -------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  padding-block: var(--space);
}
.site-header__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1.25);
}
.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

/* --- footer ------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: calc(var(--space) * 4);
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space);
  padding-block: calc(var(--space) * 2);
}
.site-footer a { color: var(--color-muted); }

/* --- components -------------------------------------------------- */
.hero { padding-block: calc(var(--space) * 4) calc(var(--space) * 3); }
.hero__lead { color: var(--color-muted); font-size: 1.25rem; max-width: 42rem; }

.button {
  display: inline-block;
  margin-top: var(--space);
  padding: 0.7em 1.4em;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover { opacity: 0.9; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: calc(var(--space) * 1.5);
  margin-top: calc(var(--space) * 1.5);
}

.contact-list { margin-top: var(--space); padding-left: 1.25rem; }
.contact-list li { margin-top: 0.4rem; }

/* --- dark mode: match the visitor's OS setting ------------------ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-text: #f2f2f2;
    --color-muted: #a3a3a3;
    --color-accent: #f2f2f2;
    --color-border: #2a2a2a;
  }
  code { background: #1e1e1e; }
  .button { color: #111111; }
}
