/* Casa Palmarola site design. The proposal's resort brochure at dusk, translated to the web:
   deep water ink and limestone grounds, one sunset hairline, photographs and film doing the talking. */
:root {
  --ink: #0b1c27;
  --ink2: #12303f;
  --stone: #ece8e1;
  --stone2: #f5f2ed;
  --sun: #e29a63;
  --mute: #5f6e76;
  --mute-d: #9db0b8;
  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--stone); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

/* type */
.eyebrow { font-weight: 400; font-size: 11px; line-height: 1.4; letter-spacing: .34em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.012em; font-optical-sizing: auto; text-wrap: balance; }
.display em { font-style: italic; }
.h1 { font-size: clamp(42px, 7.4vw, 104px); }
.h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; max-width: 38em; }
.rule { width: 48px; height: 1px; background: var(--sun); border: 0; margin: 28px 0; }
.cap { font-weight: 400; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; }
.sub-note { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.3; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); color: var(--stone); transition: background .35s ease, padding .35s ease; }
.site-header.solid { background: rgba(11, 28, 39, .94); backdrop-filter: blur(8px); padding-block: 14px; }
.brand { text-decoration: none; font-weight: 400; font-size: 12px; letter-spacing: .42em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a { text-decoration: none; font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.nav .btn-line { padding: 10px 20px; border: 1px solid var(--sun); border-bottom-width: 1px; }
.nav .btn-line:hover { background: var(--sun); color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid rgba(236,232,225,.5); color: inherit; font: inherit; font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 9px 16px; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,28,39,.55) 0%, rgba(11,28,39,.32) 45%, rgba(11,28,39,0) 75%), linear-gradient(0deg, rgba(11,28,39,.86) 0%, rgba(11,28,39,.58) 45%, rgba(11,28,39,.28) 75%, rgba(11,28,39,.38) 100%); }
.hero-inner { position: relative; z-index: 2; text-shadow: 0 1px 2px rgba(11,28,39,.55), 0 2px 24px rgba(11,28,39,.45); width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); }
.hero .eyebrow { color: #fff; margin-bottom: 22px; }
.hero .lede { color: var(--stone); margin-top: 26px; }
.hero-cta { text-shadow: none; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.scroll-cue { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); writing-mode: vertical-rl; color: var(--stone); }
.hero-short { min-height: 78vh; min-height: 78svh; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 16px 28px; border: 1px solid var(--sun); color: inherit; background: transparent; cursor: pointer; font-family: inherit; transition: background .25s ease, color .25s ease; }
.btn:hover { background: var(--sun); color: var(--ink); }
.btn-solid { background: var(--sun); color: var(--ink); }
.btn-solid:hover { background: var(--stone); border-color: var(--stone); }

/* sections */
.section { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.section.pale { background: var(--stone2); }
.section.dark { background: var(--ink); color: var(--stone); }
.section.dark .lede, .section.dark p { color: #cfdade; }
.wrap { max-width: var(--max); margin: 0 auto; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head .eyebrow { margin-bottom: 18px; color: var(--mute); }
.dark .head .eyebrow { color: var(--mute-d); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; overflow: hidden; background: #cfd6d8; aspect-ratio: 4 / 5; }
.split-media.wide { aspect-ratio: 3 / 2; }
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; }
.split-copy p + p { margin-top: 1.1em; }
.copy p + p { margin-top: 1.1em; }

/* tiles */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.tile { position: relative; overflow: hidden; background: #cfd6d8; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; display: block; }
.tile.landscape { aspect-ratio: 3 / 2; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a.tile:hover img, a.tile:hover video { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(0deg, rgba(11,28,39,.78), rgba(11,28,39,0)); }
.tile-cap { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.tile-cap .eyebrow { color: var(--stone); margin-bottom: 8px; }
.tile-cap .h3 { margin-bottom: 8px; }
.tile-cap p { font-size: 15px; line-height: 1.5; color: var(--stone); max-width: 24em; }
.fig { margin: 0; }
.fig figcaption { margin-top: 10px; color: var(--mute); }
.dark .fig figcaption { color: var(--mute-d); }
.fig .tile::after { display: none; }

/* lists */
.facts li { padding: 15px 0; border-top: 1px solid rgba(11,28,39,.22); font-weight: 400; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.facts li:last-child { border-bottom: 1px solid rgba(11,28,39,.22); }
.dark .facts li { border-color: rgba(226,154,99,.5); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(11,28,39,.2); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--sun); }
.steps b { font-weight: 400; display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; margin-bottom: 4px; }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px; border-top: 1px solid rgba(11,28,39,.22); }
.compare thead th { font-weight: 400; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); border-top: 0; }
.compare tbody th { font-family: var(--serif); font-weight: 400; font-size: 19px; width: 22%; }
.compare .us { background: var(--ink); color: var(--stone); }
.compare thead .us { color: var(--sun); }
.scroll-x { overflow-x: auto; }
.scroll-x .compare { min-width: 760px; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 400; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 8px; color: var(--mute-d); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-weight: 300; font-size: 17px; color: var(--stone); background: rgba(236,232,225,.07); border: 1px solid rgba(236,232,225,.3); padding: 14px 16px; border-radius: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.form select option { color: var(--ink); }
.form-note { font-size: 14px; color: var(--mute-d); }

/* CTA band and footer */
.cta-band { background: var(--ink2); color: var(--stone); text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.cta-band .display { margin: 18px auto 0; max-width: 16em; }
.cta-band .hero-cta { justify-content: center; }
.site-footer { background: var(--ink); color: var(--mute-d); padding: 56px var(--gutter) 40px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--stone); }
.site-footer .brand { color: var(--stone); display: inline-block; margin-bottom: 14px; }
.legal { max-width: var(--max); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(157,176,184,.25); font-size: 12px; letter-spacing: .08em; }

/* video tile play state */
.tile video { background: #cfd6d8; }

@media (max-width: 960px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-block; }
  .nav { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 28px; transform: translateY(-100%); transition: transform .4s ease; z-index: 60; }
  .nav.open { transform: none; }
  .nav a { font-size: 14px; }
  .menu-btn { position: relative; z-index: 70; }
  .scroll-cue { display: none; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .tile video { transition: none; }
}

/* extra components for the full set of pages */
.todo { border: 1px dashed var(--sun); background: rgba(226,154,99,.12); padding: 16px 20px; font-size: 14px; line-height: 1.55; color: var(--ink); margin: 20px 0; }
.dark .todo { color: var(--stone); background: rgba(226,154,99,.1); }
.todo b { font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: 10.5px; display: block; margin-bottom: 6px; color: var(--sun); }
.faq details { border-top: 1px solid rgba(11,28,39,.22); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(11,28,39,.22); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 21px; line-height: 1.3; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; max-width: 42em; }
.dark .faq details, .dark .faq details:last-child { border-color: rgba(226,154,99,.5); }
.related { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 8px; }
.related a { font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--sun); padding-bottom: 4px; }
.gallery { columns: 3 320px; column-gap: clamp(12px, 1.6vw, 22px); }
.gallery figure, .gallery .gi { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 22px); background: #cfd6d8; }
.gallery img, .gallery video { width: 100%; height: auto; }
.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 32px); }
.card { text-decoration: none; display: block; }
.card .ph { aspect-ratio: 3 / 2; background: #cfd6d8; overflow: hidden; margin-bottom: 18px; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph.empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); border: 1px dashed var(--sun); background: transparent; }
.card p { font-size: 15px; line-height: 1.6; margin-top: 8px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hub-grid a { display: block; padding: 22px 22px 24px; border: 1px solid rgba(11,28,39,.25); text-decoration: none; background: var(--stone2); transition: background .25s ease, color .25s ease; }
.hub-grid a:hover { background: var(--ink); color: var(--stone); }
.hub-grid .eyebrow { margin-bottom: 8px; color: var(--mute); }
.hub-grid a:hover .eyebrow { color: var(--mute-d); }
.hub-grid .h3 { font-size: 22px; }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 14px 12px; border-top: 1px solid rgba(11,28,39,.22); }
.kv th { font-family: var(--serif); font-weight: 400; font-size: 18px; width: 30%; }
.dark .kv th, .dark .kv td { border-color: rgba(226,154,99,.5); }
@media (max-width: 960px) { .card-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-list { grid-template-columns: 1fr; } .gallery { columns: 1; } }

/* the blurred header would otherwise become the containing block for the full-screen mobile menu */
@media (max-width: 780px) {
  .site-header.solid { backdrop-filter: none; background: rgba(11, 28, 39, .97); }
}

/* guest quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.6vw, 40px); }
.quote { margin: 0; padding: 26px 0 0; border-top: 1px solid var(--sun); }
.quote p { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; }
.quote footer { margin-top: 14px; color: var(--mute); }
.dark .quote footer { color: var(--mute-d); }
.rating-line { margin-top: 28px; font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 780px) { .quotes { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
