/* Xenuvia, six rooms in the old town of Nafplio.
   Low contrast neutrals on dusty rose, charcoal text, emerald for links, rules and the
   three figures. Rounded headings in a light weight, wide letter-spaced labels, one long
   column with wide margins, pull quotes that break out of it. */

:root {
  --rose: #E9D6CF;
  --rose-2: #E2CCC4;
  --rose-3: #F1E4DF;
  --ink: #2E2C2B;
  --muted: #6E6461;
  --line: #CDB7AF;
  --emerald: #1F6B52;

  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Arial Rounded MT", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --col: 40rem;
  --wide: 58rem;
  --pad: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(0.25, 0.6, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--rose);
}

body {
  margin: 0;
  background: var(--rose);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  text-wrap: balance;
}

ul, ol {
  padding: 0;
  list-style: none;
}

p, li, dd, td {
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: var(--emerald);
  color: var(--rose-3);
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.xv-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--rose-3);
  text-decoration: none;
}

.xv-skip:focus {
  top: 12px;
}

.xv-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.xv-main p a,
.xv-main li a,
.xv-main td a,
.xv-main dd a {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(31, 107, 82, 0.45);
  transition: text-decoration-color 220ms ease;
}

.xv-main p a:hover,
.xv-main li a:hover,
.xv-main td a:hover,
.xv-main dd a:hover {
  text-decoration-color: var(--emerald);
}

/* ---------- Header ---------- */

.xv-head {
  position: relative;
  z-index: 40;
  background: var(--rose);
  border-bottom: 1px solid var(--line);
}

.xv-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 var(--pad);
}

.xv-mark {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.xv-nav {
  display: none;
}

.xv-nav-list {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
}

.xv-nav-link {
  padding: 8px 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.xv-nav-link:hover,
.xv-nav-link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--emerald);
}

.xv-menu {
  position: static;
}

.xv-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.xv-menu-btn::-webkit-details-marker {
  display: none;
}

.xv-menu-btn::marker {
  content: "";
}

.xv-menu-lines {
  position: relative;
  width: 16px;
  height: 7px;
}

.xv-menu-lines::before,
.xv-menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}

.xv-menu-lines::before {
  top: 0;
}

.xv-menu-lines::after {
  top: 6px;
}

.xv-menu[open]:not(.is-closing) .xv-menu-lines::before {
  top: 3px;
  transform: rotate(45deg);
}

.xv-menu[open]:not(.is-closing) .xv-menu-lines::after {
  top: 3px;
  transform: rotate(-45deg);
}

.xv-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 8px var(--pad) 28px;
  background: var(--rose-3);
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .xv-menu[open] .xv-menu-panel {
    animation: xv-fade-in 260ms var(--ease) both;
  }

  .xv-menu.is-closing .xv-menu-panel {
    animation: xv-fade-out 260ms var(--ease) both;
  }
}

@keyframes xv-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes xv-fade-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-6px); }
}

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

.xv-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
}

.xv-menu-link[aria-current="page"] {
  color: var(--emerald);
}

.xv-chev {
  flex: none;
  width: 0.5em;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 880px) {
  .xv-nav {
    display: block;
  }

  .xv-menu {
    display: none;
  }
}

/* ---------- Opening: one sentence, full width ---------- */

.xv-open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px var(--pad) 8px;
}

@media (min-width: 700px) {
  .xv-open {
    min-height: calc(100vh - 73px);
    min-height: calc(100svh - 73px);
    padding: clamp(40px, 6vw, 80px) var(--pad);
  }
}

.xv-open-line {
  font-size: clamp(2.3rem, 7.4vw, 8rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.xv-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 12px clamp(24px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.xv-figure-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.xv-figure-label {
  display: block;
  margin-top: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- The long column ---------- */

.xv-read {
  padding: 0 var(--pad);
}

.xv-sec {
  max-width: var(--col);
  margin: 0 auto;
  padding-top: clamp(72px, 9vw, 128px);
}

.xv-label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.xv-h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
}

.xv-h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.xv-sec > p + p,
.xv-sec > p + .xv-rules,
.xv-sec > .xv-rules + p {
  margin-top: 1.1em;
}

.xv-lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Pull quotes break out wider than the column. */
.xv-pull {
  max-width: var(--wide);
  margin: clamp(64px, 8vw, 112px) auto 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--emerald);
}

.xv-pull-text {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.xv-pull figcaption {
  margin-top: 18px;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Dense ruled lists. */
.xv-rules {
  border-top: 1px solid var(--line);
}

.xv-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 20px;
  padding: 12px 0 11px;
  border-bottom: 1px solid var(--line);
}

.xv-rule-k {
  min-width: 0;
}

.xv-rule-v {
  font-family: var(--display);
  font-weight: 400;
  white-space: nowrap;
  text-align: right;
}

.xv-rule-note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}

.xv-room {
  padding-top: 36px;
}

.xv-room + .xv-room {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.xv-room .xv-label {
  margin-bottom: 10px;
}

.xv-room .xv-h3 {
  margin-bottom: 14px;
}

.xv-room p + p {
  margin-top: 0.9em;
}

.xv-room .xv-rules {
  margin-top: 18px;
}

.xv-sign {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.xv-table-wrap {
  overflow-x: auto;
}

.xv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.xv-table th,
.xv-table td {
  padding: 11px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.xv-table thead th {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--ink);
}

.xv-table tbody th {
  font-family: var(--display);
  font-weight: 400;
}

.xv-table .xv-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 599px) {
  .xv-table--stack thead {
    display: none;
  }

  .xv-table--stack tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px 0 11px;
    border-bottom: 1px solid var(--line);
  }

  .xv-table--stack th,
  .xv-table--stack td {
    padding: 0;
    border: 0;
  }

  .xv-table--stack th {
    grid-column: 1 / -1;
  }

  .xv-table--stack td::before {
    content: attr(data-k) " ";
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .xv-table--stack .xv-num {
    text-align: left;
  }
}

/* ---------- Contact ---------- */

.xv-mail {
  display: inline-block;
  max-width: 100%;
  margin: 8px 0 24px;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--emerald);
  padding-bottom: 8px;
  transition: color 220ms ease;
}

.xv-mail:hover {
  color: var(--emerald);
}

/* ---------- Next ---------- */

.xv-next {
  max-width: var(--col);
  margin: 0 auto;
  padding-top: clamp(72px, 9vw, 128px);
}

.xv-next-list {
  border-top: 1px solid var(--ink);
}

.xv-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 21px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
}

.xv-next-link small {
  display: block;
  margin-top: 4px;
  font-family: var(--body);
  font-size: 0.875rem;
  color: var(--muted);
}

.xv-next-link .xv-chev {
  width: 0.5em;
  color: var(--emerald);
  transition: transform 260ms var(--ease);
}

.xv-next-link:hover .xv-chev {
  transform: translateX(5px);
}

/* ---------- Footer ---------- */

.xv-foot {
  margin-top: clamp(80px, 10vw, 144px);
  padding: 56px var(--pad) 28px;
  background: var(--rose-2);
  border-top: 1px solid var(--line);
}

.xv-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: var(--wide);
  margin: 0 auto;
}

.xv-foot .xv-label {
  margin-bottom: 10px;
}

.xv-foot p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.xv-foot-list a {
  display: inline-block;
  padding: 3px 0;
  color: var(--ink);
  text-decoration: none;
}

.xv-foot-list a:hover {
  color: var(--emerald);
}

.xv-foot-list a[aria-current="page"] {
  color: var(--emerald);
}

.xv-foot-mail {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
}

.xv-foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--wide);
  margin: 40px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 880px) {
  .xv-foot-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Slow reveals: visible by default; only blocks below the fold wait ---------- */

.xv-rv {
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}

.xv-rv.is-waiting {
  opacity: 0;
  transform: translateY(10px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .xv-rv.is-waiting {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .xv-head {
    display: none !important;
  }

  .xv-rv.is-waiting {
    opacity: 1 !important;
    transform: none !important;
  }
}
