:root {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#233d34;
  background:#e9eddc;
  font-synthesis:none;
  line-height:1.6;
  --green:#365c27;
  --wine:#a42730;
  --line:#d6d8bc;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,textarea {
  font:inherit;
}
button,a,textarea {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  border:1px solid var(--green);
  border-radius:7px;
  background:var(--green);
  color:#fff;
  padding:.65rem 1.1rem;
  font-weight:600;
  min-height:44px;
}
button:hover {
  filter:brightness(.92);
}
button:disabled {
  cursor:wait;
  opacity:.6;
}
button.quiet {
  color:var(--green);
  background:transparent;
  border-color:#c8d1c9;
}
button.secondary {
  color:var(--wine);
  background:#fff;
  border-color:#cdb4bb;
}
a {
  color:var(--green);
  text-underline-offset:3px;
}
a:hover {
  text-decoration-thickness:2px;
}
:focus-visible {
  outline:3px solid #ae6921;
  outline-offset:4px;
}
[hidden] {
  display:none!important;
}
.header {
  max-width:1180px;
  margin:auto;
  padding:1.5rem 2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border-bottom:1px solid var(--line);
}
.brand {
  font-family:Georgia,serif;
  font-size:1.55rem;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.gift-icon {
  color:var(--wine);
  margin-right:.4rem;
  font-size:2rem;
  vertical-align:middle;
}
nav {
  display:flex;
  align-items:center;
  gap:1rem;
}
#user-name {
  font-size:.95rem;
}
main {
  max-width:1060px;
  margin:3.5rem auto;
  padding:0 2rem;
  min-height:60vh;
}
main:focus {
  outline:none;
}
h1,h2 {
  font-family:Georgia,serif;
  line-height:1.2;
  font-weight:500;
}
h1 {
  font-size:clamp(2rem,5vw,3rem);
  margin:.5rem 0 1rem;
}
h2 {
  font-size:1.5rem;
  margin:0 0 .6rem;
}
.eyebrow {
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--wine);
}
.intro {
  max-width:42rem;
  color:#58645c;
  margin:0 0 2rem;
}
.panel {
  padding:clamp(1.5rem,5vw,3.5rem);
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
}
.login {
  max-width:660px;
  margin:4rem auto;
}
.login h1 {
  max-width:450px;
}
.login button {
  margin-top:1rem;
}
.muted {
  color:#657168;
}
.cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.25rem;
}
.card {
  display:block;
  border:1px solid var(--line);
  border-radius:10px;
  padding:1.6rem;
  background:#fff;
  text-decoration:none;
  color:inherit;
}
.card:hover {
  border-color:var(--green);
  box-shadow:0 3px 12px #233d340a;
}
.card p {
  margin:.6rem 0;
}
.card .meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  margin-top:1.5rem;
  font-size:.875rem;
}
.badge {
  display:inline-block;
  border-radius:20px;
  background:#edf2eb;
  color:var(--green);
  padding:.2rem .65rem;
  font-size:.8rem;
  font-weight:600;
}
.badge.archived {
  background:#f1e9eb;
  color:var(--wine);
}
.list-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.table-wrap {
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
caption {
  text-align:left;
  padding:1rem 1.4rem;
  color:#58645c;
  border-bottom:1px solid var(--line);
  font-size:.9rem;
}
th {
  text-align:left;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#58645c;
  background:#f0f1eb;
}
th,td {
  padding:1.3rem 1.4rem;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}
th:first-child {
  width:22%;
}
tr:last-child td {
  border-bottom:0;
}
td {
  overflow-wrap:anywhere;
}
.own-row {
  background:#f0f5ed;
}
.person {
  font-weight:600;
}
.you {
  display:block;
  font-size:.8rem;
  font-weight:400;
  color:#5f6c60;
}
.wishes {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.edit-button {
  margin-top:1rem;
  font-size:.875rem;
  padding:.4rem .8rem;
}
textarea {
  display:block;
  width:100%;
  min-height:160px;
  resize:vertical;
  padding:.8rem;
  border:1px solid #84978a;
  border-radius:6px;
  color:#233d34;
  background:#fff;
  line-height:1.5;
}
.field-label {
  display:block;
  margin-bottom:.5rem;
  font-weight:600;
}
.hint {
  font-size:.875rem;
  color:#58645c;
  margin:.5rem 0;
}
.actions {
  display:flex;
  gap:.7rem;
  flex-wrap:wrap;
  margin-top:1rem;
}
.error {
  color:#83263b;
}
.notice {
  position:fixed;
  bottom:1.2rem;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100% - 2rem);
  width:max-content;
  margin:0;
  border-radius:8px;
  background:#244e3d;
  color:white;
  box-shadow:0 4px 20px #0002;
  z-index:5;
}
.notice:not(:empty) {
  padding:.8rem 1.4rem;
}
.notice.error {
  background:#7c3444;
}
footer {
  text-align:center;
  font-family:Georgia,serif;
  color:#677267;
  padding:2rem;
  font-style:italic;
}
.skip-link {
  position:fixed;
  top:-100px;
  left:1rem;
  background:#fff;
  padding:1rem;
  z-index:10;
}
.skip-link:focus {
  top:1rem;
}
/* A paper wishlist, framed in candy stripes. All decorations are noninteractive. */
body {
  padding:28px 18px;
  background-image:radial-gradient(#7d96552b 1px, transparent 1px);
  background-size:18px 18px;
}
.holiday-sheet {
  max-width:1180px;
  margin:auto;
  border:12px solid transparent;
  border-radius:32px;
  background:linear-gradient(#fffdf4, #fffdf4) padding-box,
    repeating-linear-gradient(135deg,#ad2730 0 16px,#fffdf4 16px 32px) border-box;
  box-shadow:0 0 0 5px #668034,0 16px 50px #31471d24;
  overflow:hidden;
}
.header {
  padding:1rem 2rem;
  margin:0 1rem;
  border-bottom:1px solid #d9d9bd;
}
.brand {
  font-size:1.15rem;
}
.gift-icon {
  font-size:1.5rem;
}
.holiday-hero {
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  align-items:center;
  gap:1rem;
  max-width:820px;
  margin:.6rem auto 0;
  padding:0 2rem;
  border-bottom:2px solid #ae29303d;
}
.holiday-mascot {
  width:100%;
  height:auto;
  align-self:end;
}
.holiday-title {
  display:flex;
  flex-direction:row;
  justify-content:center;
  gap:.6em;
  white-space:nowrap;
  align-items:center;
  text-align:center;
  padding:.5rem 0;
}
.holiday-kicker {
  display:none;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:700;
  color:#52613b;
  margin-bottom:.35rem;
}
.holiday-red,.holiday-green {
  font-family:Impact,"Arial Narrow",sans-serif;
  font-weight:900;
  text-transform:uppercase;
  line-height:1.02;
  letter-spacing:.045em;
  text-shadow:1px 2px 0 #28391d;
}
.holiday-red {
  color:#b32c31;
  font-size:clamp(1.5rem,4.5vw,3rem);
  transform:rotate(-2deg);
}
.holiday-green {
  color:#52782e;
  font-size:clamp(1.5rem,4.5vw,3rem);
  transform:rotate(1deg);
}
.holiday-flourish {
  display:none;
  font-family:Georgia,serif;
  font-size:1.2rem;
  letter-spacing:.15em;
  color:#a42730;
  margin-top:.25rem;
}
.holiday-gifts {
  display:none;
  height:165px;
  position:relative;
}
.snowflake {
  position:absolute;
  color:#52782e;
  font-size:2.5rem;
}
.snowflake-one { top:0; right:25px; }
.snowflake-two { top:45px; left:0; color:#a42730; }
.present {
  position:absolute;
  display:block;
  border:2px solid #354b27;
  border-radius:3px;
  background:repeating-linear-gradient(0deg,transparent 0 19px,#fff3 19px 21px),#638332;
  box-shadow:inset -9px 0 #0001,3px 4px 0 #34482917;
}
.present::before {
  content:"";
  position:absolute;
  width:16px;
  height:100%;
  left:calc(50% - 8px);
  background:#b52b34;
  border-inline:2px solid #802127;
}
.present::after {
  content:"୨୧";
  position:absolute;
  top:-43px;
  width:100%;
  text-align:center;
  font-family:Georgia,serif;
  font-size:46px;
  line-height:1;
  font-weight:bold;
  color:#a42730;
  text-shadow:1px 1px #fff5;
}
.present-tall { width:65px; height:105px; bottom:22px; right:15px; transform:rotate(5deg); }
.present-small { width:62px; height:65px; bottom:5px; left:0; transform:rotate(-7deg); }
.present-wide { width:79px; height:65px; bottom:0; right:0; background-color:#b52b34; transform:rotate(3deg); }
.present-wide::before { background:#f3e4bb; border-color:#d4c390; }
main {
  margin:2rem auto;
  min-height:35vh;
}
h1,h2 {
  font-weight:700;
  color:#365c27;
}
h1 { font-size:clamp(1.75rem,4vw,2.5rem); }
.eyebrow {
  display:inline-block;
  padding:.35rem 1.7rem;
  margin:0 0 .35rem;
  color:#fffdf4;
  background:#a42730;
  clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%,9px 50%);
  font-size:.75rem;
}
.panel,.card,.table-wrap {
  background:#fffef8;
  border:1.5px solid #809163;
  border-radius:16px 9px 18px 10px;
}
.panel {
  box-shadow:inset 0 0 0 5px #fffef8,inset 0 0 0 6px #d8ddc5;
}
.login {
  margin:1.5rem auto;
  text-align:center;
  max-width:740px;
  padding:2rem;
}
.login h1 { max-width:none; }
.login .intro { margin:0 auto 1rem; }
.login button { margin:.5rem; }
.card {
  border-color:#9caaa1;
  border-top:5px solid #42652b;
  position:relative;
  background:linear-gradient(#fffef8e8,#fffef8e8),repeating-linear-gradient(transparent 0 29px,#71824f 29px 30px);
}
.card:nth-child(even) { border-top-color:#a42730; }
.card h2 { color:#365c27; }
.card:nth-child(even) h2 { color:#98242c; }
.card .meta { border-top:1px solid #cdd4b9; padding-top:1rem; }
.badge { background:#e8efd9; color:#365c27; }
.badge.archived { background:#f7e7e2; color:#8b242c; }
th {
  background:#42652b;
  color:#fffdf4;
  font-size:.875rem;
}
th:last-child { background:#a42730; }
td { padding-block:1.5rem; border-bottom-color:#c8d0b5; }
td + td { border-left:1px solid #d6dbc5; }
.own-row { background:#eef3df; }
.person { color:#365c27; }
textarea {
  background-color:#fffef8;
  background-image:repeating-linear-gradient(transparent 0 27px,#d9dfc6 27px 28px);
  background-position:0 13px;
  line-height:28px;
  border-color:#738653;
}
button { border-radius:6px; }
button.quiet { border-color:#a8b58d; background:#fffdf466; }
button.secondary { background:#fff9ee; border-color:#b87b78; }
footer {
  color:#53693a;
  padding:1rem 2rem 1.75rem;
}
footer::before {
  content:"❧  ♥  ❧";
  display:block;
  color:#a42730;
  font-style:normal;
  font-size:1.5rem;
  letter-spacing:.35em;
  margin-bottom:.35rem;
}
/* Personal wishlist cards keep the source order on desktop and mobile. */
.member-intro {
  color:#58645c;
  font-size:.95rem;
  margin:0 0 1.5rem;
}
.member-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.5rem;
  align-items:start;
}
.member-card {
  --card-accent:#365c27;
  --card-line:#a6b28b;
  --card-paper:#f3f5e8;
  min-width:0;
  padding:1.4rem;
  background:var(--card-paper);
  border:1.5px solid var(--card-line);
  border-radius:18px 12px 20px 14px;
  box-shadow:inset 0 0 0 5px #fffdf47a,0 3px 0 #354b2709;
}
.member-card:nth-child(4n+2) {
  --card-accent:#922d37;
  --card-line:#cba6a3;
  --card-paper:#fbedeb;
}
.member-card:nth-child(4n+3) {
  --card-accent:#275968;
  --card-line:#a3c2c6;
  --card-paper:#eaf3f4;
}
.member-card:nth-child(4n+4) {
  --card-accent:#76501c;
  --card-line:#cdbb91;
  --card-paper:#fcf3df;
}
.member-card.member-card-own {
  border:2px solid var(--card-accent);
  box-shadow:inset 0 0 0 5px #fffdf4,0 3px 0 #354b2709;
}
.member-card-header {
  display:flex;
  align-items:center;
  gap:.7rem;
  padding-bottom:.65rem;
  border-bottom:1px dashed var(--card-line);
}
.member-card-header::before {
  content:"✧";
  color:var(--card-accent);
  font-size:1.8rem;
  line-height:1;
}
.member-card-header h2 {
  margin:0;
  min-width:0;
  flex:1;
  font-size:1.7rem;
  color:var(--card-accent);
  overflow-wrap:anywhere;
}
.member-card-header .badge {
  flex-shrink:0;
  color:var(--card-accent);
  background:#fffdf4;
  border:1px solid var(--card-line);
}
.member-card-label {
  margin:.75rem 0 .35rem;
  color:var(--card-accent);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.75rem;
  font-weight:700;
}
.member-card-body .wishes {
  min-height:168px;
  line-height:28px;
  padding:0 .15rem;
  background-image:repeating-linear-gradient(transparent 0 27px,var(--card-line) 27px 28px);
  background-position:0 0;
}
.member-card-body .edit-button {
  border-color:var(--card-line);
  color:var(--card-accent);
  background:#fffdf4;
}
.member-card-body textarea { min-height:196px; }
@media(max-width:680px) {
  .member-grid { grid-template-columns:minmax(0,1fr); gap:1rem; }
  .member-card { padding:1.1rem; }
  .member-card-header h2 { font-size:1.5rem; }
  body { padding:12px 8px; }
  .holiday-sheet { border-width:7px; border-radius:19px; box-shadow:0 0 0 3px #668034; }
  .holiday-hero {
    grid-template-columns:50px minmax(0,1fr);
    gap:.25rem;
    padding:0 .75rem;
    margin:.35rem .6rem 0;
  }
  .holiday-gifts { display:none; }
  .holiday-kicker { font-size:.6rem; letter-spacing:.08em; }
  .holiday-title { gap:.35em; }
  .holiday-red,.holiday-green { font-size:clamp(1rem,4.4vw,1.8rem); }
  .holiday-flourish { font-size:.9rem; margin-top:.2rem; }
  .header {
    padding:.7rem .25rem;
    flex-wrap:wrap;
    margin:0 .75rem;
  }
  .brand {
    font-size:1.1rem;
  }
  nav {
    width:100%;
    gap:.5rem;
    flex-wrap:wrap;
  }
  #user-name {
    margin-left:auto;
  }
  nav button {
    font-size:.85rem;
    padding:.4rem .6rem;
  }
  main {
    margin:1.25rem auto;
    padding:0 .8rem;
  }
  .login {
    margin:1rem auto;
    padding:1.3rem 1rem;
  }
  .list-heading {
    display:block;
  }
  .list-heading .badge {
    margin-bottom:1rem;
  }
  th,td {
    padding:.9rem .65rem;
  }
  th:first-child {
    width:24%;
  }
  th {
    font-size:.7rem;
    letter-spacing:0;
  }
  td {
    font-size:.95rem;
  }
  caption {
    padding:1rem .65rem;
  }
  .actions button {
    padding:.5rem .75rem;
  }
  .cards {
    grid-template-columns:1fr;
  }
}
