@import url("https://fonts.googleapis.com/css2?family=Share+Tech&family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

:root {
  /* Fonts */
  --font-heading: "Share Tech", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  /* Colours */
  --color-background: #f7f6f2;
  --color-text: #3d4340;
  --color-accent: #e13e1d;

  /* Spacing */
  --space-large: 2rem;
  --space-xl: 4rem;

  /* Corners */
  --radius-standard: 12px;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.site-header {
  background-color: var(--color-background);
  padding: var(--space-large);
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

nav > a,
nav > div {
  grid-column: 2;
}

nav > a {
  justify-self: center;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-large);
}

nav > div {
  display: flex;
  justify-content: center;
  gap: var(--space-large);
  margin-bottom: var(--space-xl);
}

nav a {
  color: inherit;
  text-decoration: none;
}

nav > div a {
  transition: color 250ms ease;
}

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

.roundal-logo {
  display: block;
  position: static;
  width: 100px;
  margin: 0 auto 1rem;
}

nav > img {
  grid-column: 2;
  margin-top: var(--space-large);
}

.hero {
  position: relative;
  width: 80%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: var(--radius-standard);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 1s ease;
  transform-origin: center center;
}

.hero:hover {
  transform: perspective(800px) rotateX(3deg) rotateY(-4deg) translateY(-12px);
}

.hero img:not(.roundal-logo) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro {
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  font-size: 1.5rem;
  text-align: center;
}
/* sculpture gallery */

.sculpture-gallery > h1 {
  width: 85%;
  max-width: 476px;
  margin: 0 auto var(--space-large);
  font-size: 2rem;
}

.sculpture-gallery > h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--color-accent);
  margin-top: 0.75rem;
}

.sculpture-gallery figcaption p {
  margin: 0 0 0.5rem;
}

.sculpture-gallery figcaption p:last-child {
  margin-bottom: 0;
}

.sculpture-item {
  width: 85%;
  margin: 0 auto;
}
.sculpture-item > a {
  color: inherit;
  text-decoration: none;
}

.sculpture-image {
  margin: 0 auto;
  display: block;
  width: 100%;
  max-width: 476px;
  height: auto;
  border-radius: var(--radius-standard);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .sculpture-item > a:hover .sculpture-image {
    transform: translateY(-4px);
  }
}

.back-to-top {
  display: block;
  width: 85%;
  margin: 2rem auto 0;
}

.back-to-top img {
  display: block;
  height: 40px;
  width: auto;
  transition: transform 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover img {
    transform: translateY(-4px);
  }
}

/* Base layout: mobile */
.sculpture-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
  justify-items: center;
}

/* end of Sculpture gallery */

.site-footer {
  text-align: center;
  margin: 10rem auto 2rem;
  padding-bottom: 4rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-style: italic;
}

/* sculpture gallery - wider screens */

@media (max-width: 499px) {
  .site-header {
    padding: 2rem 1rem;
  }

  .roundal-logo {
    position: static;
    display: block;
    margin-bottom: 1rem;
    width: 80px;
    margin-left: 0;
  }
  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  nav > div {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-large);
  }

  nav > a {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .hero {
    margin-top: 2rem;
    width: 90%;
  }

  .intro {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: var(--space-xl);
    text-align: left;
    font-size: 1.2rem;
  }
}

/* Information page */

/* Information — mobile first */

.information {
  margin: 0 1rem;
}

.information h1 {
  width: 100%;
  max-width: none;
  margin-bottom: 3rem;
}

.information p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.information a {
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color 250ms ease;
}

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

.information ul {
  list-style: none;
  padding-left: 0;
}

.information li {
  margin-bottom: 1.5rem;
}

.information li::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--color-accent);
  margin-top: 0.75rem;
}

.information-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.information section + section {
  margin-top: 3rem;
}

.contact-item {
  display: grid;
  gap: 0.5rem;
}

/* .information section:first-child p {
  margin-bottom: 1.5rem;
} */

@media (min-width: 500px) {
  .information {
    width: 85%;
    max-width: 560px;
    margin: 0 auto;
  }
  .contact-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .copyright {
    padding-top: 3rem;
  }
}
/* end of information page */

/* sculptures detail pages */

.sculpture-images > img {
  display: block;
  width: 100%;
  max-width: min(100%, 500px);
  margin-inline: auto;
  height: auto;
  border-radius: 6px;
}

.sculpture-intro-text h2,
.sculpture-section h2 {
  margin: 0 0 0.5rem;
}

.sculpture-detail {
  padding-inline: 20px;
  max-width: 1100px;
  margin-inline: auto;
}

.sculpture-intro-text p,
.sculpture-section p {
  margin: 0 0 0.5rem;
}

.sculpture-subtitle {
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 2rem;
  margin-top: 0;

  max-width: 500px;
  margin-inline: 0;
}

.sculpture-detail > h1 {
  margin-bottom: 2rem;
}

.sculpture-detail > h1:has(+ .sculpture-subtitle) {
  margin-bottom: 0.5rem;
}

.sculpture-intro-text {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  align-self: center;
}

.sculpture-intro-text p:last-child {
  margin-bottom: 0;
}

.sculpture-images {
  display: grid;
  gap: 1rem;
}

.sculpture-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 500px;
  margin-inline: auto;
}

.sculpture-photos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.sculpture-gallery-grid {
  display: grid;
  gap: 1rem;
}

.sculpture-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.sculpture-section {
  display: grid;
  gap: 2rem;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* sculpture media quieries */

@media (min-width: 920px) {
  .sculpture-section {
    max-width: none;
  }

  .sculpture-detail {
    padding-inline: 60px;
  }

  .sculpture-detail > h1,
  .sculpture-detail > .sculpture-subtitle {
    width: calc((100% - 2rem) / 2);
    max-width: none;
  }
  .sculpture-section--image-left,
  .sculpture-section--image-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sculpture-section--image-left > .sculpture-images {
    grid-column: 1;
    grid-row: 1;
  }

  .sculpture-section--image-left > .sculpture-intro-text {
    grid-column: 2;
    grid-row: 1;
  }

  .sculpture-section--image-right > .sculpture-images {
    grid-column: 2;
    grid-row: 1;
  }

  .sculpture-section--image-right > .sculpture-intro-text {
    grid-column: 1;
    grid-row: 1;
  }

  .sculpture-section > .sculpture-intro-text {
    max-width: none;
  }

  .sculpture-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sculpture-gallery-grid + .sculpture-intro-text {
  max-width: 70ch;
  margin-inline: 0;
}

@media (max-width: 919px) {
  .sculpture-detail > h1,
  .sculpture-subtitle {
    max-width: 500px;
    margin-inline: auto;
  }
}
/* /media quieries */

/* kite gallery */

.kite-gallery {
  display: grid;
  gap: 1rem;
}

.kite-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.kite-gallery-photos {
  display: grid;
  gap: 1rem;
}

.kite-gallery-text {
  max-width: 70ch;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .kite-gallery-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .kite-gallery-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* /sculpture detail pages */
