:root {
  --ink: #1f1c1a;
  --charcoal: #26211f;
  --cream: #f7f1ea;
  --paper: #fffaf4;
  --bronze: #a8763e;
  --terracotta: #36859d;
  --sage: #7e8b73;
  --line: rgba(31, 28, 26, 0.14);
  --shadow: 0 28px 80px rgba(31, 28, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 0px;
  min-height: 100vh;
  background: var(--cream);
  transition: grid-template-columns 320ms ease;
}

.app-shell.plan-open {
  grid-template-columns: 220px minmax(0, 1fr) 360px;
}

.section-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--charcoal);
  color: var(--cream);
  padding: 1.5rem;
  z-index: 2;
}

.nav-brand {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 241, 234, .36);
  border-radius: 50%;
  font-family: Georgia, serif;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
  font-weight: 900;
}

.nav-links {
  display: grid;
  gap: .3rem;
  margin-top: 1.2rem;
}

.nav-link {
  border: 0;
  border-bottom: 1px solid rgba(247, 241, 234, .14);
  background: transparent;
  color: var(--cream);
  text-align: left;
  padding: .92rem 0;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
}

.nav-link:hover {
  color: var(--bronze);
}

.drawer-button {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  border: 1px solid rgba(247, 241, 234, .25);
  background: transparent;
  color: var(--cream);
  padding: .95rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .72rem;
  font-weight: 900;
}

.drawer-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: .5rem;
  border-radius: 50%;
  background: var(--bronze);
  color: #fff;
}

.menu-content {
  padding: clamp(2rem, 5vw, 6rem);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 82vh;
  margin-bottom: 4rem;
}

.hero h1,
.section-title,
.dialog-body h2,
.inquiry-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 9rem);
  margin: .7rem 0 1.2rem;
}

.hero p:last-child {
  max-width: 48ch;
  color: rgba(31, 28, 26, .7);
  line-height: 1.65;
  font-size: 1.08rem;
}

.hero-image-stack {
  position: relative;
  min-height: 680px;
}

.hero-main {
  width: 78%;
  height: 660px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: 36%;
  min-width: 170px;
  box-shadow: var(--shadow);
}

.menu-section {
  scroll-margin-top: 2rem;
  margin-bottom: 5.5rem;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.4rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.section-header img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.section-title {
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  margin: .45rem 0 .8rem;
}

.section-summary {
  max-width: 58ch;
  color: rgba(31, 28, 26, .7);
  line-height: 1.65;
}

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

.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-row h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.02em;
}

.menu-row p {
  margin: .45rem 0 0;
  color: rgba(31, 28, 26, .7);
  line-height: 1.55;
  max-width: 68ch;
}

.menu-row-actions {
  text-align: right;
  display: grid;
  align-content: start;
  gap: .75rem;
}

.price {
  color: var(--bronze);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  white-space: nowrap;
}

.row-buttons {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 900;
  padding: .35rem 0;
}

.add-button {
  border-bottom: 1px solid currentColor;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .85rem;
}

.tag {
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .65rem;
  font-weight: 900;
}

.editorial-break {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1rem;
  margin: 3.8rem 0;
}

.editorial-break img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.editorial-note {
  min-height: 360px;
  background: var(--charcoal);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: 2.2rem;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.02;
}

.inquiry-panel {
  min-height: 100vh;
  overflow: hidden;
  opacity: 0;
  transform: translateX(16px);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transition: opacity 240ms ease, transform 240ms ease;
}

.app-shell.plan-open .inquiry-panel {
  opacity: 1;
  transform: translateX(0);
}

.panel-sticky {
  position: sticky;
  top: 0;
  padding: 2rem;
  min-width: 360px;
}

.panel-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--ink);
}

.inquiry-panel h2 {
  font-size: 2.4rem;
  margin: .5rem 0;
}

.panel-intro {
  color: rgba(31, 28, 26, .68);
  line-height: 1.55;
}

.plan-toast {
  background: var(--charcoal);
  color: var(--cream);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: .86rem;
  animation: softFade 1.8s ease both;
}

@keyframes softFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  15%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.quote-fields {
  display: grid;
  gap: .85rem;
  margin: 1.4rem 0;
}

.quote-fields label {
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: rgba(31, 28, 26, .66);
}

.quote-fields input {
  border: 1px solid var(--line);
  background: #fff;
  padding: .85rem;
  color: var(--ink);
  width: 100%;
}

.selected-item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.selected-item strong {
  font-family: Georgia, serif;
  font-weight: 400;
}

.selected-item button {
  border: 0;
  background: transparent;
  color: var(--terracotta);
}

.empty-state {
  color: rgba(31, 28, 26, .55);
  font-style: italic;
}

.estimate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.estimate span {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .68rem;
  font-weight: 900;
}

.estimate strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--bronze);
}

.primary-button {
  width: 100%;
  border: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 1rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 900;
}

.details-dialog {
  width: min(920px, calc(100vw - 2rem));
  border: 0;
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.details-dialog::backdrop {
  background: rgba(31, 28, 26, .48);
}

.dialog-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
}

.details-dialog img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.dialog-body {
  padding: 2.4rem;
}

.dialog-body h2 {
  font-size: 3.3rem;
  margin: .5rem 0 1rem;
}

.dialog-body p {
  line-height: 1.65;
  color: rgba(31, 28, 26, .72);
}

.dialog-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--paper);
  font-size: 1.6rem;
}

@media (max-width: 1180px) {

  .app-shell,
  .app-shell.plan-open {
    grid-template-columns: 1fr;
  }

  .section-nav,
  .panel-sticky {
    position: static;
    height: auto;
  }

  .inquiry-panel {
    opacity: 1;
    transform: none;
  }

  .hero,
  .section-header,
  .editorial-break,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-stack {
    min-height: auto;
  }

  .hero-main {
    width: 100%;
    height: 420px;
  }

  .hero-card {
    display: none;
  }
}