:root {
  --forest: #17271c;
  --forest-soft: #263b2c;
  --moss: #6f7f4c;
  --fern: #a2aa72;
  --parchment: #eee2c1;
  --paper: #f7efda;
  --ink: #30291f;
  --amber: #dca75a;
  --rust: #9a5339;
  --shadow: rgba(13, 25, 17, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--forest); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(220,167,90,.22), transparent 34rem),
    linear-gradient(rgba(23,39,28,.90), rgba(23,39,28,.98)),
    repeating-linear-gradient(105deg, transparent 0 28px, rgba(255,255,255,.018) 29px 30px);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

main { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 26px; position: relative; z-index: 2; }
.masthead { display: flex; align-items: center; gap: 14px; color: var(--parchment); margin-bottom: 34px; }
.masthead > div:nth-child(2) { flex: 1; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(238,226,193,.55); border-radius: 50% 50% 46% 54%; font: 700 32px/1 "Cormorant Garamond"; color: var(--amber); box-shadow: inset 0 0 0 4px rgba(238,226,193,.08); }
h1, h2 { margin: 0; font-family: "Cormorant Garamond", serif; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: .92; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; }
p { line-height: 1.65; }
.eyebrow { margin: 0 0 5px; color: var(--amber); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.panel { background: linear-gradient(135deg, rgba(247,239,218,.98), rgba(232,218,181,.96)); border: 1px solid rgba(255,255,255,.4); border-radius: 22px; box-shadow: 0 24px 70px var(--shadow), inset 0 0 60px rgba(140,106,55,.08); }
.welcome { max-width: 620px; margin: 4vh auto; padding: 34px clamp(25px, 6vw, 55px) 40px; text-align: center; }
.welcome > p:not(.eyebrow,.fine-print) { max-width: 480px; margin: 16px auto 26px; }
.arch { width: 120px; height: 98px; margin: -70px auto 24px; display: grid; place-items: center; border-radius: 70px 70px 12px 12px; border: 8px solid #4a5837; background: radial-gradient(circle at 50% 78%, #f4c56d 0 13%, #d97944 14% 23%, #364431 24% 100%); box-shadow: 0 10px 0 rgba(23,39,28,.2); color: var(--paper); font-size: 25px; }
button { font: inherit; font-weight: 700; cursor: pointer; transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.07); }
button:disabled { cursor: wait; opacity: .48; }
.primary-button, .secondary-button { border: 0; border-radius: 999px; padding: 14px 24px; box-shadow: 0 9px 20px rgba(30,45,32,.18); }
.primary-button { color: #fff9e9; background: linear-gradient(180deg, #617444, #415335); }
.secondary-button { color: #fff8e7; background: linear-gradient(180deg, #a76448, #7e4032); }
.text-button, .icon-button { border: 0; background: transparent; color: inherit; padding: 9px 12px; }
.masthead .text-button { color: var(--parchment); }
.fine-print { margin: 17px 0 0; font-size: .78rem; opacity: .68; }
.hidden { display: none !important; }
.status-card { padding: clamp(25px, 5vw, 46px); }
.status-heading, .section-heading, .address-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status-dot { width: 19px; height: 19px; flex: 0 0 auto; border: 4px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 0 4px currentColor, 0 0 22px currentColor; }
.status-dot.online { color: #668a52; background: #668a52; }
.status-dot.offline { color: #9b5a43; background: #9b5a43; }
.status-dot.waiting { color: #b28b50; background: #b28b50; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.82); } }
.status-message { margin: 16px 0 24px; color: #5e5548; }
.address-row { padding: 18px 20px; border: 1px solid rgba(60,76,47,.24); border-radius: 14px; background: rgba(255,255,255,.28); }
.address-row strong { display: block; overflow-wrap: anywhere; color: var(--forest-soft); }
.label { display: block; margin-bottom: 4px; color: #736957; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.icon-button { color: var(--forest-soft); border: 1px solid rgba(60,76,47,.25); border-radius: 10px; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.actions button { flex: 1; }
.action-message { min-height: 1.5em; margin: 12px 0 0; text-align: center; color: #615746; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.detail-card { padding: 19px 22px; position: relative; }
.detail-card strong { font-family: "Cormorant Garamond", serif; font-size: 1.38rem; }
.detail-icon { position: absolute; right: 20px; top: 20px; color: var(--moss); font-size: 1.45rem; }
.activity-panel { padding: clamp(23px, 4vw, 38px); }
.activity-list { list-style: none; padding: 0; margin: 20px 0 0; }
.activity-list li { display: grid; grid-template-columns: 120px 90px 1fr; gap: 12px; padding: 13px 3px; border-bottom: 1px solid rgba(60,76,47,.14); font-size: .9rem; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list time, .activity-list .actor { color: #746955; }
.activity-list .actor { font-weight: 700; }
.activity-list .empty { display: block; color: #746955; text-align: center; }
footer { position: relative; z-index: 2; padding: 10px 20px 35px; color: rgba(238,226,193,.64); text-align: center; font-size: .75rem; letter-spacing: .08em; }
.leaf { position: fixed; z-index: 1; width: 300px; height: 300px; border: 55px solid rgba(117,137,79,.12); border-radius: 8% 92% 8% 92%; transform: rotate(24deg); }
.leaf-one { left: -170px; top: 8%; }
.leaf-two { right: -190px; bottom: 0; transform: rotate(204deg); }

@media (max-width: 620px) {
  main { width: min(100% - 20px, 880px); padding-top: 24px; }
  .masthead { margin-bottom: 48px; }
  .brand-mark { width: 46px; height: 46px; }
  .details-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .activity-list li { grid-template-columns: 1fr; gap: 2px; }
  .activity-list time { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
