:root {
  --navy: #1C2842;
  --gold: #B8923E;
  --rose: #9A6B74;
  --cream: #F7F2EA;
  --line: #E6DDD0;
  --field-line: #D9CFC0;
  --muted: #5E6473;
  --serif: 'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); font-family: 'Jost', sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
input, textarea, select, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #8A8F9B; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; }
.pad { padding-left: 48px; padding-right: 48px; }
.two { display: grid; gap: 56px; }
.band { background: #fff; border-top: 1px solid var(--line); }
.band-closed { border-bottom: 1px solid var(--line); }
section[id] { scroll-margin-top: 90px; }

.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }

.btn { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 16px 30px; border: 1px solid var(--navy); cursor: pointer; }
.btn-sm { padding: 11px 20px; white-space: nowrap; }
.btn-solid { background: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* Editorial photography */
.photo { margin: 0; min-width: 0; min-height: 0; overflow: hidden; background: #EFE4D9; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247, 242, 234, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.nav-emblem { height: 48px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 4px; font-size: 11px; letter-spacing: .18em; }
.lang button { border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; padding: 4px 6px; letter-spacing: inherit; font-size: inherit; color: inherit; }
.lang button[aria-pressed="true"] { border-bottom-color: var(--gold); }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.hero-logo { width: min(400px, 80vw); }
.hero-h { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0; max-width: 16ch; text-wrap: balance; }
.hero-h em { color: var(--rose); }
.hero-sub { font-weight: 300; font-size: 18px; line-height: 1.6; max-width: 46ch; margin: 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }

/* Work */
.work { padding-top: 24px; padding-bottom: 88px; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 14px; }
.gal .tall { grid-row: span 2; }
.gal .wide { grid-column: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* How it works */
.how { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-top: 88px; padding-bottom: 88px; }
.how h2 { margin-bottom: 16px; }
.lead { font-weight: 300; line-height: 1.65; margin: 0; text-wrap: pretty; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 48px; }
.steps li { border-top: 1px solid var(--navy); padding-top: 18px; }
.step-n { font-family: var(--serif); font-size: 30px; color: var(--gold); margin-bottom: 8px; }
.step-t { font-weight: 500; margin-bottom: 6px; }
.steps p { font-weight: 300; line-height: 1.6; margin: 0; font-size: 15px; }

/* About */
.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-top: 88px; padding-bottom: 88px; }
.portrait { aspect-ratio: 4 / 5; }
.about h2 { margin-bottom: 18px; }
.about p { font-weight: 300; line-height: 1.7; margin: 0 0 14px; text-wrap: pretty; }
.about p:last-of-type { margin-bottom: 28px; }
.motto { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--rose); }

/* Journal */
.journal { padding-top: 80px; padding-bottom: 80px; }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post-img { aspect-ratio: 4 / 3; }
.post-date { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.post-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--navy); }
a.post:hover .post-title { color: var(--gold); }

/* Journal post page */
.article { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.article .back { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 36px; }
.article h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 10px 0 32px; text-wrap: balance; }
.article-photos { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.article-photos img { display: block; width: 100%; height: auto; background: #EFE4D9; }
.article-body p { font-weight: 300; font-size: 18px; line-height: 1.7; margin: 0 0 18px; white-space: pre-wrap; text-wrap: pretty; }

/* FAQ */
.faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-top: 72px; padding-bottom: 88px; }
.faq-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.chev { font-size: 22px; font-weight: 300; transition: transform .2s; }
details[open] .chev { transform: rotate(45deg); }
.faq-list p { font-weight: 300; line-height: 1.65; margin: 12px 0 0; max-width: 60ch; }

/* Order */
.order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 88px; padding-bottom: 88px; }
.order h2 { font-size: clamp(34px, 4vw, 44px); margin-bottom: 18px; }
.order > div > p { font-weight: 300; line-height: 1.7; margin: 0 0 32px; text-wrap: pretty; }
.contacts { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.contacts a { display: flex; gap: 12px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.order-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; background: #fff; padding: 32px; border: 1px solid var(--line); }
.order-form input, .order-form select, .order-form textarea { padding: 14px; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; background: transparent; font-size: 15px; color: inherit; outline: 0; min-width: 0; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { border-bottom-color: var(--navy); }
.order-form select { padding: 14px 10px; color: var(--muted); }
.order-form textarea { grid-column: 1 / -1; resize: none; }
.order-form .btn { grid-column: 1 / -1; padding: 18px; }
.order-form .btn:disabled { opacity: .6; cursor: default; }
.form-error { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--rose); }
.thanks { background: #fff; padding: 48px 32px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.thanks img { width: 90px; }
.thanks-title { font-family: var(--serif); font-size: 30px; }
.thanks p { font-weight: 300; line-height: 1.6; margin: 0; max-width: 36ch; }

/* Instagram */
.insta { padding-bottom: 72px; }
.insta-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.insta-head .eyebrow { margin-bottom: 0; }
.insta-head a { font-size: 13px; }
.ig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig a { aspect-ratio: 1; overflow: hidden; }
.ig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.ig a:hover img { opacity: .85; }
.ig a { background: #EFE4D9; }

/* Footer */
.footer { padding-top: 36px; padding-bottom: 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer img { height: 44px; width: auto; }
.footer-end { display: flex; gap: 20px; }
.footer-end a { color: var(--gold); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .two { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .gal .photo { aspect-ratio: 3 / 4; }
  .gal .tall { grid-row: auto; }
  .gal .wide { aspect-ratio: 2 / 1; }
  .ig { grid-template-columns: repeat(3, 1fr); }
  .pad { padding-left: 24px; padding-right: 24px; }
  .hero-h { font-size: 38px; }
}

.uploaded-work { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.uploaded-work-heading p { max-width: 280px; margin: 0; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.6; }
/* Swipeable work gallery: a stable frame while every uploaded photo rotates through. */
.gal.is-carousel { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal.is-carousel::-webkit-scrollbar { display: none; }
.gal.is-carousel .photo { flex: 0 0 calc((100% - 36px) / 3); aspect-ratio: 4 / 5; scroll-snap-align: start; position: relative; border-radius: 4px; }
.gal.is-carousel img { object-fit: contain; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 18px 16px; color: white; background: linear-gradient(transparent, rgba(28,40,66,.8)); font-size: 15px; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.gallery-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-buttons { display: flex; gap: 8px; align-items: center; }
.gallery-buttons button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--navy); border-radius: 50%; cursor: pointer; font-size: 20px; }
.gallery-buttons .gallery-toggle { border-radius: 24px; padding: 0 16px; font-size: 12px; }
.gallery-buttons button:hover { background: white; border-color: var(--gold); }
.gallery-buttons button:disabled { opacity: .4; cursor: default; }
.gal:focus-visible, .gallery-buttons button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 760px) {
  .gal.is-carousel { gap: 12px; }
  .gal.is-carousel .photo { flex-basis: 88%; aspect-ratio: 4 / 5; }
  .gallery-controls { gap: 8px; }
  .gallery-buttons { gap: 6px; }
  .gallery-buttons .gallery-toggle { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
