@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Manrope:wght@400;500;600&family=Pinyon+Script&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #302e29;
  --muted: #706b62;
  --gold: #907346;
  --line: #dcd5c8;
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page {
  min-height: 100svh;
  padding: 38px 5.2vw 27px;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.page::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid #52504c8f;
  pointer-events: none;
  z-index: -1;
  border-radius: 20px;
  
}
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: .875rem; letter-spacing: .24em; font-weight: 600; background: #ffffffc2; padding: 20px; border-radius: 15px;}
.wordmark span { font-weight: 400; letter-spacing: .19em; margin-left: .35em; }
main { text-align: center; flex: 1; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 54px 12px 58px; }
.logo-wrap { width: clamp(112px, 12vw, 166px); margin-bottom: 33px; }
.logo { display: block; width: 100%; height: auto; filter: brightness(0) saturate(100%) invert(47%) sepia(20%) saturate(802%) hue-rotate(357deg) brightness(91%) contrast(88%); }
.status { display: flex; gap: 16px; align-items: center; color: var(--gold); font-size: .75rem; letter-spacing: .23em; font-weight: 500; }
.status span { width: 30px; height: 1px; background: #b7a383; }
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(3.1rem, 5.5vw, 5.4rem); line-height: 1.03; letter-spacing: -.035em; margin: 24px 0 22px; }
h1 em { color: var(--gold); font-weight: 400; }
.intro { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.coming-soon { font-size: .75rem; letter-spacing: .3em; font-weight: 500; margin: 34px 0 0; padding-bottom: 11px; border-bottom: 1px solid #b7a383; }
footer { border-top: 1px solid var(--line); padding-top: 21px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .75rem; color: var(--muted); }
.footer-name { text-transform: lowercase; letter-spacing: .08em; }
.footer-note { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1rem; font-style: italic; }
.copyright { text-align: right; }
@media (min-width: 1600px) { main { padding-block: 72px; } .logo-wrap { width: 185px; } }
@media (max-width: 600px) {
  .page {
    padding: 31px 28px 27px;
    background-size: auto 100%;
    background-position: 36% center;
  }
  .page::before { inset: 10px; }
  .wordmark { font-size: .75rem; letter-spacing: .16em; }
  .wordmark span { display: block; font-size: .625rem; letter-spacing: .32em; margin: 6px 0 0; }
  main { padding: 48px 0 46px; }
  .logo-wrap { width: 125px; margin-bottom: 30px; }
  h1 { font-size: clamp(2.65rem, 10.9vw, 4rem); margin-top: 24px; }
  .status { gap: 12px; font-size: .75rem; letter-spacing: .16em; }
  .status span { width: 21px; }
  .intro { font-size: 1rem; }
  footer { flex-wrap: wrap; gap: 12px 8px; justify-content: center; padding-top: 19px; }
  .footer-name { width: 100%; text-align: center; }
  .footer-note { display: none; }
  .copyright { font-size: .75rem; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  main { animation: appear 1s ease-out both; }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

/* Two editions, one identity. */
body { --ambient: rgba(193, 152, 79, .18); }
.page { overflow: hidden; }
.logo-wrap { position: relative; perspective: 750px; isolation: isolate; }
.logo-surface { position: relative; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .8s cubic-bezier(.2,.65,.2,1); }
.logo { filter: saturate(.28) brightness(.83) contrast(.94) drop-shadow(0 7px 13px rgba(83, 57, 14, .10)); }
.logo-light { position: absolute; inset: -36%; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse, var(--ambient), transparent 68%); opacity: .7; }
.logo-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 32%, rgba(255,249,220,0) 40%, rgba(255,249,220,.72) 49%, rgba(255,249,220,0) 58%, transparent 66%); background-size: 330% 100%; background-position: 100% 0; -webkit-mask: url('assets/yeganeh-logo.png') center/contain no-repeat; mask: url('assets/yeganeh-logo.png') center/contain no-repeat; mix-blend-mode: screen; opacity: 0; }
h1 { margin-bottom: 17px; }
h1 .serif-line { display: block; }
h1 em { display: block; font-family: 'Pinyon Script', 'Brush Script MT', cursive; font-style: normal; font-weight: 400; font-size: 1.14em; line-height: 1.5; letter-spacing: 0; margin: -.03em -.12em -.17em; padding: 0 .16em; }
.footer-end { display: flex; align-items: center; gap: 1.6rem; }
.motion-toggle { appearance: none; padding: .5rem 0; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; text-underline-offset: 5px; }
.motion-toggle:hover { text-decoration: underline; }
.edition-white { --paper: #fff; --ink: #252827; --muted: #646762; --gold: #806337; --line: #e5e3de; --ambient: rgba(205, 179, 131, .15); background: #fff; }
.edition-white .logo { filter: saturate(.22) brightness(.79) contrast(.94) drop-shadow(0 9px 17px rgba(83,57,14,.09)); }
@media (prefers-reduced-motion: no-preference) {
  main { animation: none; }
  .masthead, footer { animation: quiet-reveal 1.2s ease both; }
  .logo-wrap { animation: logo-arrival 1.7s cubic-bezier(.16,1,.3,1) both; }
  .status { animation: quiet-reveal 1.2s .25s both; }
  h1 .serif-line { animation: quiet-reveal 1.2s .4s both; }
  h1 em { animation: signature-reveal 1.8s .55s cubic-bezier(.16,1,.3,1) both; }
  .intro { animation: quiet-reveal 1.3s .8s both; }
  .coming-soon { animation: quiet-reveal 1.3s 1s both; }
  .logo-sheen { animation: gold-pass 10s 1.5s ease-in-out infinite; }
  .logo-light { animation: light-breathe 9s 1s ease-in-out infinite; }
  @keyframes quiet-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes logo-arrival { from { opacity: 0; transform: translateY(15px) scale(.95); } to { opacity: 1; transform: none; } }
  @keyframes signature-reveal { from { opacity: 0; transform: translateY(10px); clip-path: inset(0 100% 0 -10%); } to { opacity: 1; transform: none; clip-path: inset(0 -10% 0 -10%); } }
  @keyframes gold-pass { 0%, 48% { background-position: 100% 0; opacity: 0; } 52% { opacity: .75; } 73% { background-position: 0% 0; opacity: .75; } 79%,100% { background-position: 0% 0; opacity: 0; } }
  @keyframes light-breathe { 0%,100% { opacity: .45; transform: scale(.95); } 50% { opacity: .85; transform: scale(1.07); } }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused .logo-surface { transform: none; }
.motion-paused .logo-sheen { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .logo-surface { transform: none !important; transition: none; } .logo-sheen { display: none; } }
@media (max-width: 600px) {
  .masthead { gap: 15px; }
  h1 { font-size: clamp(2.45rem, 9.7vw, 3.8rem); }
  h1 em { font-size: 1.09em; }
  .footer-end { width: 100%; justify-content: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
  .logo-wrap { margin-bottom: 24px; }
}

/* The carpet is a real embedded image in both editions, with a readable wash. */
.page, .edition-white .page { background: none; }
.carpet-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.page::after, .edition-white .page::after { content: ''; position: absolute; inset: 0; background: rgba(245, 242, 235, .16); opacity: 1; pointer-events: none; z-index: -1; }
.edition-white .page::after { background: rgba(255,255,255,.60); }
.page::before { z-index: 0; }
.masthead, main, footer { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .page::after { background: rgba(245,242,235,.32); }
  .edition-white .page::after { background: rgba(255,255,255,.66); }
}

.motion-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
