:root {
  --ink: #242821;
  --paper: #f6f5ef;
  --accent: #ad4024;
  --line: #d6d7cc;
  --display: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
}
body { background: var(--paper); color: var(--ink); }
header, main, footer { width: min(100% - 64px, 1320px); margin-inline: auto; }
header { min-height: 76px; background: transparent; padding: 12px 0; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 29px/1 var(--display); letter-spacing: .05em; }
.brand-symbol { width: 25px; height: 29px; display: inline-block; transform: skew(-17deg); background: linear-gradient(90deg,var(--accent) 0 37%,transparent 37% 46%,var(--accent) 46% 74%,transparent 74% 83%,var(--accent) 83%); }
.navigation { gap: 28px; }
.navigation .login-link { padding: 6px 23px; background: var(--ink); color: white; border-radius: 99px; }
main { max-width: 1320px; padding: 24px 0 48px; }
.opening { display: flex; justify-content: space-between; align-items: flex-end; padding: clamp(24px,4.5vw,74px) 0 32px; }
.opening h1 { font: 600 clamp(42px,6vw,92px)/1.08 var(--display); letter-spacing: -.045em; margin: 0; }
.opening h1 span { color: var(--accent); margin-left: .12em; }
.opening p { font-size: 15px; color: #52584e; margin: 0 0 3px 20px; }
#portfolio .container-fluid { display: grid; grid-template-columns: 1.13fr 1fr; gap: 18px; }
#portfolio .portfolio-box { isolation: isolate; overflow: hidden; border-radius: 4px; background: #302b24; }
#portfolio img { width: 100%; height: clamp(330px,33vw,485px); display: block; object-fit: cover; transition: transform .45s ease; }
#portfolio .portfolio-box:hover img { transform: scale(1.025); }
#portfolio .container-fluid .portfolio-box .portfolio-box-caption {
  box-sizing: border-box; opacity: 1; padding: clamp(22px,2.6vw,42px);
  justify-content: flex-end; align-items: flex-start; text-align: left;
  color: #fff; background: linear-gradient(0deg,rgba(15,15,12,.91),rgba(15,15,12,.49) 35%,transparent 72%);
}
#portfolio h2 { font: 600 clamp(32px,3vw,52px)/1.25 var(--display); margin: 0; }
#portfolio p { margin: 7px 0 20px; font-size: 15px; color: #f5eee4; }
.card-action { display: inline-flex; align-items: center; gap: 18px; border-top: 1px solid #ffffff80; padding-top: 8px; font-size: 14px; }
.card-action i { font: 20px Georgia,serif; }
a:focus-visible,button:focus-visible { outline: 3px solid #dd773e; outline-offset: 3px; }
.panel { background: #fffefa; border-color: var(--line); border-radius: 8px; }
.panel h1,.hero h1,main>h1 { font-family: var(--display); }
.primary,.tabs a.active { background: var(--ink); border-color: var(--ink); color: white; }
.primary:hover,.tabs a.active:hover { background: #414c39; }
.balance,.notice,.pill { background: #e9eae0; color: #374237; border-color: #ced0c3; }
.auth { padding: 2.4rem; margin: 7vh auto; border-top: 3px solid var(--accent); }
.muted,th { color: #596053; }
input:focus,select:focus,textarea:focus { outline-color: #ae745d; }
footer { text-align: left; padding: 17px 0; border-top: 1px solid var(--line); color: #676d61; }
@media(max-width:780px) {
  header,main,footer { width: calc(100% - 36px); }
  header { flex-direction: row; align-items: center; flex-wrap: wrap; min-height: 64px; }
  .brand { font-size: 24px; }
  .navigation { gap: 12px; }
  .navigation .login-link { padding: 4px 14px; }
  .opening { display: block; padding: 15px 0 26px; }
  .opening h1 { font-size: clamp(32px,7.7vw,58px); }
  .opening p { margin: 12px 0 0; }
  .opening br { display: none; }
  #portfolio .container-fluid { grid-template-columns: 1fr; gap: 14px; }
  #portfolio img { height: clamp(220px,58vw,345px); }
  #portfolio h2 { font-size: 32px; }
  #portfolio p { margin-bottom: 10px; }
  .auth { padding: 1.5rem; }
}
@media(prefers-reduced-motion:reduce) { #portfolio img { transition: none; } }
