* {
  box-sizing: border-box;
}
:root {
  font:
    16px/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #24342d;
  background: #f7f7f0;
  --ink: #243d35;
  --muted: #58685d;
  --line: #cfd6cb;
  --amber: #f2bd6d;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fafbf5;
}
.top {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 780;
  font-size: 26px;
  letter-spacing: -1.6px;
  text-decoration: none;
}
.product {
  font-size: 0.84rem;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
#account {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.86rem;
}
main {
  flex: 1;
  padding-block: 52px 72px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.061em;
  font-weight: 600;
}
h2 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
p {
  color: var(--muted);
}
button,
.button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fffef9;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 15px;
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: var(--ink);
  background: #eff2e9;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.primary:hover {
  color: white;
  background: #345646;
}
.danger {
  color: #993c32;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ad6d23;
  outline-offset: 3px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfcf6;
}
.intro {
  padding: clamp(22px, 5vw, 65px);
  align-self: center;
}
.intro p {
  margin: 22px 0 28px;
  max-width: 35ch;
  font-size: 1.08rem;
}
.art {
  background-color: #e4eadc;
  background-image:
    linear-gradient(#cfd9c980 1px, transparent 1px),
    linear-gradient(90deg, #cfd9c980 1px, transparent 1px);
  background-size: 27px 27px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 240px;
}
.folder {
  width: 53%;
  aspect-ratio: 1.32;
  transform: rotate(-9deg);
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  background: #597865;
  box-shadow: 6px 12px 0 #344b3620;
}
.folder:before {
  content: "";
  position: absolute;
  background: #597865;
  width: 43%;
  height: 13%;
  top: -10%;
  border-radius: 8px 13px 0 0;
}
.paper {
  position: absolute;
  background: #fffff6;
  border: 1px solid #d5dacb;
  width: 88%;
  height: 88%;
  left: 5%;
  top: -6%;
  border-radius: 6px;
  transform: rotate(7deg);
}
.paper:after {
  content: "";
  position: absolute;
  inset: 14% 12%;
  background: repeating-linear-gradient(#a0b0a1 0 2px, transparent 2px 15px);
}
.front {
  position: absolute;
  inset: 17% -3% 0 0;
  border-radius: 8px 8px 11px 11px;
  transform: skewX(-7deg);
  background: #e8b26a;
  border: 1px solid #c69453;
  box-shadow: inset 0 2px #f7d8a0;
}
.front:after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 30%;
  height: 13%;
  background: #ffefcd;
  border-radius: 3px;
}
.head,
.actions,
.pager,
.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.head {
  justify-content: space-between;
  margin: 32px 0;
}
.head h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
}
nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
nav button {
  background: transparent;
  border-color: transparent;
}
nav button.active {
  background: #dce6d6;
}
.panel {
  background: #fefef9;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  flex-wrap: wrap;
}
.row + .row {
  border-top: 1px solid var(--line);
}
.row .detail {
  flex: 1;
  min-width: 145px;
  overflow-wrap: anywhere;
}
.row strong {
  display: block;
}
.row small {
  color: var(--muted);
}
.file-icon {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-weight: bold;
  border: 1px solid #b8c5b3;
  border-radius: 5px;
  padding: 12px 4px;
  min-width: 36px;
  text-align: center;
  background: #eff3e8;
}
.empty {
  padding: 36px;
}
.empty p {
  margin-top: 5px;
}
.actions {
  gap: 6px;
}
.actions button,
.actions a {
  padding: 6px 10px;
  font-size: 0.82rem;
}
.pager {
  margin-top: 16px;
}
.box {
  padding: 24px;
}
.box p,
.box h2 {
  margin-bottom: 12px;
}
input,
select {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
label {
  display: block;
  margin: 18px 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(440px, 92vw);
  color: var(--ink);
  background: #fcfcf6;
}
dialog::backdrop {
  background: #17291fa8;
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
}
dialog h2 {
  padding-right: 22px;
}
dialog .primary,
dialog .danger {
  margin-top: 14px;
}
dialog p {
  margin: 12px 0;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  width: max-content;
  max-width: 90vw;
  z-index: 5;
}
progress {
  width: 100%;
  accent-color: var(--ink);
}
.upload-status {
  margin: 16px 0;
}
.choose {
  width: min(100%, 520px);
  margin-bottom: 14px;
}
.share-card {
  max-width: 650px;
  margin: 6vh auto;
  padding: 32px;
}
.share-card h1 {
  font-size: 2.5rem;
  overflow-wrap: anywhere;
}
.share-card p {
  margin: 18px 0;
}
.tools {
  margin: 0 0 14px;
  max-width: 360px;
}
.hint {
  margin: 0.65rem 0;
}
.code {
  font-family: monospace;
  font-size: 0.9rem;
}
@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .art {
    grid-row: 1;
    min-height: 195px;
  }
  .folder {
    width: 120px;
  }
  .wrap {
    width: calc(100% - 28px);
  }
  main {
    padding-block: 26px 56px;
  }
  .row {
    gap: 10px;
    padding: 14px;
  }
  .product {
    display: none;
  }
  .actions {
    width: 100%;
  }
  .top {
    min-height: 60px;
  }
  .head {
    margin: 22px 0;
  }
  .intro {
    padding: 26px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .head .primary {
    padding: 8px 12px;
  }
}
