/* 47 Studio — rebuild stylesheet.
   Layout matches the live Adobe Portfolio site: a left sidebar
   (logo + stacked nav) beside a centred content column.
   All colours that vary per page are set inline from content.json
   (page background). Font family slug comes from the Typekit kit
   loaded in the page head. */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: gpmw, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Overall layout: sidebar ~30% of viewport, content column ~53%. */
.site-wrap {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Sidebar header */
.site-header {
  flex: 0 0 30%;
  padding: 56px 48px;
}

.logo { display: block; margin-bottom: 44px; }
.logo img { display: block; width: 60px; max-width: 60px; height: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #888888;
  text-decoration: none;
  font-size: 17px;
}

.site-nav a:hover,
.site-nav a.active { color: #eeeeee; }

/* Content column */
.content-col {
  flex: 0 0 53%;
  padding: 56px 0 64px;
}

.page-content { text-align: center; }

/* Page body */
.page-title {
  color: #eeeeee;
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  margin: 8px 0 28px;
}

.text-block {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
  margin: 0 0 20px;
}

.link-block { margin: 0 0 28px; font-size: 18px; text-align: center; }
.link-block a { color: #ffffff; text-decoration: underline; }

/* Social link: centred filled circular button (~50px). The fill is a
   muted blue-grey approximating the live site's button. */
.social-block { margin: 4px 0 28px; text-align: center; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #5b6b8c;
  color: #f2f4f8;
}

.social-link:hover { color: #ffffff; }

/* Images */
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 12px 0 20px;
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 12px 0 20px;
}

.full-image { margin: 0 0 20px; }

/* YouTube standard embed, centred, ~560px wide. */
.yt-embed {
  max-width: 560px;
  margin: 0 auto 28px;
}

.yt-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Contact form: ~500px column centred in the content column;
   labels and the submit button stay left-aligned inside it. */
.contact-form {
  max-width: 500px;
  margin: 8px auto 0;
  text-align: left;
}

.contact-form .form-field { margin-bottom: 18px; }

.contact-form label {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 16px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 3px;
  background: #ffffff;
  color: #303086;
  font: inherit;
  font-size: 16px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(48, 48, 134, 0.4); }

.contact-form .field-error { color: #ffd7d7; margin: 6px 0 0; font-size: 14px; }
.contact-form .form-error { color: #ffd7d7; margin-top: 16px; }

.contact-form button {
  font: inherit;
  padding: 10px 28px;
  border: 0;
  border-radius: 3px;
  background: #ffffff;
  color: #303086;
  cursor: pointer;
}

.contact-form .form-confirmation { color: #ffffff; margin-top: 16px; }

/* Footer */
.site-footer {
  margin-top: 56px;
  text-align: center;
  color: #eeeeee;
  font-size: 14px;
}

/* Cookie banner: tan/brown bar, dark pill Accept, plain-text Decline.
   The tan is an approximation of the live bar's colour. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #b49b78;
  color: #3a3128;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  z-index: 50;
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }

.cookie-banner .cookie-accept {
  display: inline-block;
  background: #3a3128;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 999px;
  margin-left: 16px;
}

.cookie-banner .cookie-decline {
  color: #3a3128;
  text-decoration: underline;
  margin-left: 16px;
}

/* Narrow screens: sidebar collapses to a compact top header,
   content takes the full width (text stays centred). */
@media (max-width: 860px) {
  .site-wrap { flex-direction: column; }

  .site-header {
    flex: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding: 20px 24px;
  }

  .logo { margin-bottom: 0; }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .content-col {
    flex: none;
    width: 100%;
    padding: 24px 20px 48px;
  }
}

@media (max-width: 640px) {
  .image-grid, .image-row { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
}
