/* ==========================================================
   Amelia Paige Design — styles
   Desktop first pass. iPad and mobile refinements to follow.
   ========================================================== */

:root {
  /* Palette */
  --paper: #F8F6F1;        /* main background */
  --linen: #F4F1EA;        /* about section */
  --sand: #F4E6CC;         /* contact section */
  --olive: #45472F;        /* headings */
  --forest: #2B3D26;       /* contact heading */
  --ink: #55564A;          /* body copy */
  --muted: #7A7A6C;        /* small labels, nav */
  --gold: #B5A274;         /* accent + button */
  --gold-soft: #BFAE84;    /* placeholders on sand */
  --rule: #DAD5C8;         /* hairlines */
  --rule-strong: #BDB396;  /* form + link underlines */

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1152px;
  --gutter: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; color: var(--gold); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow  { max-width: calc(1048px + var(--gutter) * 2); }
.container--contact { max-width: calc(1060px + var(--gutter) * 2); }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--olive); color: var(--paper);
  padding: 8px 14px; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 1px solid var(--olive); outline-offset: 4px; }

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0 0 28px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold); }

.section-title {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 3.6vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--olive);
}
.section-title--xl {
  margin: 0;
  font-size: clamp(3rem, 4.4vw, 4.2rem);
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--olive);
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--olive);
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Header ---------- */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 30px;
  position: relative;
}
.site-header__inner::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  border-bottom: 1px solid var(--rule);
}
.brand img {
  width: 228px;
}
.site-nav { display: flex; gap: 36px; }
.site-nav a {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--olive); }

/* ---------- Hero ---------- */

.hero { padding: 40px 0 96px; border-bottom: 1px solid var(--rule); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.hero__copy { padding-top: 34px; }
.hero__title {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--olive);
}
.hero__lede { margin: 0 0 44px; max-width: 34ch; }
.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- About ---------- */

.about { background: var(--linen); padding: 128px 0; }
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__copy { padding-top: 32px; max-width: 590px; }
.about__copy p:not(.eyebrow) { margin: 0 0 22px; }

/* ---------- Work ---------- */

.work { padding: 120px 0 128px; }
.work__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 80px;
}
.work__header .text-link { margin-bottom: 10px; }
.work__dots, .work__more { display: none; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 96px;
}
.project--a { grid-column: 1 / span 7; }
.project--b { grid-column: 8 / span 5; margin-top: 96px; }
.project--c { grid-column: 3 / span 8; }

.project img { width: 100%; object-fit: cover; }
.project--a img { aspect-ratio: 4 / 3; }
.project--b img { aspect-ratio: 4 / 3; }
.project--c img { aspect-ratio: 4 / 3; }

.project__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.project__meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--olive);
}
.project__meta span {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact { background: var(--sand); padding: 120px 0 128px; }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 404px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact__title {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 4.6vw, 4.4rem);
  line-height: 1.14;
  color: var(--forest);
}
.contact__title em { display: block; }
.contact__lede { margin: 0 0 44px; color: #6E6B55; font-size: 17.5px; line-height: 1.85; }

.contact__links { list-style: none; margin: 0; padding: 0; }
.contact__links a {
  display: block;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 13.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--olive);
  transition: color .2s ease;
}
.contact__links li + li a { margin-top: 12px; }
.contact__links a:hover { color: var(--gold); }

/* Form */
.inquiry { display: grid; gap: 34px; }
.field { display: grid; gap: 14px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input,
.field textarea {
  width: 100%;
  padding: 6px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--olive);
  resize: vertical;
}
.field textarea { min-height: 150px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--gold-soft); opacity: 1; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--olive); }
.field [aria-invalid="true"] { border-bottom-color: #9C5B46; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 34px;
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: #2F3320;
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
}
.button:hover { background: #A8946A; }
.button:disabled { opacity: .6; cursor: wait; }

.inquiry__status { margin: 0; min-height: 1.75em; font-size: 15px; color: var(--olive); }
.inquiry__status.is-error { color: #9C5B46; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 32px;
}
.site-footer p {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Tablet (iPad portrait + landscape) ----------
   Same two-column layout as desktop, tightened to fit. */
@media (min-width: 641px) and (max-width: 1024px) {
  :root { --gutter: 40px; }
  body { font-size: 16.5px; }

  .brand img { width: 200px; }
  .site-nav { gap: 32px; }
  .site-nav a { font-size: 11.5px; }

  .hero { padding: 32px 0 88px; }
  .hero__inner {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
  }
  .hero__copy { padding-top: 0; }
  .hero__title { font-size: 3.25rem; line-height: 1.02; margin-bottom: 32px; }
  .hero__title em { display: block; }
  .hero__lede { max-width: none; margin-bottom: 36px; }
  .text-link { font-size: 11.5px; gap: 12px; white-space: nowrap; }

  .about { padding: 96px 0; }
  .about__inner { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 56px; }
  .about__copy { padding-top: 8px; }
  .section-title { font-size: 2.6rem; line-height: 1.35; margin-bottom: 32px; }
  .section-title--xl { font-size: 3.2rem; line-height: 1.1; margin-bottom: 0; }

  .work { padding: 96px 0 104px; }
  .work__header { margin-bottom: 56px; }
  .work__grid { column-gap: 28px; row-gap: 72px; }
  .project--b { margin-top: 80px; }
  .project__meta h3 { font-size: 1.6rem; }
  .project__meta span { font-size: 10.5px; }

  .contact { padding: 104px 0 112px; }
  .contact__inner { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 48px; }
  .contact__title { font-size: 3.2rem; line-height: 1.2; margin-bottom: 32px; }
  .contact__lede { font-size: 16.5px; margin-bottom: 36px; }
  .contact__links a { font-size: 12px; letter-spacing: 0.22em; overflow-wrap: anywhere; }

  .site-footer p { font-size: 10.5px; }
}

/* ---------- Mobile (phones) ---------- */
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  body { font-size: 16.5px; }

  /* Header: centered logo, nav spread beneath it */
  .site-header__inner {
    flex-direction: column;
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 20px;
  }
  .brand img { width: 170px; }
  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
  }
  .site-nav a { font-size: 11px; padding: 8px 0; }

  /* Hero: photo first, then copy */
  .hero { padding: 24px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .hero__copy { padding-top: 0; }
  .eyebrow { font-size: 11px; margin-bottom: 22px; }
  .hero__title {
    font-size: clamp(2.5rem, 11.6vw, 3rem);
    line-height: 1;
    margin-bottom: 30px;
  }
  .hero__title em { display: block; }
  .hero__lede { max-width: none; margin-bottom: 36px; }
  .text-link { font-size: 11.5px; gap: 12px; }

  /* About */
  .about { padding: 72px 0 80px; }
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
  .about__copy { padding-top: 0; }
  .section-title { font-size: clamp(2rem, 9.2vw, 2.4rem); line-height: 1.3; margin-bottom: 30px; }
  .section-title--xl { margin-bottom: 0; line-height: 1.15; }

  /* Work: swipeable carousel */
  .work { padding: 80px 0 88px; }
  .work__header { margin-bottom: 44px; }
  .work__header-link { display: none; }
  .work__grid {
    display: flex;
    gap: 16px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .project,
  .project--a, .project--b, .project--c {
    flex: 0 0 calc(100vw - var(--gutter) * 2);
    margin-top: 0;
    scroll-snap-align: start;
  }
  .project img { aspect-ratio: 4 / 3; }
  .project__meta h3 { font-size: 1.6rem; }
  .project__meta span { font-size: 10.5px; }

  .work__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
  }
  .work__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #CFCBBE;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }
  .work__dots button[aria-current="true"] { width: 26px; background: var(--olive); }
  /* Instagram link under the carousel: hidden to match the mockup. Set to inline-flex to bring it back. */
  .work__more { display: none; margin-top: 44px; }

  /* Contact */
  .contact { padding: 72px 0 80px; }
  .contact__inner { grid-template-columns: 1fr; gap: 56px; }
  .contact__title {
    font-size: clamp(2rem, 9.4vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 30px;
  }
  .contact__lede { font-size: 16.5px; margin-bottom: 36px; }
  .contact__links a { font-size: 12px; letter-spacing: 0.22em; overflow-wrap: anywhere; }
  .inquiry { gap: 30px; }
  .field textarea { min-height: 130px; }
  .button { justify-self: stretch; justify-content: center; }

  /* Footer */
  .site-footer__inner { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .site-footer p { font-size: 10.5px; }
}

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