@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

.order-history {
  margin-top: 48px;
  padding: 24px;
  background: #e5dfd5;
  border-radius: 18px
}

.order-history h2 {
  margin-top: 0
}

.order-row {
  display: grid;
  grid-template-columns: .8fr 1.5fr .8fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px
}

@media(max-width:760px) {
  .order-row {
    grid-template-columns: 1fr;
    gap: 4px
  }
}

:root {
  --ink: #191a1a;
  --paper: #f5f3ef;
  --line: rgba(25, 26, 26, .16);
  --wine: #672f35;
  --serif: 'Playfair Display', serif;
  --mono: 'DM Mono', monospace
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px Manrope, sans-serif
}

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

button,
input,
textarea,
select {
  font: inherit
}

button {
  cursor: pointer
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(25, 26, 26, .08);
  position: sticky;
  top: 0;
  background: rgba(245, 243, 239, .92);
  backdrop-filter: blur(12px);
  z-index: 10
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  line-height: .95
}

.brand span:last-child {
  display: grid
}

.brand em {
  font: italic 17px var(--serif)
}

.camera-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper)
}

nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 700
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 10px var(--mono)
}

.account-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 174px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow)
}

.account-context-menu[hidden] {
  display: none
}

.account-context-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: 600 11px var(--body, Manrope, sans-serif);
  text-align: left;
  cursor: pointer
}

.account-context-menu button:hover,
.account-context-menu button:focus-visible {
  outline: none;
  background: var(--surface-muted);
  color: var(--wine)
}

.password-dialog {
  width: min(92vw, 430px);
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(21, 20, 18, .24)
}

.password-dialog::backdrop {
  background: rgba(17, 15, 13, .48)
}

.password-form {
  display: grid;
  gap: 18px;
  padding: 24px
}

.password-form__head {
  display: grid;
  gap: 5px
}

.password-form__head h2 {
  margin: 0;
  font: 600 24px var(--heading)
}

.password-form__head p {
  margin: 0;
  color: var(--copy);
  font-size: 12px
}

.password-form__fields {
  display: grid;
  gap: 12px
}

.password-form__fields label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600
}

.password-form__fields input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: 13px var(--body, Manrope, sans-serif)
}

.password-form__error {
  margin: -4px 0 0;
  color: #9d3030;
  font-size: 11px
}

.password-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
  border-top: 1px solid var(--line)
}

@media(max-width:520px) {
  .password-form {
    padding: 20px
  }

  .password-form__actions {
    flex-direction: row;
    justify-content: flex-end
  }

  .password-form__actions .button {
    width: auto
  }
}

.header-actions form {
  margin: 0
}

.header-actions button {
  border: 0;
  background: none;
  font: 10px var(--mono)
}

.cabinet-button,
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700
}

.cabinet-button,
.primary {
  background: var(--ink);
  color: var(--paper)
}

.ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--paper)
}

.outline {
  background: transparent
}

.hero {
  height: calc(100vh - 78px);
  min-height: 620px;
  max-height: 820px;
  position: relative;
  display: grid;
  align-items: center;
  color: var(--paper);
  overflow: hidden
}

.hero>img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18))
}

.hero-copy {
  z-index: 1;
  max-width: 680px;
  padding: 0 6vw
}

.eyebrow {
  font: 500 10px var(--mono);
  letter-spacing: .11em
}

.dark {
  color: rgba(25, 26, 26, .57)
}

h1 {
  margin: 17px 0;
  font: 500 clamp(50px, 7vw, 92px)/.95 var(--serif);
  letter-spacing: -.06em
}

h2 {
  font: 500 clamp(32px, 4vw, 58px)/1 var(--serif);
  letter-spacing: -.05em
}

h3 {
  font: 500 28px var(--serif);
  margin: 12px 0 6px
}

.hero-copy p {
  color: rgba(255, 255, 255, .76)
}

.cta-row {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap
}

.hero-links {
  position: absolute;
  z-index: 1;
  bottom: 30px;
  left: 6vw;
  right: 6vw;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700
}

.content-section {
  max-width: 1180px;
  margin: auto;
  padding: 110px 24px
}

.section-top {
  margin-bottom: 38px
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.collection-card {
  transition: transform .2s
}

.collection-card:hover {
  transform: translateY(-5px)
}

.photo-frame {
  padding: 7px;
  background: #ede9e2;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .08);
  overflow: hidden
}

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

.collection-card .photo-frame {
  aspect-ratio: 3/4
}

.collection-card p,
.page-intro>p {
  color: rgba(25, 26, 26, .62);
  font-size: 13px;
  line-height: 1.6
}

.empty-card {
  padding: 35px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: rgba(25, 26, 26, .6)
}

.manifesto {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  padding: 110px max(6vw, 24px);
  background: #e5dfd5
}

.manifesto h2 {
  max-width: 470px
}

.manifesto p {
  max-width: 460px;
  color: rgba(25, 26, 26, .64)
}

.manifesto .photo-frame {
  height: 280px;
  transform: rotate(2deg)
}

footer {
  display: flex;
  justify-content: center;
  padding: 28px;
  font: 10px var(--mono);
  color: rgba(25, 26, 26, .52)
}

.page-intro {
  max-width: 1180px
}

.page-intro>p {
  max-width: 620px;
  font-size: 16px
}

.portfolio-list {
  margin-top: 60px;
  border-top: 1px solid var(--line)
}

.portfolio-list>a {
  display: grid;
  grid-template-columns: 160px 40px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.thumb {
  width: 150px;
  height: 100px;
  border-radius: 12px;
  background: #e5dfd5;
  overflow: hidden
}

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

.portfolio-list h2 {
  margin: 0;
  font-size: 42px
}

.portfolio-list p {
  margin: 6px 0;
  color: rgba(25, 26, 26, .6);
  font-size: 12px
}

.back {
  display: block;
  margin-bottom: 54px;
  font: 11px var(--mono)
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 42px
}

.gallery button {
  border: 0;
  background: none;
  padding: 0;
  cursor: zoom-in
}

.gallery button:first-child {
  grid-row: span 2
}

.gallery .photo-frame {
  height: 300px
}

.gallery button:first-child .photo-frame {
  height: 620px
}

.gallery img {
  height: 100%
}

dialog {
  border: 0;
  background: rgba(0, 0, 0, .88);
  padding: 40px;
  max-width: 100vw;
  max-height: 100vh
}

dialog img {
  max-width: 85vw;
  max-height: 80vh
}

dialog button {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 50px
}

.contact-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  transition: transform .2s
}

.contact-card:hover {
  background: #fff;
  transform: translateY(-3px)
}

.contact-card h2 {
  font-size: 28px;
  margin: 35px 0 0
}

.contact-card p {
  margin: 5px 0;
  font: 11px var(--mono);
  color: rgba(25, 26, 26, .58)
}

.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 60px 24px
}

.auth-card {
  width: min(900px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff
}

.auth-card h1 {
  font-size: 52px
}

.auth-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px
}

.auth-columns form,
.profile-panel form,
.review-panel form,
.admin-grid section form {
  display: grid;
  gap: 11px
}

.auth-columns h2 {
  font-size: 30px
}

.auth-columns label,
.profile-panel label,
.admin-grid label {
  display: grid;
  gap: 5px;
  font-size: 11px
}

.auth-columns input,
.profile-panel input,
.admin-grid input,
.admin-grid textarea,
.admin-grid select,
.review-panel textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff
}

.notice {
  padding: 12px;
  border-radius: 10px
}

.error {
  background: #f3dcd9
}

.success {
  background: #dcece0
}

.cabinet h1 {
  font-size: 62px
}

.profile-panel {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 25px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px
}

.status {
  align-self: center;
  color: rgba(25, 26, 26, .6)
}

.toolbar {
  margin: 42px 0 18px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  font: 11px var(--mono)
}

.client-session {
  margin: 28px 0
}

.client-session header {
  display: flex;
  justify-content: space-between;
  align-items: baseline
}

.client-session h2,
.review-panel h2 {
  font-size: 35px;
  margin: 0
}

.client-session header p {
  font: 11px var(--mono);
  color: rgba(25, 26, 26, .6)
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 13px
}

.client-grid .photo-frame {
  aspect-ratio: 1
}

.selector {
  position: absolute;
  margin: 15px;
  top: 0;
  left: 0;
  padding: 6px 8px;
  background: #fff;
  border-radius: 10px;
  font-size: 10px
}

.client-grid article {
  position: relative
}

.rating {
  display: flex;
  gap: 1px;
  margin-top: 6px
}

.rating button {
  border: 0;
  background: none;
  color: var(--wine);
  font-size: 18px
}

.review-panel {
  margin-top: 70px;
  padding: 24px;
  background: #e5dfd5;
  border-radius: 18px
}

.review-panel textarea {
  min-height: 100px
}

.review-panel small {
  font: 10px var(--mono);
  color: rgba(25, 26, 26, .5)
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 78px)
}

.admin-layout aside {
  padding: 36px 24px;
  border-right: 1px solid var(--line)
}

.admin-layout aside h2 {
  font-size: 32px
}

.admin-main {
  padding: 40px
}

.admin-main h1 {
  font-size: 52px
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.admin-grid section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff
}

.admin-grid section h2 {
  font-size: 27px;
  margin: 0 0 15px
}

.admin-row,
.contact-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px
}

.admin-row form {
  grid-column: 1/-1;
  grid-template-columns: 1fr auto auto
}

.contact-form {
  grid-template-columns: 80px 1fr auto auto
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 5px
}

.admin-grid button {
  border: 1px solid var(--ink);
  border-radius: 9px;
  padding: 7px 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10px
}

@media(max-width:760px) {
  .site-header {
    padding: 0 16px
  }

  .site-header nav {
    display: none
  }

  .header-actions {
    gap: 7px
  }

  .header-actions form,
  .sound-toggle {
    display: none
  }

  .hero {
    min-height: 590px
  }

  .hero-copy {
    padding: 0 24px
  }

  .hero h1 {
    font-size: 50px
  }

  .hero-links {
    left: 24px;
    right: 24px;
    font-size: 10px
  }

  .content-section {
    padding: 72px 16px
  }

  .collection-grid,
  .contact-grid,
  .auth-columns,
  .manifesto,
  .profile-panel,
  .admin-grid {
    grid-template-columns: 1fr
  }

  .manifesto {
    padding: 72px 16px
  }

  .portfolio-list>a {
    grid-template-columns: 92px 1fr
  }

  .portfolio-list>a>span,
  .portfolio-list>a>b {
    display: none
  }

  .thumb {
    width: 85px;
    height: 75px
  }

  .portfolio-list h2 {
    font-size: 31px
  }

  .gallery {
    grid-template-columns: 1fr
  }

  .gallery button:first-child {
    grid-row: auto
  }

  .gallery .photo-frame,
  .gallery button:first-child .photo-frame {
    height: 310px
  }

  .client-grid {
    grid-template-columns: 1fr
  }

  .cabinet h1 {
    font-size: 48px
  }

  .admin-layout {
    grid-template-columns: 1fr
  }

  .admin-layout aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 16px
  }

  .admin-main {
    padding: 24px 16px
  }

  .admin-main h1 {
    font-size: 42px
  }

  .contact-form {
    grid-template-columns: 1fr
  }

  .admin-row form {
    grid-template-columns: 1fr
  }

  .auth-card {
    padding: 24px
  }
}

/* Password dialog actions must override the generic dialog close-button rule. */
.password-dialog .password-form__actions {
  position: static;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line)
}

.password-dialog .password-form__actions button,
.password-dialog .password-form__actions .button {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  min-width: 96px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px
}

.password-dialog .password-form__actions .button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper)
}

.password-dialog .password-form__actions .button-secondary {
  background: transparent;
  color: var(--ink)
}
