:root {
  --ink: #2f2922;
  --soft-ink: #66574b;
  --paper: #f2e4d3;
  --paper-light: #fbf3e6;
  --paper-warm: #ecd4bb;
  --line: rgba(130, 88, 54, 0.28);
  --clay: #b8653e;
  --clay-dark: #954c2e;
  --shadow: rgba(44, 31, 19, 0.28);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Libre Baskerville", Georgia, serif;
  --nav: "Jost", "Avenir Next", system-ui, sans-serif;
  --script: "Allura", "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 245, 231, 0.72), transparent 24rem),
    linear-gradient(135deg, #d9c2a5 0%, #bca98f 58%, #978773 100%);
  font-family: var(--body);
  font-size: 16px;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-shell {
  position: relative;
  width: min(1310px, calc(100% - 58px));
  min-height: calc(100vh - 58px);
  margin: 29px auto;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 248, 237, 0.64), rgba(255, 248, 237, 0.64)),
    var(--paper-light);
  box-shadow: 0 24px 42px var(--shadow);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(87, 58, 39, 0.09) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 10%, rgba(87, 58, 39, 0.06) 0 1px, transparent 1px);
  background-size: 18px 18px, 23px 23px;
  mix-blend-mode: multiply;
  opacity: 0.44;
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 136px;
  padding: 28px clamp(26px, 5.2vw, 78px);
  background: rgba(251, 243, 230, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 26px);
  text-decoration: none;
}

.brand-mark {
  width: clamp(72px, 7vw, 94px);
  height: clamp(72px, 7vw, 94px);
  object-fit: contain;
}

.brand-rule {
  width: 1px;
  height: 72px;
  background: rgba(151, 82, 47, 0.58);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 600;
  line-height: 0.95;
}

.brand-studio {
  color: var(--clay-dark);
  font-family: var(--display);
  font-size: clamp(1.33rem, 1.9vw, 1.95rem);
  font-weight: 600;
  line-height: 0.95;
}

.brand-label,
.primary-nav,
.eyebrow,
.button-link,
.text-link,
.contact-row,
.site-footer {
  font-family: var(--nav);
}

.brand-label {
  color: #6f5948;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(30px, 5.2vw, 76px);
  margin-right: clamp(8px, 5vw, 78px);
}

.primary-nav a {
  position: relative;
  color: #2d2824;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.42em;
  bottom: -9px;
  height: 2px;
  background: var(--clay);
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 499px;
  background-image: url("hero-background.webp");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(372px, 40%);
  padding: 52px 0 28px clamp(32px, 6vw, 78px);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 4.15vw, 4.35rem);
  line-height: 0.91;
}

h1 span {
  color: var(--clay);
}

.title-rule {
  position: relative;
  display: block;
  width: 220px;
  max-width: 72%;
  height: 1px;
  margin: 19px 0 21px;
  background: var(--clay);
}

.title-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 7px solid var(--paper-light);
  border-radius: 50%;
  background: var(--clay);
  transform: translate(-50%, -50%);
}

.hero p {
  max-width: 310px;
  margin: 0 0 13px;
  color: #3f3933;
  font-family: var(--nav);
  font-size: 1rem;
  line-height: 1.42;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 294px;
  min-height: 52px;
  margin-top: 13px;
  border-radius: 4px;
  color: #fff8ef;
  background: linear-gradient(180deg, #bf7148, #a95734);
  box-shadow: 0 10px 18px rgba(116, 58, 33, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 22px;
  color: #66564a;
  font-size: 0.8rem;
}

.contact-row a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.contact-row span,
.site-footer span[aria-hidden="true"] {
  color: var(--clay);
  font-weight: 700;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-preview {
  position: relative;
  z-index: 1;
  padding: 23px clamp(28px, 5.5vw, 78px) 10px;
  text-align: center;
}

.eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  color: #5d5046;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.58em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 86px;
  height: 1px;
  background: var(--clay);
  transform: translateX(-50%);
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  z-index: 1;
  width: 6px;
  height: 6px;
  border: 5px solid var(--paper-light);
  border-radius: 50%;
  background: var(--clay);
  transform: translateX(-50%);
}

.portfolio-preview h2,
.about h2 {
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.15vw, 30px);
  margin-top: 23px;
}

.preview-item {
  display: block;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.preview-frame {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 6px solid rgba(238, 226, 209, 0.96);
  border-radius: 8px;
  background: #e3d5c4;
  box-shadow:
    inset 0 0 0 1px rgba(73, 57, 44, 0.16),
    0 4px 9px rgba(53, 39, 28, 0.24);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-title {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.05;
}

.preview-empty {
  grid-column: 1 / -1;
  margin: 10px auto;
  color: var(--soft-ink);
  font-family: var(--nav);
}

.text-link {
  display: inline-flex;
  gap: 18px;
  margin-top: 16px;
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.about {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.32fr;
  gap: clamp(34px, 4vw, 58px);
  margin: 10px clamp(28px, 5.5vw, 78px) 0;
  padding: 0 18px 14px 0;
  background: rgba(238, 218, 196, 0.52);
  border-radius: 6px;
}

.about::after {
  content: "Kim's Clay";
  position: absolute;
  right: 52px;
  bottom: -7px;
  color: rgba(154, 106, 72, 0.09);
  font-family: var(--display);
  font-size: clamp(8rem, 14vw, 14rem);
  font-weight: 700;
  line-height: 0.8;
  pointer-events: none;
}

.about-photo {
  width: 100%;
  height: 257px;
  border-radius: 4px 0 0 4px;
  object-fit: cover;
}

.about-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px 0;
}

.about-copy .title-rule {
  width: 132px;
  margin: 10px 0 17px;
}

.bio-section {
  margin-top: 28px;
}

.bio-section .title-rule {
  margin-bottom: 16px;
}

.about p {
  max-width: 590px;
  margin: 0 0 13px;
  color: #4d4239;
  font-size: 0.98rem;
  line-height: 1.62;
}

.about .signature {
  margin-top: 9px;
  color: var(--clay);
  font-family: var(--script);
  font-size: 3.1rem;
  font-style: normal;
  line-height: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 38px;
  min-height: 123px;
  margin-top: 12px;
  padding: 28px clamp(26px, 5.2vw, 78px) 22px;
  background-image: url("bottom-border.webp");
  background-position: bottom center;
  background-size: cover;
  color: #5e5046;
  font-size: 0.93rem;
}

.site-footer > *:not(small):not(:first-child) {
  padding-left: 30px;
  border-left: 1px solid rgba(177, 105, 65, 0.54);
}

.footer-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.site-footer small {
  flex-basis: 100%;
  color: #66584f;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 900px) {
  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    border-radius: 0;
  }

  .site-header {
    min-height: 92px;
    padding: 14px 24px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .brand-rule {
    height: 58px;
  }

  .brand-name {
    font-size: 1.76rem;
  }

  .brand-studio {
    font-size: 1.08rem;
  }

  .brand-label {
    font-size: 0.58rem;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    display: grid;
    gap: 15px;
    width: min(250px, calc(100vw - 36px));
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(126, 88, 61, 0.22);
    border-radius: 5px;
    background: rgba(251, 243, 230, 0.98);
    box-shadow: 0 12px 28px rgba(53, 39, 28, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    font-size: 0.76rem;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(217px, 56vw, 330px);
    background-image: none;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(217px, 56vw, 330px);
    background-image: url("hero-mobile-wide.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 26px 26px 24px;
    background: rgba(251, 243, 230, 0.92);
  }

  h1 {
    font-size: 2.52rem;
  }

  .hero p {
    max-width: 330px;
    font-size: 0.82rem;
  }

  .button-link {
    width: 100%;
    min-width: 0;
    min-height: 51px;
    margin-top: 12px;
  }

  .contact-row {
    display: grid;
    align-items: start;
    font-size: 0.78rem;
  }

  .portfolio-preview {
    padding: 28px 24px 0;
  }

  .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.44em;
  }

  .portfolio-preview h2,
  .about h2 {
    font-size: 1.72rem;
  }

  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }

  .preview-grid .preview-item:nth-child(n + 4) {
    display: none;
  }

  .preview-frame {
    border-width: 5px;
    border-radius: 5px;
  }

  .preview-title {
    font-size: 0.94rem;
  }

  .about {
    display: block;
    margin: 33px 24px 0;
    padding: 0;
    background: transparent;
  }

  .about::after {
    content: none;
  }

  .about-photo {
    height: auto;
    max-height: 270px;
    border-radius: 5px;
  }

  .about-copy {
    padding: 20px 0 4px;
  }

  .about p {
    font-size: 0.86rem;
  }

  .site-footer {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 18px;
    padding: 22px 36px 26px;
    font-size: 0.76rem;
  }

  .site-footer > *:not(small):not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-mark {
    display: none;
  }

  .site-footer small {
    justify-self: center;
    margin-top: 8px;
    font-size: 0.72rem;
    text-align: center;
  }
}

@media (max-width: 370px) {
  .site-header,
  .hero-content,
  .portfolio-preview,
  .about {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-rule {
    height: 48px;
  }

  .brand-name {
    font-size: 1.48rem;
  }

  .brand-studio {
    font-size: 0.96rem;
  }

  .menu-toggle {
    width: 36px;
  }
}
