/* Villa Themistokli — coming soon.
   One screen: the stone archway as a warm sepia print, and a quiet caption. */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-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;
}

:root {
  --umber: #1a130c;        /* darkest print tone */
  --paper: #f1e6d0;        /* print highlights: the caption's ink */
  --paper-soft: #d9c7a6;   /* secondary caption text, 9:1 on the shadows */
  --rule: rgba(241, 230, 208, 0.45);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  caret-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--paper); color: var(--umber); }

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

/* ---------- the print ---------- */

.print {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background: var(--umber);
}

.print-photo {
  position: absolute;
  inset: -12% 0 0 0;
  z-index: -2;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 75% 50%;
  /* a black-and-white photograph toned like an old albumen print */
  filter: sepia(0.62) saturate(1.15) contrast(1.06) brightness(0.86);
}

/* the print's own shadow: deeper at the head and the foot, where the caption sits */
.print::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(26, 19, 12, 0.92) 0%, rgba(26, 19, 12, 0.78) 20%, rgba(26, 19, 12, 0) 38%),
    linear-gradient(to top, rgba(26, 19, 12, 0.96) 0%, rgba(26, 19, 12, 0.82) 30%, rgba(26, 19, 12, 0) 52%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(26, 19, 12, 0) 55%, rgba(26, 19, 12, 0.5) 100%);
}

/* fine silver grain */
.print::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- the caption: title at the head of the print, notice at its foot ---------- */

.caption {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding:
    max(clamp(1.75rem, 6vw, 3.5rem), env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .print::before {
    background:
      linear-gradient(to right, rgba(26, 19, 12, 0.92) 0%, rgba(26, 19, 12, 0.82) 32%, rgba(26, 19, 12, 0) 50%),
      linear-gradient(to top, rgba(26, 19, 12, 0.6) 0%, rgba(26, 19, 12, 0) 35%),
      radial-gradient(ellipse 52% 72% at 0% 100%, rgba(26, 19, 12, 0.94) 0%, rgba(26, 19, 12, 0.8) 45%, rgba(26, 19, 12, 0) 100%),
      radial-gradient(ellipse 110% 100% at 55% 45%, rgba(26, 19, 12, 0) 55%, rgba(26, 19, 12, 0.5) 100%);
  }
  .print-photo { inset: 0; height: 100%; object-position: 50% 54%; }
  .caption {
    width: min(36%, 32rem);
    min-width: 25rem;
    padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3rem) clamp(3rem, 5vw, 5.5rem);
  }
  .links { flex-direction: column; align-items: flex-start; }
}

.name {
  margin: 0;
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.facts {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  font-variation-settings: "opsz" 14;
  color: var(--paper-soft);
}

.facts span { display: block; }
.facts .facts-en { font-size: 0.9375rem; }

.soon {
  margin: 0;
  padding-top: clamp(1rem, 2.6vh, 1.75rem);
  border-top: 1px solid var(--rule);
  max-width: 22rem;
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.625rem, 5vw, 2.125rem);
  line-height: 1.1;
}

.soon span {
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
  font-variation-settings: "opsz" 14;
  font-size: 1.0625rem;
  color: var(--paper-soft);
}

.links {
  list-style: none;
  margin: clamp(1rem, 2.8vh, 2.25rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  color: var(--paper-soft);
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(217, 199, 166, 0.45);
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}

.links a:hover { color: var(--paper); text-decoration-color: currentColor; }

/* the way to the gate leads the row */
.links .go {
  color: var(--paper);
  font-weight: 600;
}

.links .go { text-decoration: none; padding: 0.35rem 0; }
.links .go .go-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  line-height: 1.5;
}
.links .go .go-text span[lang] {
  display: block;
  font-weight: 400;
  color: var(--paper-soft);
}

.links .go svg { transition: transform 0.35s var(--ease-out); }
.links .go:hover svg,
.links .go:focus-visible svg { transform: translateX(4px); }

.links a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
  border-radius: 2px;
}

.foot {
  margin: clamp(0.5rem, 2vh, 2rem) 0 0;
  font-size: 0.875rem;
  color: var(--paper-soft);
  opacity: 0.85;
}

/* ---------- one moment: the print develops ---------- */

@media (prefers-reduced-motion: no-preference) {
  .print-photo { animation: develop 2.6s var(--ease-out) both; }
}

@keyframes develop {
  from { filter: sepia(0.62) saturate(1.15) contrast(0.7) brightness(1.6); }
  to   { filter: sepia(0.62) saturate(1.15) contrast(1.06) brightness(0.86); }
}

