:root {
  color-scheme: light;
  --paper: #fbf4e7;
  --white: #fffaf0;
  --green: #173e31;
  --muted: #526458;
  --red: #a4263c;
  --red-deep: #80192d;
  --line: #e5d6be;
  --gold: #f4cc77;
  --shadow: 0 18px 50px #44311612;
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  color: var(--green);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.top,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.12rem;
}
main {
  flex: 1;
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  min-height: 443px;
  overflow: hidden;
  border-radius: 34px;
  background: #123b30;
  color: var(--white);
  box-shadow: var(--shadow);
}
.hero-copy {
  z-index: 1;
  padding: 42px 12px 46px 58px;
  align-self: center;
}
.sprig {
  display: block;
  color: var(--gold);
  font-size: 1.55rem;
  margin-bottom: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  font-size: clamp(3.5rem, 7.8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}
h1 em {
  font-weight: normal;
  color: var(--gold);
}
.hero p {
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 270px;
  margin: 24px 0;
}
.hero-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse, #2c6249 0%, #123b30 71%);
  mask-image: linear-gradient(to right, transparent, #000 12%);
}
.hero-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.button,
button {
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 13px;
  min-height: 48px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.35;
}
.primary {
  background: var(--red);
  color: #fff9ee;
  box-shadow: 0 4px 0 var(--red-deep);
}
.primary:hover {
  background: var(--red-deep);
}
.hero .primary {
  background: var(--gold);
  color: #2f2a17;
  box-shadow: 0 4px 0 #9b6d25;
}
.hero .primary:hover {
  background: #ffe0a1;
}
.secondary {
  background: #f6ebd8;
  color: var(--green);
  border-color: var(--line);
}
.secondary:hover {
  background: #efdfc4;
}
.danger {
  background: transparent;
  color: var(--red);
  border-color: var(--line);
  min-height: 40px;
  padding: 7px 10px;
  font-size: 0.88rem;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
:focus-visible {
  outline: 3px solid #b77114;
  outline-offset: 3px;
}
.start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 38px 0 16px;
  scroll-margin-top: 18px;
}
.steps {
  padding: 22px 24px 12px 30px;
}
.steps h2,
.card h2,
.room h1,
dialog h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.steps ol {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 17px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 13px;
}
.steps li > span {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  height: 35px;
  border-radius: 10px;
  background: #f4dfb5;
  color: var(--red);
}
.steps li:nth-child(2) > span {
  background: #f3dce0;
}
.steps li:nth-child(3) > span {
  background: #dde6d7;
  color: var(--green);
}
.steps strong {
  display: block;
  font-size: 1.04rem;
}
.steps small {
  display: block;
  color: var(--muted);
  font-size: 0.91rem;
  margin-top: 3px;
}
.card,
dialog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
}
#crear {
  scroll-margin-top: 18px;
}
.card h2 {
  margin: 0 0 17px;
}
form {
  display: grid;
  gap: 14px;
}
label {
  font-size: 0.92rem;
  font-weight: 800;
  display: grid;
  gap: 6px;
}
input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  background: #fffdf7;
  color: var(--green);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
input::placeholder {
  color: #66695f;
}
form .primary {
  margin: 2px 0 4px;
}
.feedback:empty {
  display: none;
}
.feedback {
  line-height: 1.4;
  font-size: 0.92rem;
  color: var(--red);
  font-weight: 700;
}
.feedback.ok {
  color: var(--green);
}
footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer span {
  color: #945400;
  margin-inline: 6px;
}
.room {
  max-width: 660px;
  margin: 24px auto 0;
  display: grid;
  gap: 17px;
}
.room-head {
  position: relative;
  overflow: hidden;
  padding: 30px 35px;
  border-radius: 25px;
  background: var(--green);
  color: var(--white);
}
.room-head:after {
  content: "✦";
  position: absolute;
  right: 25px;
  top: 4px;
  color: var(--gold);
  font-size: 5rem;
  opacity: 0.23;
  pointer-events: none;
}
.room-head p {
  margin-top: 10px;
  max-width: 34ch;
  color: #efe9d5;
}
.room .card p {
  line-height: 1.5;
}
.room .card form {
  margin-top: 17px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.quiet {
  color: var(--muted);
  font-size: 0.93rem;
}
.tag {
  display: inline-block;
  font-size: 0.79rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 10px;
}
.people {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
}
.people li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.people strong,
.people small {
  display: block;
  overflow-wrap: anywhere;
}
.people small {
  color: var(--muted);
  font-size: 0.83rem;
}
.links {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.link-row {
  display: flex;
  align-items: end;
  gap: 8px;
}
.link-row label {
  flex: 1;
  min-width: 0;
}
.link-row button {
  white-space: nowrap;
}
dialog {
  color: var(--green);
  margin: auto;
  width: min(430px, calc(100% - 32px));
}
dialog::backdrop {
  background: #142a24a8;
}
dialog p {
  line-height: 1.5;
}
dialog .actions {
  justify-content: end;
}
@media (max-width: 760px) {
  .hero-copy {
    padding-left: 28px;
  }
  .start {
    gap: 16px;
  }
  .steps {
    padding-left: 10px;
  }
}
@media (max-width: 600px) {
  .top,
  main,
  footer {
    width: calc(100% - 28px);
  }
  body {
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  }
  .top {
    min-height: 60px;
    gap: 8px;
  }
  footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .brand {
    gap: 8px;
    font-size: 1rem;
  }
  .brand img {
    flex: 0 0 30px;
  }
  #account button {
    padding-inline: 10px;
    font-size: .88rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 25px;
    text-align: center;
  }
  .hero-copy {
    padding: 18px 14px 0;
  }
  .hero p {
    margin: 12px auto;
  }
  .hero-art {
    margin-top: -2px;
    min-height: clamp(158px, 52vw, 245px);
    mask-image: linear-gradient(to bottom, transparent, #000 16%);
  }
  .hero-art img {
    object-position: center 48%;
  }
  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }
  .sprig {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  .start {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .steps {
    padding: 9px 12px;
    order: 1;
  }
  .card {
    padding: 21px;
  }
  .room {
    margin-top: 8px;
  }
  .room-head {
    padding: 26px 24px;
  }
  .link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .link-row button {
    padding-inline: 12px;
  }
  .room .actions > button {
    flex: 1 1 130px;
  }
  .room .danger {
    min-height: 44px;
  }
  .gift-reveal .primary {
    width: min(100%, 280px);
  }
  dialog {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
}

textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 80px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  background: #fffdf7;
  color: var(--green);
  font: 400 1rem/1.5 ui-rounded, "Trebuchet MS", system-ui, sans-serif;
}
.login {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}
.login summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 6px 0;
}
.room-head .room-description {
  max-width: 54ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.gift-reveal {
  display: grid;
  justify-items: center;
  gap: 13px;
  text-align: center;
  padding-block: 10px;
}
.gift-name {
  font: bold clamp(2rem, 6vw, 3.4rem)/1 Georgia, serif;
  color: var(--red-deep);
  overflow-wrap: anywhere;
}
.gift-name:empty {
  display: none;
}

