/* Studio Sensorium — minimal site styles */

:root {
  --bg: #f7f5f0;
  --surface: #efebe3;
  --text: #1c1c1a;
  --muted: #5f5d57;
  --line: #d9d4c9;
  --accent: #2f5d62;
  --accent-ink: #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 10vw, 8rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151614;
    --surface: #1e201d;
    --text: #ecebe6;
    --muted: #a6a49c;
    --line: #34362f;
    --accent: #8fbcc0;
    --accent-ink: #10201f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--muted);
  max-width: 48ch;
}

.eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Sections */

.hero {
  padding: var(--space) 0;
}

.section {
  padding: var(--space) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 48rem) {
  .section-head {
    grid-template-columns: 1fr 1.4fr;
    align-items: end;
  }
  .section-head p {
    margin: 0;
  }
}

.grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  border-top: 1px solid var(--text);
  padding-top: 1.25rem;
}

.pillar p {
  color: var(--muted);
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.text-link {
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

/* Work */

.project {
  text-decoration: none;
  display: block;
}

.project-media {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project h3 {
  margin-bottom: 0.25rem;
}

.project p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Callout */

.callout {
  padding: var(--space) 0;
  border-top: 1px solid var(--line);
}

.callout h2 {
  max-width: 20ch;
}

/* Contact */

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  word-break: break-word;
}

.details dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.details dd {
  margin: 0.25rem 0 1.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
