@import url("/studio-assets/wenkai-1.530/font.css");
:root {
  --paper: #fbf8ed;
  --ink: #443b2f;
  --green: #405936;
  --muted: #79715f;
  --line: #d9d0b9;
  --red: #af4a38;
  font-family: var(--gallery-writing, serif);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px dashed #a45729;
  outline-offset: 5px;
}
.mast {
  max-width: 1280px;
  margin: auto;
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 29px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-size: 23px;
}
.mast nav {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 16px;
}
.mast nav a {
  text-decoration: none;
  padding: 8px 0;
}
.mast nav a[aria-current] {
  border-bottom: 3px solid #8d9b73;
}
.gallery-link {
  color: var(--muted);
  font-size: 14px;
}
main {
  max-width: 1120px;
  min-height: 60vh;
  margin: auto;
  padding: 58px 32px 70px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4.3vw, 51px);
  line-height: 1.35;
  font-weight: 400;
}
h2 {
  font-size: 27px;
  font-weight: 400;
}
h3 {
  font-size: 23px;
  font-weight: 400;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 58px;
  align-items: center;
  padding: 12px 0 57px;
}
.hero p {
  max-width: 650px;
  margin-top: 22px;
  line-height: 2;
}
.hero img {
  width: 180px;
  display: block;
  margin: auto;
  transform: rotate(7deg);
  box-shadow:
    7px 12px 0 #ddd4b653,
    0 8px 16px #443b2f1c;
}
.eyebrow {
  display: block;
  font-size: 15px;
  color: var(--green);
  margin-bottom: 15px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
}
.round-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.round-card {
  display: block;
  text-decoration: none;
  background: #fffdf5;
  border: 1px solid var(--line);
  padding: 28px 30px;
  box-shadow: 3px 4px 0 #e8e1cd;
}
.round-card:hover {
  border-color: #8d9b73;
}
.round-card h3 {
  margin: 12px 0;
}
.round-card p {
  color: var(--muted);
  font-size: 15px;
}
.state {
  font-size: 14px;
  color: var(--green);
}
.state.revealed {
  color: var(--red);
}
.date {
  color: var(--muted);
  font-size: 15px;
}
.back {
  font-size: 15px;
  display: inline-block;
  margin-bottom: 26px;
}
.topic {
  max-width: 820px;
}
.topic .prompt {
  margin: 24px 0;
  font-size: 21px;
  line-height: 2;
  white-space: pre-wrap;
}
.focus {
  padding: 14px 20px;
  border-left: 3px solid #9baa81;
  background: #eff0e2;
  margin: 22px 0;
  white-space: pre-wrap;
}
.credit {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
}
.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.button,
button.primary {
  display: inline-block;
  background: var(--green);
  color: #fffdf4;
  border: 1px solid var(--green);
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 3px;
}
.button.secondary,
button.secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid #a4ad94;
  padding: 9px 20px;
  border-radius: 3px;
}
.exhibition {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding-top: 28px;
}
.empty {
  padding: 30px 0;
  color: var(--muted);
  max-width: 640px;
}
.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 25px;
}
.art-card {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  width: 100%;
}
.art-card .mount {
  display: block;
  background: #fffefa;
  border: 1px solid #e1d9c6;
  padding: 13px;
  box-shadow: 3px 4px 0 #e5ddca;
}
.art-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
}
.art-card h3 {
  margin: 13px 0 3px;
  font-size: 20px;
}
.art-card p {
  font-size: 15px;
  color: var(--muted);
}
.flower {
  color: var(--red);
  font-size: 16px;
}
.award {
  border: 1px solid #d9b09c;
  background: #fff6e8;
  padding: 24px 28px;
  margin: 28px 0;
  max-width: 820px;
}
.award h2 {
  color: var(--red);
  font-size: 25px;
}
.award p {
  margin-top: 12px;
  white-space: pre-wrap;
}
.award audio {
  width: 100%;
  max-width: 420px;
  margin-top: 15px;
}
.feedback {
  margin-top: 14px;
  padding: 12px 16px;
  background: #eef0e2;
  white-space: pre-wrap;
}
.panel {
  background: #fffdf5;
  border: 1px solid var(--line);
  padding: 27px;
  margin-top: 28px;
  max-width: 750px;
}
.panel h2 {
  margin-bottom: 13px;
}
form {
  margin-top: 18px;
}
label {
  display: block;
  margin: 17px 0 7px;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #bcb59f;
  background: #fffef8;
  border-radius: 3px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="file"] {
  font-size: 15px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  margin-top: 8px;
  width: 18px;
  height: 18px;
}
.hint {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.preview {
  max-width: 100%;
  max-height: 280px;
  display: block;
  margin-top: 18px;
}
.notice {
  white-space: pre-wrap;
  color: var(--green);
  padding: 10px 0;
}
.error {
  color: #a33c2f;
}
.withdraw {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--red);
  padding: 12px;
}
.mine-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.mine-list .panel {
  margin-top: 0;
}
.mine-list img {
  max-width: 100%;
  height: 190px;
  object-fit: contain;
  display: block;
  margin: 15px 0;
}
.proposal {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.proposal p {
  white-space: pre-wrap;
}
.loading {
  padding: 50px 0;
  color: var(--muted);
}
footer {
  max-width: 1120px;
  margin: auto;
  padding: 30px 32px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer p {
  margin-right: auto;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: min(900px, 94vw);
  max-height: 92vh;
  padding: 35px;
  overflow: auto;
}
dialog::backdrop {
  background: #28261fbd;
}
.close {
  position: absolute;
  right: 13px;
  top: 7px;
  font-size: 30px;
  border: 0;
  background: transparent;
  line-height: 1.2;
}
#art-detail img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  margin: 10px 0 24px;
}
#art-detail p {
  white-space: pre-wrap;
}
.intro {
  margin: 18px 0 28px;
  max-width: 720px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .mast {
    padding: 17px 22px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .mast nav {
    width: 100%;
    gap: 24px;
    font-size: 15px;
  }
  .gallery-link {
    margin-left: auto;
    font-size: 12px;
  }
  .brand {
    font-size: 27px;
  }
  main {
    padding: 35px 22px 50px;
  }
  .hero {
    grid-template-columns: 1fr 95px;
    gap: 14px;
    padding: 0 0 35px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 15px;
    margin-top: 15px;
  }
  .hero img {
    width: 88px;
  }
  .round-list,
  .mine-list {
    grid-template-columns: 1fr;
  }
  .round-card {
    padding: 23px;
  }
  .topic .prompt {
    font-size: 19px;
  }
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 15px;
  }
  .art-card .mount {
    padding: 8px;
  }
  .art-card img {
    height: 155px;
  }
  .art-card h3 {
    font-size: 18px;
  }
  .panel,
  .award {
    padding: 21px;
  }
  .section-head {
    align-items: flex-start;
  }
  h2 {
    font-size: 24px;
  }
  footer {
    padding: 25px 22px;
    gap: 12px 20px;
  }
  footer p {
    width: 100%;
  }
  dialog {
    padding: 30px 20px;
  }
  .button,
  button.primary {
    padding: 10px 19px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .round-card,
  .art-card .mount {
    transition: transform 0.18s;
  }
  .round-card:hover,
  .art-card:hover .mount {
    transform: translateY(-3px);
  }
}
.account-button {
  font: inherit;
  font-size: 14px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.account-link {
  font-size: 14px;
}
#account-tool {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .mast nav {
    flex-wrap: wrap;
    gap: 6px 22px;
  }
  .gallery-link {
    margin-left: 0;
  }
  #account-tool {
    margin-left: auto;
  }
}
@media (max-width:850px) {
  .mast { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:12px clamp(8px,3vw,22px); }
  .mast nav { grid-column:1/-1; grid-row:2; }
  .mast .account-tools { grid-column:2; grid-row:1; }
  .mast .brand { font-size:clamp(18px,4vw,27px); }
  .mast .brand span { font-size:.82em; }
}

/* Rachel's invitation sits on the same illustrated table as her gallery. */
main:has(.invitation-desk) { max-width: 1280px; padding: 24px clamp(14px,3vw,42px) 56px; }
.invitation-desk {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; min-height: 470px; padding: 48px 5%;
  background: #efe2c6 url("/studio-assets/worktable.webp") center 69% / cover no-repeat;
  border: 1px solid #ded3b9; border-radius: 5px;
}
.desk-scene { position: absolute; inset: 0; z-index: -1; pointer-events:none; }
.desk-artist { position: absolute; width: 31%; right: 4%; bottom: 18%; }
.desk-book { position: absolute; width: 10%; right: 27%; bottom: 8%; transform: rotate(-15deg) skewX(4deg); filter:drop-shadow(2px 5px 2px #44301a43); }
.invitation-paper {
  position: relative; width: min(60%,680px); padding: 34px clamp(22px,3vw,46px) 29px;
  background: #fffbee; border: 1px solid #dfd3b6; border-radius: 2px 5px 9px 3px;
  box-shadow: 2px 5px 0 -1px #eadfc6, 4px 12px 20px #73552d26;
  overflow-wrap:anywhere;
}
.invitation-paper::before { content:""; position:absolute; width:78px; height:20px; top:-10px; left:36%; background:repeating-linear-gradient(94deg,#bdaa7550 0 2px,#dfcda27d 2px 5px); transform:rotate(-4deg); }
.paper-label {display:flex; align-items:center; gap:15px; color:#785137; font-size:.9rem; letter-spacing:.07em;}
.paper-label .state {border-left:1px solid #d4c6a8; padding-left:13px;}
.invitation-paper h1 {font-size:clamp(30px,3.5vw,52px);margin:13px 0 10px;line-height:1.24;}
.invitation {font-size:clamp(17px,1.6vw,23px);line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.desk-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;margin-top:22px;}
.button.desk-action {padding:8px 22px;border-radius:4px 7px 5px 3px;box-shadow:1px 3px 0 #263c2530;font-weight:bold;}
.desk-date,.read-invitation {font-size:14px;color:#635b48;}
.read-invitation {display:inline-block;margin-top:12px;}
.desk-receipt {display:flex;align-items:center;gap:9px;margin-top:14px;flex-wrap:wrap;}
.desk-receipt img {width:45px;height:40px;object-fit:contain;}
.topic-slip {display:block;width:fit-content;margin:24px 0 32px auto;padding:8px 18px;background:#f0ebd7;border-bottom:1px solid #cec2a4;color:#514a35;}
.reading-note {max-width:820px;margin:30px 0 22px;}
.reading-note h2 {font-size:22px;margin-bottom:8px;}
.reading-note p {white-space:pre-wrap;}
#submit-work {scroll-margin-top:12px;}
@media(max-width:700px){
  main:has(.invitation-desk) {padding:8px 10px 38px;}
  .invitation-desk {display:block;min-height:0;padding:115px 12px 15px;background-size:auto 100%;background-position:30% center;}
  .desk-artist {height:117px;width:auto;right:13%;top:5px;bottom:auto;}
  .desk-book {height:73px;width:auto;right:auto;left:21%;top:38px;bottom:auto;}
  .invitation-paper {width:100%;padding:17px 17px 16px;}
  .invitation-paper h1 {margin:7px 0;font-size:clamp(25px,7vw,34px);}
  .paper-label {font-size:14px;}
  .desk-actions {margin-top:12px;gap:6px 12px;}
  .desk-date {font-size:12px;}
  .read-invitation {margin-top:7px;}
  .reading-note {margin:22px 10px;}
}
body:has(.topic-slip) footer a[href="/pk/?view=suggest"] {display:none;}
@media(max-width:700px){
  .desk-scene {background:url("/studio-assets/worktable.webp") center 64% / 100% 190px no-repeat;background-position:center -22px;}
  .desk-book {transform:perspective(250px) rotateX(28deg) rotateZ(-14deg);top:52px;}
}
