:root {
  color-scheme: light;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
  color: #000;
  background: #008080;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0000b8; text-underline-offset: 2px; }
a:visited { color: #620080; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px dotted #000; outline-offset: 4px; }
[hidden] { display: none !important; }
main { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.intro { grid-column: 1; grid-row: 1; min-height: 100dvh; padding: 34px; display: flex; align-items: center; }
.homepage { width: 100%; background: #c0c0c0; border: 3px solid; border-color: #fff #404040 #404040 #fff; padding: 3px; }
.masthead { background: #000080; color: #fff; font-family: Tahoma, Verdana, sans-serif; font-size: 14px; font-weight: bold; padding: 8px 10px; }
.homepage-body { padding: clamp(20px, 3vw, 44px); }
.wordmark { display: inline-block; font-size: 13px; overflow-wrap: anywhere; margin-bottom: 24px; }
h1 { font-family: 'Times New Roman', Times, serif; color: #000080; font-size: clamp(44px, 4.5vw, 70px); line-height: 1; letter-spacing: -.045em; margin: 0; text-shadow: 2px 2px #fff; }
.reply { font-family: 'Times New Roman', Times, serif; font-size: 22px; font-style: italic; margin: 22px 0; }
.property-sign { display: inline-block; color: #000; background: #ffff80; border: 1px solid #000; padding: 6px 9px; font-size: 12px; font-weight: bold; margin: 0 0 6px; }
.catalog-note { font-size: 14px; margin: 14px 0 25px; }
hr { border: 0; border-top: 2px solid #808080; border-bottom: 1px solid #fff; margin: 0 0 24px; }
.about { scroll-margin-top: 24px; }
.about h2 { font-family: 'Times New Roman', Times, serif; color: #000080; font-size: 26px; margin: 0 0 13px; }
.about p { font-size: 15px; line-height: 1.65; max-width: 440px; margin: 0 0 14px; }
.about .email-label { margin-bottom: 4px; }
.about .linkedin { margin-top: 18px; }
.about a { font-size: 14px; overflow-wrap: anywhere; }
footer { font-size: 12px; line-height: 1.6; border-top: 1px dashed #808080; margin-top: 28px; padding-top: 16px; }
footer p { margin: 0 0 7px; }
footer small { font-size: 11px; }
.watch { grid-column: 2; grid-row: 1; position: sticky; top: 0; width: 100%; height: 100dvh; background: #000; overflow: hidden; }
.player { position: absolute; inset: 0; }
.refresh, .about-link { background: #c0c0c0; color: #000; border: 3px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; padding: 13px 17px; font-family: Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 15px; }
.refresh:hover, .about-link:hover { background: #dedede; }
.refresh:active, .about-link:active { border-color: #404040 #fff #fff #404040; }
iframe { width: 100%; height: 100%; border: 0; }
.video-controls { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 20px 16px max(22px, env(safe-area-inset-bottom)); pointer-events: none; }
.video-controls > * { pointer-events: auto; }
.refresh { min-height: 48px; white-space: nowrap; }
.refresh span { margin-right: 7px; font-size: 22px; vertical-align: -1px; }
.refresh:focus-visible, .about-link:focus-visible, .scroll-hint:focus-visible { outline-color: #ffff80; }
.about-link { display: flex; align-items: center; min-height: 40px; padding: 9px 13px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.about-link:visited { color: #000; }
.scroll-hint { display: none; }
.error { position: absolute; top: 25%; left: 5%; width: 90%; background: #c0c0c0; border: 3px outset #fff; padding: 20px; line-height: 1.5; }
noscript { position: absolute; top: 20%; background: #fff; padding: 20px; }
@media (max-width: 1000px) and (min-width: 769px) {
  .intro { padding: 18px; }
  .homepage-body { padding: 22px 16px; }
  h1 { font-size: 48px; }
}
@media (max-width: 768px) {
  main { display: flex; flex-direction: column; }
  .watch { position: relative; flex: none; height: 100dvh; }
  .intro { width: 100%; padding: 22px 16px; min-height: 100dvh; }
  .homepage-body { padding: 27px 20px; }
  h1 { font-size: clamp(46px, 10vw, 70px); }
  .refresh { font-size: 14px; padding: 11px 12px; }
  .scroll-hint { position: absolute; bottom: 160px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 12px 18px; color: #fff; background: #000c; text-decoration: none; font-size: 13px; text-align: center; animation: swipe-invitation 3s ease-in-out 2s both; }
  .scroll-hint:visited { color: #fff; }
  .swipe-hand { font-family: Arial, sans-serif; font-size: 42px; line-height: 1; }
}
@keyframes swipe-invitation {
  0%, 100% { opacity: 0; visibility: hidden; translate: 0 0; }
  12%, 82% { opacity: 1; visibility: visible; }
  35%, 65% { translate: 0 10px; }
  50%, 80% { translate: 0 0; }
}
@keyframes still-invitation {
  0%, 100% { opacity: 0; visibility: hidden; }
  1%, 99% { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation-name: still-invitation; }
}
