/* Aya Studio — single-page site styles */

:root {
  --bg: #f6f4ef;
  --bg-alt: #efebe3;
  --surface: #ffffff;
  --text: #1d1e21;
  --muted: #55585f;
  --line: #e2ddd3;
  --accent: #a3441f;
  --accent-soft: #f3e4dc;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 18px;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(72px, 10vw, 128px);
  --header-height: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

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

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;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.button-primary {
  background: var(--text);
  color: #fff;
}

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

.button-ghost {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

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

@media (prefers-reduced-motion: no-preference) {
  .button:hover {
    transform: translateY(-1px);
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(246, 244, 239, 0.72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-height);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(135deg);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav .nav-cta {
  margin-left: 6px;
  border: 1.5px solid var(--text);
  color: var(--text);
}

.site-nav .nav-cta:hover {
  background: var(--text);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle-icon::before {
  top: 1px;
}

.nav-toggle-icon::after {
  top: 7.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 4.25px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 4.25px;
  transform: rotate(-45deg);
}

@media (max-width: 719px) {
  /* Without JavaScript the links simply wrap under the logo. */
  .site-nav {
    width: 100%;
    padding-bottom: 10px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .has-nav-toggle .nav-toggle {
    display: inline-flex;
  }

  .has-nav-toggle .site-nav {
    display: none;
    padding: 4px 0 18px;
  }

  .has-nav-toggle .site-header.is-open .site-nav {
    display: block;
  }

  .has-nav-toggle .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .has-nav-toggle .site-nav a {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1.0625rem;
  }

  .has-nav-toggle .site-nav .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .site-header.is-open {
    background: var(--bg);
    border-bottom-color: var(--line);
  }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 30, 33, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.5rem, 4.6vw + 1rem, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-art {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .hero-art {
    max-width: none;
  }
}

/* Sections */

.section {
  padding-block: var(--section-space);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(2rem, 2.4vw + 1.1rem, 3rem);
}

/* Services */

.cards {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  border-color: #d3cdc1;
  box-shadow: 0 18px 40px -24px rgba(29, 30, 33, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-4px);
  }
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.5rem;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

/* About */

.about {
  display: grid;
  gap: 8px;
}

.about .section-head {
  margin-bottom: 24px;
}

.about-body {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
  }

  .about .section-head {
    margin-bottom: 0;
  }
}

/* Process */

.steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

.step {
  padding-top: 24px;
  border-top: 1.5px solid var(--text);
}

.step-number {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 1.5rem;
}

.step p {
  margin-top: 12px;
  color: var(--muted);
}

/* Contact */

#contact {
  padding-top: 0;
}

.contact-card {
  display: grid;
  gap: 36px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}

.contact-card h2 {
  font-size: clamp(2rem, 2.4vw + 1.1rem, 3rem);
}

.contact-text {
  max-width: 30rem;
  margin-top: 16px;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.6vw + 1rem, 2rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: color 0.2s var(--ease);
}

.contact-email:hover {
  color: var(--accent);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.copy-status {
  min-height: 1.65em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
}

/* Footer */

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 404 page */

.not-found {
  display: grid;
  place-content: center;
  min-height: 70vh;
  padding-block: var(--section-space);
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
}

.not-found p {
  margin: 16px auto 32px;
  color: var(--muted);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero-art {
    animation: rise 1s 0.2s var(--ease) both;
  }

  .art-tile {
    animation: drift 7s ease-in-out infinite;
  }

  .art-phone {
    animation: drift 8s 1.2s ease-in-out infinite reverse;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}
