:root {
  --ink: #11110f;
  --paper: #f6f5f1;
  --line: #cac8c0;
  --muted: #6f6d66;
  --reserved: #b63b30;
  --green: #315e4c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; }
button { border: 0; }

.directory-header { align-items: center; background: rgba(246, 245, 241, 0.95); border-bottom: 1px solid var(--line); display: flex; height: 82px; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 10; }
.directory-brand { display: flex; flex-direction: column; font-family: "Avenir Next", Avenir, sans-serif; font-size: 17px; font-weight: 600; line-height: 0.84; }
.directory-header nav { display: flex; font-size: 12px; gap: 28px; }
.directory-header nav a { color: var(--muted); padding: 8px 0; }
.directory-header nav a.active, .directory-header nav a:hover { border-bottom: 1px solid var(--ink); color: var(--ink); }

main { margin: 0 auto; max-width: 1560px; padding: 0 32px 100px; }
.directory-intro { align-items: end; display: grid; grid-template-columns: 1fr 2fr 1fr; min-height: 220px; padding: 50px 0 34px; }
.directory-intro > p { color: var(--muted); font-size: 10px; margin: 0; }
.directory-intro > p:last-child { justify-self: end; }
.directory-intro h1 { font-size: clamp(44px, 6vw, 90px); font-weight: 400; line-height: 0.96; margin: 0; }

.photographer-profile { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); min-height: 640px; }
.photographer-profile.reverse { grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr); }
.photographer-profile.reverse .profile-visual { order: 2; }
.profile-visual { align-items: center; background: #deddd8; display: flex; justify-content: center; min-height: 640px; overflow: hidden; }
.profile-visual img { height: 100%; object-fit: cover; width: 100%; }
.profile-visual span { font-size: clamp(140px, 22vw, 340px); font-weight: 300; text-transform: uppercase; }
.profile-copy { display: flex; flex-direction: column; padding: 42px; }
.profile-copy > p { color: var(--muted); font-size: 10px; margin: 0; }
.profile-copy h2 { font-size: clamp(44px, 6vw, 88px); font-weight: 400; margin: auto 0 24px; }
.profile-copy div { font-size: 15px; line-height: 1.8; white-space: normal; }
.profile-copy a { align-self: flex-start; border-bottom: 1px solid; font-size: 11px; margin-top: 34px; padding-bottom: 5px; }
.profile-copy a + a { margin-top: 14px; }
.directory-empty { border-top: 1px solid var(--line); min-height: 400px; padding-top: 60px; }

.availability-toolbar { align-items: end; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 25px 0; }
.photographer-tabs { display: flex; gap: 12px; }
.photographer-tabs button { background: transparent; border: 1px solid var(--line); cursor: pointer; min-height: 42px; padding: 0 22px; }
.photographer-tabs button.active { background: var(--ink); color: #fff; }
.date-selectors { display: flex; gap: 14px; }
.date-selectors label { color: var(--muted); display: grid; font-size: 9px; gap: 6px; }
.date-selectors select { background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; min-width: 100px; padding: 6px 0; }
.calendar-section { padding-top: 50px; }
.calendar-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 24px; }
.calendar-heading h2 { font-size: 28px; font-weight: 400; margin: 0; }
.calendar-heading p { color: var(--muted); font-size: 10px; margin: 0; }
.calendar-heading p span { background: var(--reserved); display: inline-block; height: 8px; margin-right: 6px; width: 8px; }
.calendar-grid { border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; padding: 12px; text-align: center; }
.calendar-day { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 118px; padding: 13px; position: relative; }
.calendar-day time { font-size: 12px; }
.calendar-day.reserved { background: var(--reserved); color: #fff; }
.calendar-day.reserved span { bottom: 13px; font-size: 10px; position: absolute; right: 13px; }
.calendar-day.blank { background: #eeece6; }
.calendar-empty { color: var(--green); font-size: 11px; margin: 20px 0 0; }

.reserved-list-section { border-top: 1px solid var(--line); margin-top: 82px; padding: 38px 0 20px; scroll-margin-top: 100px; }
.reserved-list-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 26px; }
.reserved-list-heading p { color: var(--muted); font-size: 10px; margin: 0; }
.reserved-list-heading h2 { font-size: 28px; font-weight: 400; margin: 8px 0 0; }
.reserved-date-list { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.reserved-date-list li { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 48px minmax(0, 1fr) 105px; min-height: 92px; }
.reserved-date-list li > span { color: var(--muted); font-size: 10px; }
.reserved-date-list time { align-items: baseline; display: flex; gap: 18px; }
.reserved-date-list time strong { font-size: 18px; font-weight: 400; }
.reserved-date-list time small { color: var(--muted); font-size: 10px; }
.reserved-date-list em { align-items: baseline; display: flex; font-style: normal; justify-content: space-between; }
.reserved-date-list em { color: var(--muted); font-size: 10px; }
.reserved-date-list em b { color: var(--ink); font-size: 24px; font-weight: 400; }
.reserved-list-empty { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); color: var(--green); font-size: 11px; margin: 0; padding: 34px 0; }

footer { align-items: center; background: var(--ink); color: var(--paper); display: flex; font-size: 10px; justify-content: space-between; min-height: 150px; padding: 32px; }
footer p { margin: 0; }
footer a { border-bottom: 1px solid; padding-bottom: 4px; }

@media (max-width: 700px) {
  .directory-header { height: 68px; padding: 0 18px; }
  .directory-brand { font-size: 14px; }
  .directory-header nav { gap: 14px; }
  main { padding: 0 16px 60px; }
  .directory-intro { display: block; min-height: 170px; padding: 46px 0 24px; }
  .directory-intro h1 { font-size: 46px; margin: 12px 0; }
  .photographer-profile, .photographer-profile.reverse { display: flex; flex-direction: column; min-height: 0; }
  .photographer-profile.reverse .profile-visual { order: 0; }
  .profile-visual { aspect-ratio: 4 / 5; min-height: 0; }
  .profile-copy { min-height: 380px; padding: 26px 8px 40px; }
  .profile-copy h2 { font-size: 52px; }
  .availability-toolbar { align-items: stretch; flex-direction: column; gap: 24px; }
  .photographer-tabs { overflow-x: auto; }
  .photographer-tabs button { flex: 0 0 auto; }
  .date-selectors label { flex: 1; }
  .date-selectors select { width: 100%; }
  .calendar-section { padding-top: 36px; }
  .calendar-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .calendar-heading h2 { font-size: 22px; }
  .weekday { padding: 9px 4px; }
  .calendar-day { min-height: 68px; padding: 8px; }
  .calendar-day.reserved span { bottom: 7px; font-size: 8px; right: 7px; }
  .reserved-list-section { margin-top: 56px; padding-top: 28px; scroll-margin-top: 80px; }
  .reserved-list-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .reserved-list-heading h2 { font-size: 22px; }
  .reserved-date-list li { gap: 12px; grid-template-columns: 28px minmax(0, 1fr) 72px; min-height: 82px; }
  .reserved-date-list time { align-items: flex-start; flex-direction: column; gap: 5px; }
  .reserved-date-list time strong { font-size: 14px; }
  .reserved-date-list em b { font-size: 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 24px; padding: 30px 18px; }
}
