:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --white: #fff;
  --ink: #182720;
  --dim: #5b675f;
  --line: #d3d9ce;
  --green: #214e40;
  --soft: #e9eee3;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", Georgia, serif;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button,
a,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid #669a77;
  outline-offset: 3px;
}
button:hover,
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wrap {
  max-width: 1376px;
  margin: auto;
  padding: 0 clamp(22px, 5vw, 80px);
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast-in {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand,
.mast nav {
  display: flex;
  align-items: center;
}
.brand img {
  width: 110px;
}
.brand span {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.04em;
  padding-left: 17px;
  margin-left: 17px;
  border-left: 1px solid #b6bfb4;
}
.mast nav {
  gap: 16px;
  font-size: 14px;
}
.mast nav button {
  padding: 7px 0;
}
.new-chat b {
  font-size: 18px;
  color: var(--green);
}
.small-only {
  display: none;
}
.landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
  padding: clamp(40px, 5vw, 80px) 0;
}
.dateline,
.rubric {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--green);
}
.dateline i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.intro h1 {
  font: 700 clamp(46px, 4.4vw, 74px) / 1.23 var(--serif);
  letter-spacing: -0.082em;
  margin: 24px 0 18px;
}
.intro h1 em {
  font-style: normal;
  color: var(--green);
}
.intro > p {
  color: var(--dim);
  margin: 0 0 28px;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.035em;
}
.composer {
  background: var(--white);
  border: 1px solid #a6b5a5;
  border-radius: 15px;
  padding: 16px 17px 12px;
  box-shadow: 0 4px 14px #24352509;
}
.composer:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #214e400f;
}
.composer textarea {
  resize: vertical;
  display: block;
  width: 100%;
  height: 53px;
  min-height: 45px;
  max-height: 25vh;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.035em;
}
.composer textarea:focus {
  outline: 0;
}
.composer textarea::placeholder {
  color: #738076;
}
.compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
}
.submit {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 25px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
}
.submit:disabled {
  opacity: 0.55;
}
.submit:hover {
  background: #143f32;
  text-decoration: none;
}
.examples {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.examples button,
.chip {
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
}
.examples button:hover,
.chip:hover {
  background: var(--soft);
  text-decoration: none;
}
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  height: clamp(385px, 31vw, 470px);
  color: white;
  background: #254a3b;
}
.cover a.cover-link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.35s;
}
.cover-link:hover img {
  transform: scale(1.025);
}
.cover-link:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #15251e10 10%,
    #13251e22 35%,
    #101e18e8 100%
  );
}
.cover-copy,
.cover-placeholder {
  padding: clamp(20px, 2.5vw, 36px);
}
.cover-copy strong,
.cover-placeholder strong {
  display: block;
  font: 700 clamp(23px, 2.05vw, 36px) / 1.43 var(--serif);
  letter-spacing: -0.055em;
  margin: 10px 0 0;
}
.cover-meta {
  font-size: 13px;
  font-weight: 600;
}
.cover-meta span {
  display: inline-block;
  padding-left: 9px;
  margin-left: 8px;
  border-left: 1px solid #ffffff70;
  font-weight: 400;
}
.cover-placeholder {
  position: absolute;
  bottom: 0;
}
.editions {
  border-top: 2px solid var(--green);
  padding: 22px 0 45px;
}
.section-head,
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.section-head h2,
.dialog-head h2 {
  font: 700 25px/1.3 var(--serif);
  letter-spacing: -0.06em;
  margin: 0;
}
.section-head > span {
  font-size: 12px;
  color: var(--dim);
}
.edition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}
.edition {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.edition:first-child {
  border: 0;
  padding-left: 0;
}
.edition:last-child {
  padding-right: 0;
}
.art-meta {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.art-meta strong {
  color: var(--green);
  margin-right: 8px;
}
.edition h3 {
  font-size: 18px;
  line-height: 1.55;
  margin: 9px 0 12px;
  letter-spacing: -0.045em;
}
.text-action,
.citation {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  padding: 2px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  font-size: 12px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}
.footer button {
  font-size: 12px;
  color: var(--dim);
}
.conversation {
  max-width: 820px;
  margin: 40px auto 64px;
}
.conv-header {
  border-bottom: 2px solid var(--green);
  padding-bottom: 17px;
}
.conv-header h1 {
  font: 700 34px/1.3 var(--serif);
  letter-spacing: -0.06em;
  margin: 8px 0 0;
}
.turn {
  scroll-margin-top: 15px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.user-question {
  font: 700 clamp(22px, 3vw, 30px) / 1.45 var(--serif);
  letter-spacing: -0.055em;
  margin: 0 0 18px;
  white-space: pre-line;
}
.answer p {
  line-height: 1.9;
  margin: 10px 0;
  font-size: 16px;
  white-space: pre-line;
}
.citation {
  font-size: 0.8em;
  margin: 0 2px;
}
.subhead {
  font-size: 16px;
  margin: 24px 0 10px;
}
.read-card,
.source-item {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.read-card h4,
.source-item h4 {
  margin: 4px 0;
  font-size: 17px;
  line-height: 1.45;
}
.read-card p {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
}
.actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.source-list {
  margin-top: 16px;
  font-size: 13px;
}
.source-list summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
  padding: 6px 0;
}
.focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px;
  margin-bottom: 10px;
  font-size: 13px;
  border-radius: 7px;
  background: var(--soft);
}
.focus button {
  font-size: 18px;
}
.status,
.context,
.coverage,
.failure {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}
.status:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  animation: pulse 1.6s infinite;
}
.failure {
  color: #933c2c;
}
.context {
  margin: 0 0 7px;
}
#reply-input {
  padding-top: 20px;
}
.source-item:target {
  background: var(--soft);
}
.source-item a:focus {
  outline: 2px solid var(--green);
}
dialog {
  max-width: min(440px, 90vw);
  width: 100%;
  max-height: 85vh;
  border: 1px solid var(--line);
  padding: 25px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 14px;
}
dialog::backdrop {
  background: #11231ba1;
}
.dialog-head button {
  font-size: 25px;
}
.dialog-head + p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
}
.outlet-row {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.outlet-row span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-top: 4px;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 850px) {
  .landing {
    gap: 28px;
    grid-template-columns: 1.1fr 0.9fr;
  }
  .intro h1 {
    font-size: 46px;
  }
  .cover {
    height: 375px;
    min-height: 0;
  }
  .edition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
  .edition:nth-child(odd) {
    padding-left: 0;
    border: 0;
  }
  .edition:nth-child(even) {
    padding-right: 0;
  }
  .edition h3 {
    font-size: 17px;
  }
}
@media (max-width: 630px) {
  .wrap {
    padding-left: 19px;
    padding-right: 19px;
  }
  .mast-in {
    height: 59px;
  }
  .brand img {
    width: 77px;
  }
  .brand span {
    font-size: 13px;
    margin-left: 9px;
    padding-left: 9px;
  }
  .mast nav {
    gap: 7px;
    font-size: 12px;
  }
  .landing {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 31px 0 24px;
  }
  .intro h1 {
    font-size: 46px;
    margin: 16px 0 12px;
  }
  .intro > p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .cover {
    height: 236px;
  }
  .cover-copy strong {
    font-size: 23px;
  }
  .edition-grid {
    gap: 0;
    grid-template-columns: 1fr;
  }
  .edition,
  .edition:nth-child(n) {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 13px 0;
  }
  .edition h3 {
    margin: 4px 0;
  }
  .editions {
    padding: 17px 0 22px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head > span {
    font-size: 11px;
  }
  .conversation {
    margin: 24px auto 30px;
  }
  .conv-header h1 {
    font-size: 27px;
  }
  .turn {
    padding: 20px 0;
  }
  .examples {
    gap: 5px;
  }
  .examples button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .footer {
    min-height: 55px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .new-chat b {
    display: none;
  }
  .brand {
    flex-shrink: 0;
  }
}
