/* ============================================
   PENCILPRONE.ART — STYLES
   ============================================ */

:root {
  --brown: #3f1a00;
  --yellow: #ffea24;
  --cream: #fffef2;
  --bg: #fef7ec;
  --mid-brown: #652a00;
  --font: 'Schoolbell', cursive;
  --border: 2px solid #3f1a00;
  --border-light: 2px solid #fffef2;
  --radius-btn: 8px;
  --radius-pill: 23px;
  --pad: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--brown);
}

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

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

/* ============================================
   SHARED COMPONENTS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: none;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--brown);
}

.btn--yellow:hover {
  filter: brightness(0.95);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}

.eyebrow--dark {
  background: var(--brown);
  color: var(--yellow);
}

.eyebrow--light {
  background: var(--brown);
  color: var(--yellow);
  border: 1px solid var(--cream);
}

.heading {
  font-family: var(--font);
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  color: var(--brown);
}

.heading--light {
  color: var(--cream);
}

.body {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brown);
}

.body--light {
  color: var(--cream);
}

/* Yellow pill divider */
.divider {
  width: 82px;
  height: 10px;
  background: var(--yellow);
  border-radius: 62px;
  flex-shrink: 0;
}

/* ============================================
   LOGO
   ============================================ */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  height: 52px;
  width: auto;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__name {
  font-family: var(--font);
  font-size: 39px;
  color: var(--brown);
  line-height: 1;
}

.logo__sub {
  font-family: var(--font);
  font-size: 17px;
  color: var(--brown);
  line-height: 1;
}

.logo--light .logo__name,
.logo--light .logo__sub {
  color: var(--cream);
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(63, 26, 0, 0.08);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font);
  font-size: 22px;
  color: var(--brown);
}

.nav__menu a:not(.btn) {
  color: var(--brown);
}

.nav__menu a:not(.btn):hover {
  text-decoration: underline;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X animation */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  width: 100%;
  line-height: 0;
}

.hero__img {
  width: 100%;
  height: auto;
}

/* ============================================
   NEWS
   ============================================ */

.news {
  display: flex;
  align-items: center;
  gap: 54px;
  padding: var(--pad);
  background: var(--brown);
}

.news__image-wrap {
  flex: 1;
  border: var(--border-light);
  overflow: hidden;
  height: 500px;
  flex-shrink: 0;
  max-width: 48%;
}

.news__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ============================================
   ARTWORK
   ============================================ */

.artwork {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.artwork__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.artwork__bio {
  max-width: 960px;
}

.art-grid {
  display: grid;
  gap: 24px;
}

.art-grid--2col { grid-template-columns: repeat(2, 1fr); }
.art-grid--3col { grid-template-columns: repeat(3, 1fr); }
.art-grid--4col { grid-template-columns: repeat(4, 1fr); }

.art-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.art-item__frame {
  border: var(--border);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.art-item__frame--tall {
  aspect-ratio: 3 / 4;
}

.art-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-item__title,
.art-item__medium {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.2;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: var(--pad);
  background: var(--brown);
}

.about__image-wrap {
  flex-shrink: 0;
  width: 470px;
  border: var(--border-light);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  display: flex;
  align-items: stretch;
  min-height: 500px;
}

.contact__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 62px 21px;
}

.contact__desc {
  text-align: center;
  max-width: 480px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  width: 100%;
}

.contact__link {
  display: block;
  background: var(--brown);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  color: var(--yellow);
  font-family: var(--font);
  font-size: 22px;
  text-align: center;
  line-height: 1.3;
}

.contact__link:hover {
  background: var(--mid-brown);
}

.contact__link strong {
  font-weight: 400;
}

.contact__form-col {
  flex: 1;
  background: var(--mid-brown);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.contact__form-intro {
  text-align: center;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

.form-field {
  background: rgba(255, 255, 255, 0.55);
  border: var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 22px;
  color: var(--brown);
  width: 100%;
  outline: none;
}

.form-field:focus {
  background: rgba(255, 255, 255, 0.75);
}

.form-field::placeholder {
  opacity: 0.5;
}

.form-field--textarea {
  resize: vertical;
  min-height: 130px;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter {
  padding: 48px var(--pad);
  display: flex;
  justify-content: center;
}

.newsletter__inner {
  border: var(--border);
  border-radius: var(--radius-btn);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 740px;
  width: 100%;
}

.newsletter__desc {
  text-align: center;
}

.newsletter__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
}

.newsletter__input {
  flex: 1;
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
  border-right: none;
}

.newsletter__btn {
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad);
  background: var(--brown);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__copy {
  font-family: var(--font);
  font-size: 22px;
  color: var(--cream);
  opacity: 0.7;
}

.footer__ig {
  display: flex;
  align-items: center;
}

.footer__ig img {
  display: block;
  /* fill set directly on the inline SVG */
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .art-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__image-wrap {
    width: 360px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {

  /* --- Nav --- */
  .nav {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(63, 26, 0, 0.15);
    margin-top: 16px;
  }

  .nav__menu.nav__menu--open {
    display: flex;
  }

  /* --- Logo --- */
  .logo__name {
    font-size: 28px;
  }

  .logo__sub {
    font-size: 13px;
  }

  .logo__icon {
    height: 40px;
    width: 80px;
    object-fit: contain;
    object-position: left center;
  }

  /* --- Hero: no changes needed --- */

  /* --- News --- */
  .news {
    flex-direction: column;
    gap: 24px;
  }

  .news__image-wrap {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .news__content {
    width: 100%;
  }

  /* --- Artwork --- */
  .heading {
    font-size: 38px;
  }

  .art-grid--2col {
    grid-template-columns: 1fr;
  }

  .art-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .art-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- About --- */
  .about {
    flex-direction: column;
    gap: 24px;
  }

  .about__image-wrap {
    width: 100%;
  }

  /* --- Contact --- */
  .contact {
    flex-direction: column;
  }

  .contact__info {
    padding: 40px 20px;
  }

  .contact__link {
    font-size: 18px;
    white-space: normal;
  }

  .contact__form-col {
    padding: 40px 20px;
  }

  /* --- Newsletter --- */
  .newsletter__form {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter__input {
    border-radius: var(--radius-btn);
    border-right: var(--border);
    border-bottom: none;
    border-radius: var(--radius-btn) var(--radius-btn) 0 0;
  }

  .newsletter__btn {
    border-radius: 0 0 var(--radius-btn) var(--radius-btn);
    width: 100%;
    justify-content: center;
  }

  /* --- Footer --- */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer .logo__name {
    font-size: 28px;
  }

  .footer .logo__sub {
    font-size: 13px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
  .art-grid--3col,
  .art-grid--4col {
    grid-template-columns: 1fr;
  }

  .heading {
    font-size: 32px;
  }

  .body {
    font-size: 19px;
  }

  .contact__link {
    font-size: 16px;
  }
}
