/* Public entrances: quiet type, one seasonal scene, and clear account actions. */
.agit-hero.agit-guest-hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  grid-template-areas: "top top" "story art" "actions art" "note art";
  grid-template-rows: auto 1fr auto auto;
  gap: 0 10px;
  min-height: 440px;
  padding: 28px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface) 12%, var(--bg) 64%, var(--hero-bg));
  box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 6%, transparent);
}
.agit-hero.agit-guest-hero::before {
  inset: 10px;
  width: auto;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 20px;
  box-shadow: none;
}
.agit-entry-top {
  grid-area: top;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.agit-entry-top > :last-child { color: var(--ink-2); font-weight: 500; letter-spacing: -.02em; }
.agit-entry-story { grid-area: story; position: relative; z-index: 2; padding: 28px 0 22px; }
.agit-entry-story h1 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(34px, 4.6vw, 49px)/1.45 "Noto Serif KR", "Gowun Dodum", serif;
  letter-spacing: -.065em;
  word-break: keep-all;
}
.agit-entry-story h1 em { color: var(--accent-ink); font-style: normal; }
.agit-entry-story p { margin: 18px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.agit-entry-art { grid-area: art; align-self: center; position: relative; min-width: 0; margin: 0 -23px 0 -17px; }
.agit-entry-art::before {
  content: "";
  position: absolute;
  inset: 1% 16% 10%;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50% 50% 8px 8px;
  background: color-mix(in srgb, var(--hero-bg) 60%, transparent);
}
.agit-entry-art img { position: relative; display: block; width: 100%; height: auto; object-fit: contain; }
.agit-entry-art figcaption { position: relative; margin: -4px 0 0; text-align: center; color: var(--ink-2); font-size: 10px; letter-spacing: .03em; }
.agit-entry-actions { grid-area: actions; position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 9px; max-width: 355px; }
.agit-entry-actions a { display: flex; align-items: center; justify-content: center; gap: 25px; min-height: 52px; padding: 13px 15px; border: 1px solid var(--accent); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.agit-entry-primary { background: var(--accent); color: var(--on-accent); }
.agit-entry-secondary { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--accent-ink); }
.agit-entry-actions a:hover { transform: translateY(-2px); }
.agit-entry-primary:hover { background: var(--accent-hover); }
.agit-entry-secondary:hover { background: var(--accent-soft); }
.agit-entry-note { grid-area: note; margin: 13px 0 0; color: var(--ink-2); font-size: 11px; }

/* The first-visit invitation uses the same stationery language as the entrance. */
dialog.agit-join-dialog { width: min(440px, calc(100vw - 28px)); border-radius: 25px; }
.agit-join-dialog .agit-welcome-card { padding: 27px 28px 25px; background: linear-gradient(155deg, var(--surface), var(--bg)); }
.agit-join-dialog .agit-welcome-card::before,
.agit-join-dialog .agit-welcome-card::after { display: none; }
.agit-join-scene { position: relative; height: 130px; margin: -7px -8px 22px; border-radius: 17px; overflow: hidden; background: var(--hero-art) center 54%/cover no-repeat, var(--hero-bg); }
.agit-join-scene::after { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 11px; }
.agit-join-seal { position: absolute; z-index: 1; bottom: 16px; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); transform: translateX(-50%); }
.agit-join-seal svg { width: 24px; height: 24px; }
.agit-join-dialog .agit-welcome-close { top: 13px; right: 13px; width: 40px; height: 40px; background: var(--surface); box-shadow: 0 2px 8px color-mix(in srgb,var(--accent) 8%,transparent); }
.agit-join-dialog .agit-welcome-eyebrow { font-size: 9px; letter-spacing: .2em; }
.agit-join-dialog #agit-welcome-title { margin: 9px 0 8px; font: 500 28px/1.45 "Noto Serif KR", "Gowun Dodum", serif; letter-spacing: -.06em; }
.agit-join-dialog #agit-welcome-copy { margin-bottom: 19px; font-size: 13px; }
.agit-join-dialog .agit-join-benefits { gap: 0; margin: 0 0 20px; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agit-join-dialog .agit-join-benefits li { padding: 7px 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; line-height: 1.65; }
.agit-join-dialog .agit-join-benefits li > span:first-child { display: grid; place-items: center; width: 26px; height: 26px; color: var(--accent-ink); font-family: Georgia, serif; font-size: 12px; }
.agit-join-dialog .agit-welcome-actions button { min-height: 48px; border-radius: 11px; font-size: 13px; }
.agit-join-dialog .agit-welcome-okay { background: var(--accent); box-shadow: none; }
.agit-join-dialog .agit-welcome-note { margin-top: 12px; font-size: 10px; }
.agit-join-more { margin: 0 0 18px; text-align: left; }
.agit-join-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 9px 1px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; list-style: none; cursor: pointer; }
.agit-join-more summary::-webkit-details-marker { display: none; }
.agit-join-more summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.agit-join-more[open] summary { margin-bottom: 7px; }
.agit-join-more[open] summary span { transform: rotate(45deg); }
.agit-join-dialog .agit-join-more .agit-join-benefits { border-top: 0; margin-bottom: 0; }
.agit-join-dialog .agit-welcome-actions { grid-template-columns: 1.2fr 1fr; gap: 9px; }
.agit-join-dialog .agit-welcome-login { border: 1px solid var(--accent); color: var(--accent-ink); background: var(--surface); }
.agit-join-dialog .agit-welcome-next { grid-column: 1 / -1; border: 0; background: transparent; color: var(--ink-2); font-weight: 500; }

@media (min-width: 900px) {
  .agit-hero.agit-guest-hero { padding: 32px 42px 35px; }
  .agit-entry-story { padding-top: 25px; }
}
@media (max-width: 619px) {
  .agit-hero.agit-guest-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "story" "art" "actions" "note";
    min-height: 0;
    padding: 23px 24px 25px;
    border-radius: 23px;
  }
  .agit-hero.agit-guest-hero::before { inset: 8px; border-radius: 17px; }
  .agit-entry-top { gap: 10px; padding-bottom: 0; font-size: 9px; }
  .agit-entry-story { padding: 22px 0 0; }
  .agit-entry-story h1 { font-size: clamp(30px, 8.5vw, 43px); line-height: 1.35; }
  .agit-entry-story p { margin-top: 12px; font-size: 13px; }
  .agit-entry-art { width: min(340px, 112%); margin: 4px auto 19px; justify-self: center; }
  .agit-entry-art img { height: 182px; width: 100%; object-fit: contain; }
  .agit-entry-art::before { inset: 8px 22% 11%; }
  .agit-entry-art figcaption { margin-top: -2px; font-size: 9px; }
  .agit-entry-actions { width: 100%; max-width: none; }
  .agit-entry-note { text-align: center; font-size: 10px; }
}
@media (max-width: 350px) {
  .agit-hero.agit-guest-hero { padding: 21px 20px 23px; }
  .agit-entry-top > :last-child { letter-spacing: -.05em; }
  .agit-entry-story h1 { font-size: 29px; }
  .agit-entry-actions a { gap: 13px; padding-inline: 10px; font-size: 13px; }
  .agit-join-dialog .agit-welcome-card { padding-inline: 21px; }
  .agit-join-dialog #agit-welcome-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .agit-entry-actions a { transition: none; }
  .agit-entry-actions a:hover { transform: none; }
}
