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

:root{
  --black:#080808;
  --black-soft:#11100e;
  --panel:#15120e;
  --panel-2:#1d1812;
  --bronze:#8d5d27;
  --gold:#d7a44a;
  --gold-light:#f0cd84;
  --cream:#f3dfb2;
  --paper:#e5c982;
  --muted:#b5a88e;
  --line:rgba(215,164,74,.26);
  --line-soft:rgba(243,223,178,.11);
  --shadow:0 22px 70px rgba(0,0,0,.55);
}

*{box-sizing:border-box}

html{background:var(--black)}

body{
  margin:0;
  min-height:100vh;
  color:var(--cream);
  background:#090909;
  font-family:Inter,system-ui,sans-serif;
}

.texture{
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.58)),
    url("assets/ornament-background.png") center/cover fixed;
}

.texture::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 0%,rgba(215,164,74,.09),transparent 35rem),
    linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.48));
}

button,input,textarea{font:inherit}
button{color:inherit}
button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--gold-light);
  outline-offset:3px;
}

.app-shell{min-height:100vh}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  min-height:78px;
  padding:9px clamp(18px,4vw,62px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid var(--line);
  background:rgba(7,7,7,.88);
  backdrop-filter:blur(18px);
}

.brand{
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  text-align:left;
  padding:0;
}

.brand img{
  width:55px;
  height:55px;
  object-fit:contain;
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.45));
}

.brand strong{
  display:block;
  color:var(--cream);
  font:700 25px/20px "Cormorant Garamond",serif;
  letter-spacing:.01em;
}

.brand small{
  display:block;
  margin-top:5px;
  color:var(--gold);
  font-size:9px;
  letter-spacing:.32em;
}

.desktop-nav{display:flex;gap:8px}

.desktop-nav button,.text-button,.back{
  border:0;
  background:none;
  cursor:pointer;
  padding:10px 12px;
  color:var(--muted);
  transition:.2s;
}

.desktop-nav button:hover,.text-button:hover,.back:hover{color:var(--gold-light)}

.outline-button,.gold-button{
  border-radius:999px;
  padding:11px 18px;
  cursor:pointer;
  transition:.2s;
}

.outline-button{
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
}

.gold-button{
  border:1px solid #e7b653;
  background:linear-gradient(180deg,#dbae56,#a86d27);
  color:#171008;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 7px 20px rgba(0,0,0,.28);
}

.gold-button:hover,.outline-button:hover{transform:translateY(-1px)}
.hidden{display:none!important}

main{
  width:min(1160px,calc(100% - 38px));
  margin:0 auto;
  padding:clamp(26px,5vw,62px) 0 110px;
}

.home{display:grid;gap:70px}

.hero-card{
  position:relative;
  min-height:clamp(420px,60vw,650px);
  overflow:hidden;
  border:1px solid rgba(215,164,74,.38);
  border-radius:24px;
  box-shadow:var(--shadow);
  background:#16110b;
}

.hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(5,5,5,.88) 0%,rgba(5,5,5,.57) 39%,rgba(5,5,5,.12) 66%,rgba(5,5,5,.06)),
    linear-gradient(0deg,rgba(0,0,0,.58),transparent 45%);
}

.hero-copy{
  position:absolute;
  left:clamp(26px,6vw,72px);
  bottom:clamp(30px,7vw,80px);
  max-width:530px;
  text-shadow:0 3px 18px rgba(0,0,0,.8);
}

.kicker{
  display:inline-block;
  color:var(--gold);
  letter-spacing:.24em;
  font-size:10px;
  font-weight:600;
}

h1,h2{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
}

.hero h1,.hero-copy h1{
  margin-top:11px;
  font-size:clamp(54px,8vw,88px);
  line-height:.84;
  letter-spacing:-.035em;
}

h1 em{color:var(--gold-light);font-weight:500}

.hero-copy p{
  max-width:500px;
  margin:20px 0 0;
  color:#e7d4aa;
  font-size:17px;
  line-height:1.6;
}

.section-heading h2{
  margin-top:8px;
  color:var(--cream);
  font-size:clamp(34px,5vw,48px);
  line-height:1;
}

.section-heading.centered{text-align:center}
.section-heading.split{display:flex;justify-content:space-between;align-items:end;gap:24px}

.capture-section{
  max-width:900px;
  width:100%;
  margin:0 auto;
}

.capture-box{
  margin-top:22px;
  padding:19px;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(31,25,18,.93),rgba(15,13,11,.96));
  box-shadow:var(--shadow);
}

.capture-box textarea,.editor-card textarea{
  width:100%;
  resize:vertical;
  border:0;
  outline:0;
  background:transparent;
  color:var(--cream);
  padding:7px;
  font:600 27px/1.35 "Cormorant Garamond",serif;
}

.capture-box textarea::placeholder,.editor-card textarea::placeholder{
  color:rgba(229,201,130,.38);
}

.capture-actions,.editor-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:15px;
  border-top:1px solid var(--line-soft);
}

.capture-actions span,.editor-footer span{
  color:var(--muted);
  font-size:11px;
}

.paths{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:58px 0;
}

.three-doors{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:30px;
}

.door{
  position:relative;
  min-height:285px;
  overflow:hidden;
  padding:30px 25px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    linear-gradient(145deg,rgba(38,29,19,.94),rgba(12,11,10,.97));
  box-shadow:0 15px 45px rgba(0,0,0,.27);
  transition:.25s;
}

.door::before{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  right:-60px;
  top:-70px;
  border:1px solid rgba(215,164,74,.14);
  border-radius:50%;
}

.door:hover{
  transform:translateY(-5px);
  border-color:rgba(215,164,74,.58);
  background:linear-gradient(145deg,rgba(53,38,21,.97),rgba(15,13,11,.98));
}

.door-number{
  position:absolute;
  right:18px;
  top:12px;
  font:600 50px/1 "Cormorant Garamond";
  color:rgba(215,164,74,.1);
}

.door-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  margin-bottom:28px;
  border:1px solid rgba(215,164,74,.4);
  border-radius:50%;
  color:var(--gold-light);
  font-size:22px;
}

.door strong{
  font:700 33px/1 "Cormorant Garamond";
}

.door small{
  max-width:220px;
  min-height:55px;
  margin-top:10px;
  color:var(--muted);
  line-height:1.5;
}

.door-link{
  margin-top:auto;
  padding-top:24px;
  color:var(--gold);
  font-size:12px;
}

.recent{padding-bottom:20px}

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:22px;
}

.card,.work-item{
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(15,13,10,.86);
  box-shadow:0 10px 32px rgba(0,0,0,.2);
}

.card{padding:19px}
.card small,.work-item small{color:var(--muted)}
.card strong,.work-item h3{
  display:block;
  margin:8px 0 6px;
  color:var(--cream);
  font:600 23px/1.08 "Cormorant Garamond";
}

.page{
  max-width:940px;
  margin:0 auto;
}

.back{
  margin-left:-12px;
  margin-bottom:34px;
}

.page-intro{
  max-width:740px;
}

.page-intro h1,.workspace-head h1{
  margin-top:9px;
  font-size:clamp(50px,7vw,74px);
  line-height:.9;
}

.page-intro p,.workspace-head p{
  color:var(--muted);
  line-height:1.65;
  max-width:660px;
}

.editor-card{
  margin-top:32px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(28,22,16,.96),rgba(12,11,10,.98));
  box-shadow:var(--shadow);
}

.tag-row,.filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}

.chip{
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.02);
  color:var(--muted);
  cursor:pointer;
}

.chip.selected{
  color:#130d06;
  background:var(--gold);
  border-color:var(--gold);
  font-weight:700;
}

.workspace-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}

.workspace-list{
  display:grid;
  gap:11px;
  margin-top:30px;
}

.work-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
  padding:19px;
}

.work-item p{
  margin:7px 0;
  color:var(--muted);
  line-height:1.5;
}

.item-type{
  color:var(--gold);
  font-size:9px;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.item-date{
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}

.empty{
  padding:42px 24px;
  border:1px dashed var(--line);
  border-radius:14px;
  text-align:center;
  color:var(--muted);
  background:rgba(10,9,8,.5);
}

.bottom-nav{display:none}

dialog{
  width:min(620px,calc(100% - 30px));
  padding:0;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--cream);
  background:#15110d;
  box-shadow:0 25px 90px rgba(0,0,0,.7);
}

dialog::backdrop{
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(5px);
}

.dialog-card{padding:25px}

.dialog-head{
  display:flex;
  justify-content:space-between;
  align-items:start;
}

.dialog-head h2{
  margin-top:5px;
  font-size:39px;
}

.close{
  border:0;
  background:none;
  color:var(--muted);
  font-size:28px;
  cursor:pointer;
}

.dialog-card label{
  display:grid;
  gap:7px;
  margin-top:18px;
  color:var(--gold-light);
  font-size:11px;
  letter-spacing:.05em;
}

.dialog-card input,.dialog-card textarea{
  width:100%;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0d0c0a;
  color:var(--cream);
}

.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:20px;
}

@media (max-width:760px){
  .topbar{
    min-height:66px;
    padding:7px 15px;
  }

  .brand img{width:46px;height:46px}
  .brand strong{font-size:21px}
  .brand small{font-size:8px}

  .desktop-nav{display:none!important}

  #installBtn:not(.hidden){
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    padding:9px 13px;
    font-size:11px;
    white-space:nowrap;
  }

  main{
    width:min(100% - 26px,650px);
    padding:26px 0 100px;
  }

  .home{gap:52px}

  .hero-card{
    min-height:520px;
    border-radius:18px;
  }

  .hero-image{
    object-position:62% center;
  }

  .hero-shade{
    background:
      linear-gradient(0deg,rgba(3,3,3,.9) 0%,rgba(3,3,3,.55) 40%,rgba(3,3,3,.1) 75%),
      linear-gradient(90deg,rgba(0,0,0,.5),rgba(0,0,0,.05));
  }

  .hero-copy{
    left:22px;
    right:22px;
    bottom:29px;
  }

  .hero-copy h1{
    font-size:57px;
  }

  .three-doors,.cards{
    grid-template-columns:1fr;
  }

  .door{
    min-height:215px;
  }

  .capture-actions,.editor-footer{
    align-items:flex-end;
  }

  .section-heading.split,.workspace-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .bottom-nav{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    position:fixed;
    z-index:30;
    left:12px;
    right:12px;
    bottom:12px;
    padding:6px;
    border:1px solid var(--line);
    border-radius:17px;
    background:rgba(8,8,8,.94);
    box-shadow:0 16px 42px rgba(0,0,0,.55);
    backdrop-filter:blur(15px);
  }

  .bottom-nav button{
    border:0;
    background:none;
    padding:7px 4px;
    color:var(--muted);
    font-size:10px;
    cursor:pointer;
  }

  .bottom-nav span{
    display:block;
    margin-bottom:2px;
    color:var(--gold);
    font-size:19px;
  }

  .work-item{grid-template-columns:1fr}
  .item-date{white-space:normal}
}


@media (display-mode: standalone){
  #installBtn{display:none!important}
}
