/* Rannapere Puhkemajad — preview by Saarekiri. Colours from their photos: the bay at dusk, the sunset over
   Rutja bay, the white terrace railing, sand and the pines. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("fonts/cormorant-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/hanken-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bay: #1c3347;       /* the bay after sunset */
  --bay-2: #27465f;
  --dusk: #6f6a93;      /* lilac sky over the horizon */
  --ember: #e0703f;     /* the red sunset */
  --ember-d: #b8532a;
  --glow: #f2b65c;      /* string lights */
  --sand: #f6f0e6;
  --sand-2: #ece2d1;
  --pine: #2f4a3a;
  --ink: #1b2530;
  --ink-soft: #4a5663;
  --rail: #ffffff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gap: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ember-d); text-underline-offset: 3px; }
a:hover { color: var(--bay); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(34px, 4.2vw, 52px); }
h3 { font-size: 28px; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--ember); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bay); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ember-d); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 240, 230, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-2); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bay); text-decoration: none; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand b { font: 600 24px/1 var(--serif); display: block; }
.brand small { font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ember-d); }
.lang { display: flex; border: 1px solid var(--bay); border-radius: 999px; overflow: hidden; font: 600 13px/1 var(--sans); }
.lang a, .lang span { padding: 8px 12px; text-decoration: none; }
.lang span { background: var(--bay); color: #fff; }
.lang a { color: var(--bay); }
@media (max-width: 980px) { .nav { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { background: var(--bay); color: var(--sand); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 64px 0 72px; }
.hero .eyebrow { color: var(--glow); }
.hero h1 { color: #fff; }
.hero .lead { font-size: 19px; color: #dfe6ee; max-width: 34em; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero figcaption { font-size: 13px; color: #b9c6d3; margin-top: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }
.btn-sun { background: var(--ember); color: #fff; }
.btn-sun:hover { background: var(--ember-d); color: #fff; }
.btn-line { border: 1.5px solid currentColor; color: #fff; }
.btn-line:hover { color: var(--glow); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.chips li { border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 7px 14px; color: #e9eef3; }
.chips b { color: var(--glow); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 44px; }
  .hero figure { order: -1; }
}

/* the white terrace railing as a divider */
.railing { height: 34px; background:
  linear-gradient(var(--rail), var(--rail)) 0 4px / 100% 4px no-repeat,
  linear-gradient(var(--rail), var(--rail)) 0 26px / 100% 3px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 18px, var(--rail) 18px 22px) 0 4px / 100% 26px no-repeat,
  var(--bay); }

/* facts */
.facts { background: var(--sand); padding: 44px 0 8px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-2); border: 1px solid var(--sand-2); }
.facts li { background: var(--sand); padding: 20px 20px 18px; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.facts li b { display: block; font: 600 22px/1.15 var(--serif); color: var(--bay); margin-bottom: 2px; }
.facts svg { width: 26px; height: 26px; flex: none; color: var(--ember); margin-top: 2px; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; } }

section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.prose p { color: var(--ink-soft); }
.prose .quote-own { font: italic 500 26px/1.3 var(--serif); color: var(--bay); border-left: 3px solid var(--ember); padding-left: 18px; margin: 0 0 22px; }
.note { font-size: 14px; color: var(--ink-soft); }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* justified photo rows: each tile's share of the row is its photo's aspect ratio, so nothing is cropped */
.row { display: flex; gap: var(--gap); margin-top: var(--gap); }
.row figure { flex: var(--r) 1 0; min-width: 0; }
.row img { width: 100%; aspect-ratio: var(--r); border-radius: 3px; background: var(--sand-2); }
@media (max-width: 640px) {
  .row.stack { flex-direction: column; }
  .row.stack figure { flex: none; }
}

/* cabins */
.cabins { background: #fff; }
.cabin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.cabin h3 { color: var(--bay); }
.cabin p { color: var(--ink-soft); }
@media (max-width: 900px) { .cabin-grid { grid-template-columns: 1fr; gap: 56px; } }

/* shared area */
.shared-list { list-style: none; padding: 0; margin: 0 0 20px; }
.shared-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--sand-2); position: relative; color: var(--ink-soft); }
.shared-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.shared-list b { color: var(--ink); }

/* evenings */
.evenings { background: linear-gradient(180deg, var(--bay) 0%, #2a3557 55%, #4a3f63 100%); color: var(--sand); }
.evenings h2 { color: #fff; }
.evenings .eyebrow { color: var(--glow); }
.evenings p { color: #d8dfe8; }
.evenings figcaption { color: #b9c6d3; }
.evenings .grid { display: grid; grid-template-columns: 4fr 3fr; gap: 40px; align-items: end; }
.evenings .big { font: italic 500 clamp(28px, 3.4vw, 42px)/1.2 var(--serif); color: #fff; margin: 0 0 18px; }
@media (max-width: 900px) { .evenings .grid { grid-template-columns: 1fr; } }

/* reviews */
.scores { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 36px; }
.score { background: #fff; border: 1px solid var(--sand-2); border-radius: 6px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; }
.score b { font: 600 44px/1 var(--serif); color: var(--bay); }
.score span { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.score span strong { color: var(--ink); display: block; font-size: 15px; }
.quotes { columns: 3 300px; column-gap: 20px; }
.quotes blockquote { break-inside: avoid; margin: 0 0 20px; background: #fff; border-radius: 6px; padding: 24px 24px 20px; border-top: 3px solid var(--ember); }
.quotes blockquote p { font: 500 21px/1.35 var(--serif); color: var(--ink); margin: 0 0 14px; }
.quotes blockquote ul { margin: 0 0 14px; padding-left: 18px; font: 500 20px/1.35 var(--serif); }
.quotes footer { font-size: 13px; color: var(--ink-soft); }
.quotes footer b { color: var(--ink); }
.tr { font-style: italic; }

/* location */
.location { background: var(--sand-2); }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.info div { background: var(--sand); border-radius: 6px; padding: 22px; }
.info h3 { font-size: 24px; color: var(--bay); margin-bottom: 8px; }
.info p { margin: 0 0 .5em; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .info { grid-template-columns: 1fr; } }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.map-links a { font-weight: 600; }

/* contact */
.contact { background: var(--bay); color: var(--sand); text-align: center; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--glow); justify-content: center; }
.contact p { color: #d8dfe8; max-width: 40em; margin-inline: auto; }
.contact-list { list-style: none; padding: 0; margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; }
.contact-list a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; color: #fff; text-decoration: none; height: 100%; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--glow); color: var(--glow); }
.contact-list small { color: #b9c6d3; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.contact-list strong { font-size: 17px; font-weight: 600; }
.contact-list svg { width: 26px; height: 26px; color: var(--glow); }
@media (max-width: 760px) { .contact-list { grid-template-columns: 1fr; } }

/* footer */
.foot { background: #142636; color: #9fb0c0; font-size: 14px; padding: 30px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: #c9d5e0; }
.foot .made { opacity: .8; }
