@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --ink: #17282a;
  --rust: #a5432e;
  --line: #c9c1b4;
  --muted: #5c625c;
  --content: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .gallery:focus-visible { outline: 3px solid #e6b76b; outline-offset: 4px; }
.container { width: min(calc(100% - 96px), var(--content)); margin-inline: auto; }

/* The hero is full bleed; its contents share the same grid as the gallery. */
.site-header { background: var(--rust); color: #fff8ed; }
.hero-shell { overflow: hidden; background: radial-gradient(circle at 65% 35%, #b34c32, var(--rust) 70%); color: #fff8ed; }
.header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 25px 8px; }
.brand { display: flex; flex-direction: column; width: max-content; font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: .3em; text-decoration: none; }
.brand small { margin-top: 8px; font-size: 9px; font-weight: 500; letter-spacing: .63em; }
.nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.nav a { padding: 11px 0; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-instagram { padding: 14px 24px; border: 1px solid #ffffff90; }
.nav .nav-instagram:hover { background: #fff8ed; color: var(--rust); text-decoration: none; }
.hero { position: relative; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(32px, 5vw, 88px); min-height: 630px; padding-block: 24px 48px; }
.hero-copy { position: relative; z-index: 1; padding-left: clamp(0px, 2vw, 32px); }
h1, h2, .intro { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { margin: 0 0 34px; font-size: clamp(75px, 9vw, 145px); line-height: .82; letter-spacing: -.075em; }
h1 span { display: block; margin-top: .07em; font-style: italic; letter-spacing: -.085em; }
.intro { max-width: 490px; margin: 0; font-size: clamp(22px, 2.35vw, 34px); line-height: 1.17; letter-spacing: -.025em; }
.sub { max-width: 380px; margin: 24px 0 22px; font-size: 15px; line-height: 1.55; }
.button-link, .closing-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 14px 22px; background: #fff8ed; color: #202a2b; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: background-color .2s, transform .2s; }
.button-link:hover, .closing-button:hover { background: #eadcc9; transform: translateY(-2px); }
.button-link span, .closing-button span { font-size: 24px; font-weight: 400; line-height: .6; }
.hero-art { min-width: 0; margin: 0; }
.kilim-frame { padding: clamp(12px, 1.65vw, 24px); border: 2px solid #e4ae73; background: #142a35 url('assets/kilim-tile.svg') repeat; background-size: 65px 65px; box-shadow: 0 2px 0 #4b2020, 0 14px 28px #6626174d; }
.kilim-frame img { width: 100%; height: auto; border: 5px solid #64372b; background: #f6e5ad; aspect-ratio: 1760 / 1582; object-fit: cover; }
.hero-flower { position: absolute; z-index: 0; width: clamp(150px, 19vw, 295px); left: max(-115px, calc((100vw - var(--content)) / 2 - 160px)); bottom: -42px; pointer-events: none; }
.kilim-divider { height: 36px; border-block: 3px solid #f2bd85; background: #18313e url('assets/kilim-tile.svg') repeat-x center; background-size: 58px 58px; }

/* Portfolio cards scroll naturally with touch, trackpad and arrow buttons. */
.works { padding-block: clamp(58px, 6vw, 88px) clamp(65px, 7vw, 100px); scroll-margin-top: 20px; }
.works-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.section-no { color: var(--rust); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h2 { margin: 8px 0 0; font-size: clamp(52px, 6.5vw, 94px); letter-spacing: -.065em; line-height: .98; }
.works-side { width: min(100%, 310px); }
.works-side p { margin: 0 0 16px; color: var(--muted); font: 18px/1.4 Georgia, serif; }
.slider-controls { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.slider-count { margin-right: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.slider-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font: 25px/1 Georgia, serif; cursor: pointer; }
.slider-arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.slider-arrow:disabled { border-color: var(--line); color: #a8a39a; cursor: default; }
.gallery { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.work { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; margin: 0; scroll-snap-align: start; }
.work-frame { display: grid; place-items: center; height: clamp(310px, 33vw, 490px); padding: clamp(18px, 2.3vw, 34px); background: #ad9094; }
.work:nth-child(3n + 2) .work-frame { background: #d2d0c5; }
.work:nth-child(3n) .work-frame { background: #b5c5a9; }
.work img { width: 100%; height: 100%; object-fit: contain; }
.work figcaption { margin-top: 14px; padding-top: 11px; border-top: 1px solid #a9a99e; font-size: 13px; }

/* A single quiet carpet motif leaves the closing message in focus. */
.closing { background: #162b2c; color: #fff8ed; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 340px; padding-block: 62px; }
.closing-copy { position: relative; z-index: 1; }
.closing-handle { font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.closing h2 { margin: 18px 0 12px; font-size: clamp(43px, 5.2vw, 70px); letter-spacing: -.045em; }
.closing p { margin: 0 0 26px; font: 18px/1.45 Georgia, serif; }
.closing-motif { flex: 0 1 300px; width: min(30vw, 300px); opacity: .24; }
.footer { padding-block: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 56px), var(--content)); }
  .hero-inner { min-height: 540px; gap: 26px; }
  h1 { font-size: clamp(67px, 9.5vw, 94px); }
  .hero-flower { display: none; }
  .work { flex-basis: calc((100% - 20px) / 2); }
  .works-head h2 { font-size: clamp(48px, 6vw, 72px); }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 36px), 540px); }
  .header { padding-block: 21px 0; }
  .brand { font-size: 18px; }
  .brand small { font-size: 8px; }
  .nav { gap: 13px; font-size: 10px; letter-spacing: .08em; }
  .nav .nav-instagram { padding: 11px 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-block: 68px 42px; }
  .hero-copy { padding-left: 0; }
  h1 { margin-bottom: 24px; font-size: clamp(72px, 15vw, 110px); }
  .intro { font-size: clamp(23px, 5vw, 30px); }
  .sub { max-width: 420px; margin-block: 20px; }
  .kilim-frame { padding: 12px; background-size: 50px 50px; }
  .kilim-divider { height: 28px; background-size: 48px 48px; }
  .works { padding-block: 58px 68px; }
  .works-head { align-items: start; flex-direction: column; gap: 20px; }
  .works-head h2 { font-size: clamp(48px, 10vw, 65px); }
  .works-side { width: 100%; }
  .works-side p { max-width: 380px; }
  .slider-controls { justify-content: flex-start; }
  .work { flex-basis: 84%; }
  .work-frame { height: min(105vw, 470px); }
  .closing-inner { min-height: 0; padding-block: 64px; }
  .closing-motif { display: none; }
  .closing h2 { font-size: clamp(42px, 9vw, 59px); }
}
@media (max-width: 380px) {
  .nav a:first-child { display: none; }
  h1 { font-size: 19vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button-link, .closing-button { transition: none; }
}
