@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  font-family: "Poppins", system-ui, sans-serif;
  color: #333;
  background: #f7f7f7;
  --ink: #2a160b;
  --muted: #535353;
  --rule: #dedede;
  --orange: #f97b3b;
  --orange-light: #ff9456;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: linear-gradient(135deg, var(--orange), var(--orange-light)); min-height: 100vh; }
.wrap, main { width: min(100%, 72rem); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
header { padding-block: .85rem; background: #fff; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; gap: .8rem; align-items: center; text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.brand strong { display: block; line-height: 1.3; }
.brand small { margin: 0; }
main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.75rem, 6vw, 5rem); padding-block: clamp(2.5rem, 7vw, 5rem); }
h1, h2 { font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.1; margin: 0 0 1.2rem; max-width: 15ch; text-wrap: balance; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.3; margin: 0 0 .65rem; }
p { margin: 0 0 1rem; line-height: 1.6; }
.intro p { max-width: 44ch; font-size: 1.05rem; color: var(--ink); }
.panel { min-width: 0; padding: clamp(1.25rem, 4vw, 2.15rem); background: #fff; border-radius: .75rem; box-shadow: 0 10px 28px #642a1624; }
.panel > p:last-child, .panel > p:only-child { margin-bottom: 0; }
.order + .order { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 1.5rem; }
.files { display: grid; gap: .8rem; margin: 1rem 0; }
.files label { border: 1px dashed #a6aca1; padding: .9rem; border-radius: .45rem; }
label { display: block; font-weight: 650; line-height: 1.45; }
small, .consent, .expiry { color: var(--muted); font-weight: 400; font-size: .87rem; }
small { display: block; margin: .2rem 0 .65rem; }
input[type=file] { display: block; max-width: 100%; font: inherit; font-size: .86rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; margin: 1rem 0; }
button, .download { display: inline-block; min-height: 3.2rem; border: 0; border-radius: 8px; padding: .75rem 1.15rem; background: var(--orange); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .download:hover { background: var(--orange-light); }
button:disabled { opacity: .65; cursor: wait; }
.remove { background: transparent; color: var(--ink); text-decoration: underline; padding-left: 0; margin-top: .65rem; }
:focus-visible { outline: 3px solid #8d4d20; outline-offset: 3px; }
.feedback { display: grid; gap: .75rem; margin-top: 1rem; justify-items: start; }
.gallery { display: grid; gap: 1rem; }
select { display: block; margin-top: .35rem; padding: .5rem; font: inherit; color: inherit; }
.portrait { display: block; width: min(100%, 24rem); border-radius: .45rem; margin-bottom: 1rem; }
#message:empty { display: none; }
#support { margin-top: 1rem; }
a { color: var(--ink); }
.access { display: grid; gap: .8rem; justify-items: start; }
.access label { width: 100%; }
.access input { display: block; margin-top: .35rem; padding: .7rem; border: 1px solid #aaa; border-radius: 8px; font: inherit; width: 100%; }
.preferences { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.preferences legend { font-weight: 750; }
.preferences > label { margin: .6rem 0; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: .7rem 0; }
.reference-grid label { border: 1px solid var(--rule); border-radius: .35rem; overflow: hidden; padding-bottom: .35rem; cursor: pointer; font-size: .84rem; }
.reference-grid label:has(:checked) { outline: 2px solid var(--ink); }
.reference-grid img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; margin-bottom: .25rem; }
@media (max-width: 720px) { main { grid-template-columns: 1fr; } }
