:root{
  --bg-top: #f7f3ee;
  --bg-bottom: #efe8df;

  --paper: #fffdf8;
  --paper-soft: #f4efe9;

  --ink: #2b2b2b;
  --muted: #7b6f64;

  --primary: #c75a32;      /* VCT warm */
  --primary-dark: #8c3e22;
  --accent: #24546b;       /* deep teal */

  --border: #e6ded4;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow: 0 14px 35px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding: 2.1rem 1.35rem;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));
}

.frame{
  width:100%;
  max-width: 920px;
}

.app{
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.55rem 1.9rem 1.55rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Header */
.app-header{
  display:flex;
  align-items:center;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.logo-mark{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  background: #fff;
  border: 1px solid var(--border);
}

.logo-mark img{
  width:100%;
  height:100%;
  display:block;
}

.titles{ flex:1; }

.vct-header{
  font-size: 0.72rem;
  letter-spacing: 0.08em;   /* less shouty */
  text-transform: uppercase;
  color: rgba(123,111,100,0.78);
  margin-bottom: 0.25rem;
}
.vct-dot{
  width:6px;
  height:6px;
  opacity: 0.9;
}

h1{
  margin:0;
  font-size: 1.55rem;
  color: var(--accent);
  line-height: 1.1;
}

.subtitle{
  margin: 0.35rem 0 1.05rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Phrase card */
.phrase-card{
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  margin-bottom: 1.0rem;
}

.latin{
  font-family: ui-serif, "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #7a3e1f;
  margin: 0 0 0.2rem 0;
}

.translation{
  font-family: ui-serif, Georgia, serif;
  font-size: 1.02rem;
  font-style: italic;
  color: #4f463e;
  opacity: 0.82;
  margin: 0 0 0.55rem 0;
}

.prompt{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5e5348;
}

.prompt span{
  font-weight: 650;
  color: var(--accent);
}

/* Thoughts */
label[for="thoughts"]{
  display:block;
  font-size: 0.98rem;
  font-weight: 650;
  margin: 0.85rem 0 0.4rem;
  color: #3a332c;
}

#thoughts{
  width:100%;
  min-height: 160px;
  resize: vertical;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d6ccc1;
  background: #fffcf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.55;
}

#thoughts:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(199,90,50,0.14);
}

/* Buttons */
.buttons{
  margin-top: 0.95rem;
  display:flex;
  flex-wrap:wrap;
  gap: 0.65rem;
}

button{
  border:none;
  border-radius: var(--radius-pill);
  padding: 0.62rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 550;
  cursor:pointer;
  transition: transform 0.06s ease-out, box-shadow 0.14s ease-out, background 0.14s ease-out;
}

/* Primary */
#saveBtn{
  background: var(--primary);
  color:#fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

#saveBtn:hover{
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}

#saveBtn:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* Secondary buttons */
button.secondary{
  background: #e9e2d9;
  color: #4c433a;
  box-shadow: none;
}

button.secondary:hover{
  transform: translateY(-1px);
  background: #d8cfc4;
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

button.secondary:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Status + review */
.status{
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.review{
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #d9cdbf;
}

.review h2{
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--accent);
}

.review-entry{
  white-space: pre-wrap;
  font-size: 0.93rem;
  color: #453c31;
}

/* Footer (quiet) */
.vct-footer{
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2d9cf;
  font-size: 0.78rem;
  color: var(--muted);
  display:flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vct-logo-footer{
  margin-top: 1.25rem;
  text-align:center;
}

.vct-logo-footer a{
  display:inline-block;
  opacity: 0.72;
  transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out;
}

.vct-logo-footer a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.vct-logo-footer img{
  width: 84px;
  height:auto;
  border-radius: 10px;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,0.12));
}

.vct-powered{
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.vct-powered span{
  font-style: italic;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 720px){
  body{ padding: 1.2rem; }
  .app{ padding: 1.25rem 1.25rem 1.35rem; }
  .latin{ font-size: 1.55rem; }
  .translation{ font-size: 0.98rem; }
}