/* ====== Base / Reset ====== */
@import url('https://fonts.googleapis.com/css2?family=Jacquarda+Bastarda+9&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --bg: #f7f6f4;
  --ink: #0f0f10;
  --muted: rgba(15,15,16,.55);

  --btn-primary: #9aa0c9;   /* muted lavender */
  --btn-secondary: #cfcfcd; /* soft gray */
  --btn-text: #0f0f10;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);

  /* “app-like” feel */
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;

  /* safe area for iOS notch */
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);

  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ====== Ornaments layer ====== */
.ornaments{
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}

/* Make all ornaments feel like “ink on paper” */
.orn{
  position: absolute;
  opacity: .10;             
  filter: grayscale(1) contrast(0.9);
  mix-blend-mode: multiply;  /* huge difference for that etched look */
}

/* foliage: keep faint, tucked into corner */
.orn--top-left{
  top: 10px;
  left: 0px;
  width: 30vw;
  opacity: .10;
}

/* wand/spark: push it RIGHT so it frames, not bisects */
.orn--top-right{
  right: 35vw;             /* key: move it out of center */
  opacity: .07;
  transform: rotate(45deg);
  width: 15vw;
  z-index: -1; 
}

.orn--middle-right {
  right:0;
  top: 40vw;
  width: 20vw;
}

/* dragon: keep, but fade slightly more */
.orn--bottom-right{
  right: -40px;
  bottom: 100px;
  /*width: min(360px, 78vw);*/
  width: 50vw;
  opacity: .12;
}

/* ====== Main column ====== */
.shell{
  position: relative;
  z-index: 1;

  width: min(420px, 92vw);
  min-height: 92dvh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;

  /* spacing similar to mockup */
  padding-top: 56px;
  padding-bottom: 28px;
}

/* ====== Brand header ====== */
.brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.avatar-wrap{
  width: 152px;
  height: 152px;
  border-radius: 999px;
  background: rgba(0,0,0,.10); /* placeholder gray circle */
  overflow: hidden;
}

.avatar{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title: elegant serif */
.title{
  margin: 2px 0 0;
  font-size: 54px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: "Georgia", "Times New Roman", Times, serif;
}

/* Subtitle */
.subtitle{
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: none;
  color: rgba(15,15,16,.65);
  font-family: "Jacquarda Bastarda 9", serif;
}

/* ====== Links ====== */
.links{
  width: 100%;
  margin-top: 44px; /* matches mockup gap */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: "Space Mono", monospace;
}

.btn{
  width: min(320px, 86vw);
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;

  background: var(--btn-secondary);
  color: var(--btn-text);

  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: lowercase;

  /* “button” feel without looking like material UI */
  box-shadow: 0 3px 0 rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    background-color .18s ease;
}

.btn--primary{
  background: var(--btn-primary);
  border-color: rgba(0,0,0,.05);
}

.btn:active{
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0,0,0,.07);
}

@media (hover:hover){
  .btn:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 5px 0 rgba(0,0,0,.08);
  }
}

/* ====== Footer ====== */
.foot{
  margin-top: auto;
  padding-top: 18px;
}

.domain{
  font-size: 13px;
  letter-spacing: 0.20em;
  color: rgba(15,15,16,.55);
  font-family: "Jacquarda Bastarda 9", serif;
}

/* ====== Smaller screens adjustments ====== */
@media (max-height: 700px){
  .shell{ padding-top: 34px; }
  .links{ margin-top: 30px; }
  .avatar-wrap{ width: 132px; height: 132px; }
  .title{ font-size: 48px; }
}