Files

267 lines
7.3 KiB
CSS

/* Paper sheets on the desk */
.paper {
position: relative;
padding: 16px 18px;
background-color: var(--paper);
background-image: var(--paper-grain);
color: var(--text);
transform: rotate(var(--rot, 0deg));
box-shadow:
inset 0 0 28px rgba(120, 90, 40, 0.22),
0 1px 1px rgba(0, 0, 0, 0.35),
0 10px 20px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.paper h2,
.paper h3,
.paper h4 {
margin: 0;
font-family: var(--font-head);
font-weight: 400;
}
/* Graph paper (dashboard) */
.paper--graph {
background-image:
var(--paper-grain),
linear-gradient(rgba(60, 105, 140, 0.16) 1px, transparent 1px),
linear-gradient(90deg, rgba(60, 105, 140, 0.16) 1px, transparent 1px);
background-size: auto, 16px 16px, 16px 16px;
overflow-y: auto;
}
.dash__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
margin-bottom: 8px;
}
.dash__head h2 {
font-size: 22px;
letter-spacing: 0.04em;
text-transform: uppercase;
border-bottom: 2px solid var(--ink);
padding-bottom: 2px;
}
.dash__sub {
margin: 10px 0 4px;
font-size: 13px;
letter-spacing: 0.08em;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 8px;
}
.stamp {
display: inline-block;
padding: 1px 6px;
border: 2px solid var(--ink-red);
color: var(--ink-red);
font-family: var(--font-type);
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
transform: rotate(4deg);
opacity: 0.8;
max-width: 118px;
font-size: 10px;
line-height: 1.15;
text-align: center;
}
.stamp--small { font-size: 10px; transform: rotate(-3deg); }
/* Gauges */
.gauge {
display: grid;
grid-template-columns: 124px minmax(60px, 1fr) 28px 76px;
align-items: center;
gap: 8px;
min-height: 33px;
padding: 2px 0;
}
.gauge__label { font-size: 13px; line-height: 1.1; }
.gauge__band {
display: block;
font-size: 10px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ink-red);
}
.gauge__track {
position: relative;
height: 12px;
border: 1px solid var(--ink);
background: rgba(28, 42, 68, 0.07);
}
.gauge__track i {
position: absolute;
top: 0;
bottom: 0;
width: 1px;
background: rgba(28, 42, 68, 0.35);
}
.gauge__track i:nth-of-type(1) { left: 25%; }
.gauge__track i:nth-of-type(2) { left: 50%; }
.gauge__track i:nth-of-type(3) { left: 75%; }
.gauge__fill {
position: absolute;
inset: 0 auto 0 0;
background:
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 5px),
var(--ink);
transition: width 0.6s ease, background-color 0.6s;
}
.gauge.is-low .gauge__fill { background-color: var(--ink-red); }
.gauge.is-high .gauge__fill { background-color: var(--ink-green); }
.gauge__value {
font-family: var(--font-num);
font-weight: 700;
font-size: 15px;
text-align: right;
}
.gauge__spark { height: 24px; width: 76px; }
.spark { display: block; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(60, 105, 140, 0.4); }
.spark__grid line { stroke: rgba(60, 105, 140, 0.25); stroke-width: 0.6; }
.spark__line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.spark__dot { fill: var(--ink-red); }
/* Economic table */
.econ { width: 100%; border-collapse: collapse; font-size: 13px; }
.econ th { text-align: left; font-weight: 400; padding: 1px 0; }
.econ__val { font-family: var(--font-num); font-weight: 700; text-align: right; padding-right: 8px; }
.econ__trend { width: 18px; text-align: center; font-size: 11px; }
.econ__trend.good { color: var(--ink-green); }
.econ__trend.bad { color: var(--ink-red); }
.econ__trend.flat { color: rgba(43, 36, 24, 0.5); }
/* Intelligence summary */
.intel { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.intel li { display: flex; justify-content: space-between; padding: 1px 0; border-bottom: 1px dotted rgba(43, 36, 24, 0.4); }
.intel b { font-family: var(--font-num); text-transform: uppercase; letter-spacing: 0.05em; }
.intel li[data-level="0"] b { color: var(--ink-green); }
.intel li[data-level="1"] b { color: var(--ink); }
.intel li[data-level="2"] b { color: #a4631b; }
.intel li[data-level="3"] b,
.intel li[data-level="4"] b { color: var(--ink-red); }
/* Manila folder (centre) */
.paper--folder {
background-color: #d4b77a;
padding-top: 38px;
box-shadow:
inset 0 0 40px rgba(110, 75, 25, 0.35),
0 1px 1px rgba(0, 0, 0, 0.35),
0 10px 20px rgba(0, 0, 0, 0.5);
}
.inbox__tab {
position: absolute;
top: 0;
left: 22px;
padding: 6px 16px 4px;
background: #c6a566;
border-radius: 0 0 8px 8px;
font-size: 15px;
letter-spacing: 0.06em;
text-transform: uppercase;
box-shadow: inset 0 -2px 4px rgba(90, 60, 20, 0.3);
}
.inbox__body {
background: var(--paper);
background-image: var(--paper-grain);
padding: 18px 20px;
min-height: 160px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.inbox__body h3 { font-size: 20px; margin-bottom: 8px; }
.inbox__idle { font-style: italic; opacity: 0.8; }
/* Desk calendar */
.paper--calendar { padding: 0; text-align: center; }
.cal__head {
padding: 5px 0 4px;
background: var(--ink-red);
color: #f6ead0;
font-family: var(--font-head);
font-size: 15px;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.cal__body { padding: 8px 14px 12px; }
.cal__day { font-family: var(--font-head); font-size: 54px; line-height: 1; }
.cal__month { font-family: var(--font-head); font-size: 18px; text-transform: capitalize; }
.cal__count { margin-top: 4px; font-size: 12px; opacity: 0.8; }
.cal__term {
height: 6px;
margin: 5px 0 8px;
border: 1px solid var(--ink);
background: rgba(28, 42, 68, 0.08);
}
.cal__term span { display: block; height: 100%; background: var(--ink); }
.cal__next {
display: grid;
grid-template-columns: 1fr auto;
gap: 1px 10px;
margin: 0 0 10px;
font-size: 12px;
text-align: left;
}
.cal__next dt { opacity: 0.8; }
.cal__next dd { margin: 0; font-family: var(--font-num); font-weight: 700; text-align: right; }
.cal__controls { display: flex; justify-content: center; gap: 6px; }
/* Newspaper */
.paper--news {
background-color: var(--news-paper);
font-family: var(--font-head);
overflow-y: auto;
}
.news__mast {
text-align: center;
border-bottom: 3px double var(--text);
padding-bottom: 4px;
margin-bottom: 8px;
}
.news__mast h2 { font-size: 26px; letter-spacing: 0.02em; }
.news__edition { font-size: 11px; font-style: italic; }
.news__edition::first-letter { text-transform: uppercase; }
.news__lead h3 { font-size: 22px; line-height: 1.12; margin-bottom: 4px; }
.news__lead p { margin: 0 0 8px; font-size: 14px; }
.news__side { display: grid; gap: 8px; border-top: 1px solid var(--text); padding-top: 8px; }
.news__side article + article { border-top: 1px solid rgba(43, 36, 24, 0.35); padding-top: 6px; }
.news__side h4 { font-size: 16px; line-height: 1.15; }
.news__side p { margin: 2px 0 0; font-size: 13px; }
/* Dial clock: one full turn of the hand is one in-game day */
.cal__top { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cal__date { text-align: left; }
.cal__dial { width: 76px; height: 76px; flex: none; }
.dial__face { fill: #f6efd8; stroke: var(--ink); stroke-width: 3; }
.dial__ticks line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dial__hand { stroke: var(--ink-red); stroke-width: 4; stroke-linecap: round; }
.dial__pin { fill: var(--ink); }