/* --u scales the original 1280px desktop layout down proportionally on smaller screens */
:root { --u: min(1px, 100vw / 1280); --blue: rgb(212, 238, 251); }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Raleway', 'Noto Sans SC', sans-serif; color: #222; background: #fff; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 40px; background: var(--blue); }
.logo img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; font: 300 14px/1 'Roboto', 'Noto Sans SC', sans-serif; letter-spacing: .04em; }
.site-nav a { text-decoration: none; color: #111; padding: 8px 0; }
.site-nav a:hover { opacity: .6; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); padding: 8px 16px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 0; }
.menu-toggle { display: none; font-size: 26px; background: none; border: 0; cursor: pointer; }

.sec { background-size: cover; background-position: center; }
.sec.has-bg { min-height: calc(var(--h) * var(--u)); }
.inner { max-width: 1280px; margin: 0 auto; padding: calc(var(--pt) * var(--u)) 0 calc(var(--pb) * var(--u)); }
.h { display: flex; align-items: flex-start; }
.cell { margin-top: calc(var(--mt, 0) * var(--u)); }
.ov { background-size: cover; background-position: center; min-height: calc(var(--h) * var(--u)); padding: calc(var(--pt) * var(--u)) 0 calc(var(--pb) * var(--u)); }
.cell > img, .cell > a > img { width: 100%; object-fit: cover; }

.tx > * { margin: 0 0 .5em; font-size: calc(var(--fs, 16) * var(--u)); line-height: 1.5; }
.tx > *:last-child { margin-bottom: 0; }
.tx h1, .tx h2, .tx h3 { line-height: 1.3; font-weight: inherit; }
.tx ul, .tx ol { padding-left: 1.3em; }
.tx ul > li, .tx ol > li { margin-bottom: .3em; }
.tx a { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-width: calc(200 * var(--u)); padding: calc(16 * var(--u)) calc(28 * var(--u)); font: 400 calc(16 * var(--u)) 'Raleway', 'Noto Sans SC', sans-serif; text-decoration: none; cursor: pointer; transition: filter .2s; }
.btn:hover { filter: brightness(.92); }
.cell:has(> .btn) { text-align: center; }

.field { display: block; margin-bottom: 12px; font-size: 14px; }
.field span { display: block; margin-bottom: 4px; }
.dark .field { color: #fff; }
.field input, .field textarea, .field select { width: 100%; padding: 10px; border: 1px solid #bbb; font: inherit; background: #fff; }
.field textarea { min-height: 110px; }
.field input[type=checkbox] { width: auto; }
iframe { width: 100%; border: 0; }

.post { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; font: 300 17px/1.8 'Raleway', 'Noto Sans SC', sans-serif; }
.post h1 { font: 400 36px/1.3 'Playfair Display', 'Noto Serif SC', serif; }
.post h2, .post h3, .post h4 { font-family: 'Playfair Display', 'Noto Serif SC', serif; font-weight: 400; margin: 1.6em 0 .6em; }
.post img { margin: 24px 0; width: 100%; }
.post .meta { color: #888; font-size: 14px; }
.post .btn { background: var(--blue); color: #222; }
.post .table { overflow-x: auto; }
.post table { border-collapse: collapse; width: 100%; font-size: 15px; }
.post td { border: 1px solid #ddd; padding: 8px; vertical-align: top; }

.post-index { max-width: 1000px; margin: 0 auto; padding: 40px 20px 80px; }
.post-index h2 { font: 400 32px 'Playfair Display', 'Noto Serif SC', serif; }
.post-index ul { columns: 2 320px; gap: 40px; padding-left: 1.2em; line-height: 1.7; }
.post-index li { break-inside: avoid; margin-bottom: 8px; }
#footer .sec { color: #fff; }
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 20; padding: 12px 18px; border-radius: 30px; background: #25d366; color: #fff; text-decoration: none; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }

@media (max-width: 767px) {
  :root { --u: 1px; }
  .site-header { padding: 10px 16px; }
  .logo img { height: 40px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--blue); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .dropdown-menu { display: block; position: static; box-shadow: none; background: none; padding: 0 0 0 16px; }
  .h { flex-direction: column; }
  .cell { margin-left: 0 !important; width: 100% !important; margin-top: min(calc(var(--mt, 0) * 1px), 24px); }
  .inner, .ov { padding: 32px 0; }
  .sec.has-bg { min-height: 0; }
  .ov { min-height: 0; }
  .ov:not(:has(.cell)) { aspect-ratio: 4 / 3; }
  .sec.has-bg .inner { padding: 72px 0; }
  .tx { padding: 0 16px; }
  .cell > img, .cell > a > img { max-height: 60vh; }
  .tx > * { font-size: calc(clamp(15, var(--fs, 16), 28) * 1px); }
  .btn { min-width: 0; padding: 14px 24px; font-size: 15px; }
  .cell:has(> .field), .cell:has(> .btn) { padding: 0 16px; }
}
